Liam,

  I have created another slice/partition 20GB size: (Cyl 30937--50212)
   (see below)

 
------------------------------------------------------------------------
---  


   partition> p
Current partition table (original):
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm    7711 - 22167       15.00GB    (14457/0/0)
31458432
  1       swap    wu       0 -  7710        8.00GB    (7711/0/0)
16779136
  2     backup    wm       0 - 65532       68.00GB    (65533/0/0)
142599808
  3        usr    wm   22168 - 26117        4.10GB    (3950/0/0)
8595200
  4       home    wm   26118 - 30936        5.00GB    (4819/0/0)
10486144
  5 unassigned    wm   30937 - 50212       20.00GB    (19276/0/0)
41944576
  6 unassigned    wm       0                0         (0/0/0)
0
  7 unassigned    wm       0                0         (0/0/0)
0

partition>

-----Original Message-----
From: Liam.Merwick at Sun.COM [mailto:[email protected]] 
Sent: Tuesday, February 05, 2008 10:15 AM
To: Ballan, Roberto
Cc: ldoms-discuss at opensolaris.org
Subject: Re: [ldoms-discuss] Install/setting LDOM Guest Domains

Hi Roberto,

Ballan, Roberto wrote:
> Hi Liam,
> 
>    gaxgpvw64xu# ldm ls -l

>
========================================================================
>
========================================================================
> ========
> NAME             STATE    FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
> primary          active   -n-cv   SP      4     4G       0.4%  4d 19h
> 40m
>

<snip>

> VDS
>     NAME             VOLUME         OPTIONS          DEVICE
>     primary-vds0     vol1                            /dev/dsk/c0t0d0s2

<snip>

You are using c0t0d0s2 as the backing disk for your guest but this is
already
in use as the root disk for the control domain.

I suggest doing the following, which will replace c0t0d0s2 with a file

ldm stop ldg1
ldm unbind ldg1
ldm rm-vdsdev vol1 at primary-vds0
mkfile 4G /export/home/guest1disk.img
ldm add-vdsdev /export/home/guest1disk.img vol1 at primary-vds0
ldm bind ldg1
ldm start ldg1

you should then be able to net install your guest.

-- Liam


>
========================================================================
> =====================================================
> -----Original Message-----
> From: Liam.Merwick at Sun.COM [mailto:Liam.Merwick at Sun.COM] 
> Sent: Tuesday, February 05, 2008 9:52 AM
> To: Ballan, Roberto
> Cc: ldoms-discuss at opensolaris.org
> Subject: Re: [ldoms-discuss] Install/setting LDOM Guest Domains
> 
> Hi Roberto,
> 
> Ballan, Roberto wrote:
>>   I have a T2000 Server with Solaris 10 installed.
>>   The T2000 has: 4GB RAM memory; 4 CPU (that is 4 core); 2 HBA's SUN
>> Branded;
>>    And one NIC card.
>>   I have 2 internal disks that are h/w mirrored so if I run format I
> can
>> see 
>>   A 68GB logical disk. (see below the format output).
>>   I am trying to find out the right steps/procedure in order to
> install
>> a 
>>   Guest Domain.
>>   I have read the documentation in the LDOM Administration Guide
> however
>> I did not see all the steps in order to
>>   Install/configure a Guest Domain.
>>   Any help will be great.
>>
> 
> Can you include the output from 'ldm ls -l' of the guest you created
and
> are 
> having trouble with.
> 
> In order to guest a guest domain you will need to do something like:
> 
> mkfile 4G /export/home/guest1disk.img
> ldm add-vdsdev /export/home/guest1disk.img file at primary-vds0
> ldm add-vdisk vdisk1 file at primary-vds0 guest1
> 
> Then 'bind' and 'start' the guest and Jumpstart the guest like you
would
> a bare-metal machine. Note, not all your disk below seems to be used,
> you
> could add a larger slice and put the file on that.
> 
> -- Liam
> 
> 
> 
>>   Thanks.
>>   Roberto Ballan
>>   e-mail: x2ballan at southernco.com
>>
>> =======================================================
>>
>>    gaxgpvw64xu# format
>> Searching for disks...done
>>
>>
>> AVAILABLE DISK SELECTIONS:
>>        0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16
> sec
>> 136>
>>           /pci at 780/pci at 0/pci at 9/scsi at 0/sd at 0,0
>> Specify disk (enter its number): 0
>> selecting c0t0d0
>> [disk formatted]
>> Warning: Current Disk has mounted partitions.
>> /dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
>> /dev/dsk/c0t0d0s1 is currently used by swap. Please see swap(1M).
>> /dev/dsk/c0t0d0s3 is currently mounted on /usr/local. Please see
>> umount(1M).
>> /dev/dsk/c0t0d0s4 is currently mounted on /export/home. Please see
>> umount(1M).
>>
>>
>> FORMAT MENU:
>>         disk       - select a disk
>>         type       - select (define) a disk type
>>         partition  - select (define) a partition table
>>         current    - describe the current disk
>>         format     - format and analyze the disk
>>         repair     - repair a defective sector
>>         label      - write label to the disk
>>         analyze    - surface analysis
>>         defect     - defect list management
>>         backup     - search for backup labels
>>         verify     - read and display labels
>>         save       - save new disk/partition definitions
>>         inquiry    - show vendor, product and revision
>>         volname    - set 8-character volume name
>>         !<cmd>     - execute <cmd>, then return
>>         quit
>> format> p
>>
>>
>> PARTITION MENU:
>>         0      - change `0' partition
>>         1      - change `1' partition
>>         2      - change `2' partition
>>         3      - change `3' partition
>>         4      - change `4' partition
>>         5      - change `5' partition
>>         6      - change `6' partition
>>         7      - change `7' partition
>>         select - select a predefined table
>>         modify - modify a predefined partition table
>>         name   - name the current table
>>         print  - display the current table
>>         label  - write partition map and label to the disk
>>         !<cmd> - execute <cmd>, then return
>>         quit
>> partition> p
>> Current partition table (original):
>> Total disk cylinders available: 65533 + 2 (reserved cylinders)
>>
>> Part      Tag    Flag     Cylinders         Size            Blocks
>>   0       root    wm    7711 - 22167       15.00GB    (14457/0/0)
>> 31458432
>>   1       swap    wu       0 -  7710        8.00GB    (7711/0/0)
>> 16779136
>>   2     backup    wm       0 - 65532       68.00GB    (65533/0/0)
>> 142599808
>>   3        usr    wm   22168 - 26117        4.10GB    (3950/0/0)
>> 8595200
>>   4       home    wm   26118 - 30936        5.00GB    (4819/0/0)
>> 10486144
>>   5 unassigned    wm       0                0         (0/0/0)
>> 0
>>   6 unassigned    wm       0                0         (0/0/0)
>> 0
>>   7 unassigned    wm       0                0         (0/0/0)
>> 0
>>
>> partition>
> 
> 


Reply via email to