You are on page 1of 10

LDOM Creation Steps !!!

Now with this let me give you a clear idea about ldom creation and OS
installation in ldoms.
With the help of previous post you all got the concept of LDOMS , this post is
something like a demo...
My ldom name in this post will be dom1 and my control domain will be primary.
Now I will clearly explain u about ldom creation, binding , starting and stopping
of ldoms.
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm list
NAME
STATE
FLAGS CONS VCPU MEMORY UTIL UPTIME
primary
active
-n-cv- SP
12 23G
0.1% 117d 3h
----control
domain
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm add-domain dom1
---- with this I will add a new
domain
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm list
NAME
STATE
FLAGS CONS VCPU MEMORY UTIL UPTIME
primary
active
-n-cv- SP
12 23G
0.1% 117d 5h
dom1
inactive -----root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm add-vcpu 8 dom1 ------ adding virtual cpus
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm list
NAME
STATE
FLAGS CONS VCPU MEMORY UTIL UPTIME
primary
active
-n-cv- SP
12 23G
0.1% 117d 5h
dom1
inactive -----8
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm add-memory 8g dom1 ---- adding memory
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm list
NAME
STATE
FLAGS CONS VCPU MEMORY UTIL UPTIME
primary
active
-n-cv- SP
12 23G
0.1% 117d 5h
dom1
inactive -----8
8G
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~#
root@mysrv1:~# ldm add-vnet vnet1 vsw=primary-vsw0 dom1
----adding
vnet
root@mysrv1:~#

9. 5.services from my control domian VCC NAME LDOM PORT-RANGE primary-vcc0 primary 5000-5100 VSW NAME LDOM MAC NET-DEV ID DEVICE DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK primary-vsw0 primary 00:14:4f:f8:2d:a6 net0 0 1 1 1500 on VDS NAME DEVICE primary-vds0 LDOM VOLUME primary iso disk01 vol1 vol2 dvd_vol ro vol3 OPTIONS LINKPROP switch@0 MPGROUP /dev/lofi/1 /dev/dsk/c3t1d0s5 /dev/dsk/c3t1d0s0 /dev/dsk/c3t1d0s1 /dev/dsk/c2t0d0s2 /dev/dsk/c3t1d0s3 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-bindings dom1 NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME dom1 inactive -t---8 8G UUID e3b65df4-44a9-c2dc-fb82-a39b18084997 MAC 00:14:4f:fb:99:b6 HOSTID 0x84fb99b6 CONTROL failure-policy=ignore extended-mapin-space=of DEPENDENCY master= CORE CID CPUSET 1 (4. 10. 6. 11) VCPU . 7) 2 (8.root@mysrv1:~# root@mysrv1:~# ldm add-vdiskserverdevice /dev/dsk/c3t1d0s3 vol3@primaryvds0 root@mysrv1:~# adding device to my virtualdiskserver of control domain root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm add-vdisk vdisk2 vol3@primary-vds0 dom1 root@mysrv1:~# adding disk to my ldom from virtualdiskserver of control domain root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-services -----.

1% 117d 3h dom1 active -t---.5000 8 8G 12% 5m root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# echo|format .0% 100% 4 8 2 0.0% 100% 6 10 2 0.1% 117d 5h dom1 bound -----8 8G root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm start-domain dom1 LDom dom1 started root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv.0% 100% 7 11 2 0.0% 100% 3 7 1 0.0% 100% 2 6 1 0.SP 12 23G 0.VID PID CID UTIL STRAND 0 4 1 100% 100% 1 5 1 0.0% 100% MEMORY RA PA SIZE 0x8000000 0x5c8000000 8G NETWORK NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP vnet0 primary-vsw0@primary 0 network@0 00:14:4f:fa:9a:9b 1 1500 PEER MAC MODE PVID VID MTU LINKPROP primary-vsw0@primary 00:14:4f:f8:2d:a6 1 1500 vnet1@primary 00:14:4f:f8:cd:ac 1 1500 DISK NAME VOLUME TOUT ID DEVICE SERVER MPGROUP vdisk2 vol3@primary-vds0 0 disk@0 primary VCONS NAME SERVICE PORT dom1 primary-vcc0@primary root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm bind-domain dom1 ----.now I will bind my domain root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv.SP 12 23G 0.0% 100% 5 9 2 0.

0 1.6G 880M 85% /var swap 23G 8K 23G 1% /tmp rpool/export 67G 34K 880M 1% /export rpool/export/home 67G 35K 880M 1% /export/home rpool 67G 83K 880M 1% /rpool rpool/bkp 67G 31K 880M 1% /rpool/bkp rpool/fs1 67G 31K 880M 1% /rpool/fs1 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv.2/LSILogic.sas@2/sd@1.SP 12 23G 0.2/LSILogic. c3t1d0 <FUJITSU-MAY2073RCSUN72G-0401 cyl 14087 alt 2 hd 24 sec 424> /pci@7c0/pci@0/pci@1/pci@0.sas@2/sd@0..5000 8 8G 12% 24m root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm add-vdiskserverdevice /dev/dsk/c3t1d0s6 vol4@primaryvds0 .6M 23G 1% /system/volatile objfs 0K 0K 0K 0% /system/object sharefs 0K 0K 0K 0% /etc/dfs/sharetab fd 0K 0K 0K 0% /dev/fd rpool/ROOT/newbesoalris-1/var 67G 4..1% 117d 4h dom1 active -t---.0 Specify disk (enter its number): Specify disk (enter its number): root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# zpool status pool: rpool state: ONLINE scan: scrub repaired 0 in 0h4m with 0 errors on Thu Mar 28 17:29:19 2013 config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c3t0d0s0 ONLINE 0 0 0 errors: No known data errors root@mysrv1:~# root@mysrv1:~# df -kh Filesystem Size Used Available Capacity Mounted on rpool/ROOT/newbesoalris-1 67G 36G 880M 98% / /devices 0K 0K 0K 0% /devices /dev 0K 0K 0K 0% /dev ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 23G 2. c3t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@7c0/pci@0/pci@1/pci@0.done AVAILABLE DISK SELECTIONS: 0.Searching for disks.

21:/jumpstart/SOL10 10.10.21 10.10.20.iso root@mysrv1:/mnt/Solaris10U11# root@mysrv1:/mnt/Solaris10U11# pwd /mnt/Solaris10U11 root@mysrv1:/mnt/Solaris10U11# root@mysrv1:/mnt/Solaris10U11# cp sol-10-u11-ga-sparc-dvd.20.21:/softwares 10. root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-services ---.10.21 RESOURCE SERVER ACCESS TRANSPORT 10.10.21:/softwares /mnt root@mysrv1:/# root@mysrv1:/# Now proceed to OS installation on ur LDOM root@mysrv1:/# cd /mnt root@mysrv1:/mnt# root@mysrv1:/mnt# root@mysrv1:/mnt# root@mysrv1:/mnt# cd Solaris10U11 root@mysrv1:/mnt/Solaris10U11# root@mysrv1:/mnt/Solaris10U11# ls -lrth total 4523184 -rw-r--r-.iso /tmp root@mysrv1:/mnt/Solaris10U11# root@mysrv1:/mnt/Solaris10U11# root@mysrv1:/mnt/Solaris10U11# cd /tmp .2G Mar 27 2013 sol-10-u11-ga-sparc-dvd.21 root@mysrv1:~# root@mysrv1:~# root@mysrv1:/# root@mysrv1:/# mount 10.20.20.20.10.20.check the device in VDS VCC NAME LDOM PORT-RANGE primary-vcc0 primary 5000-5100 VSW NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK primary-vsw0 primary 00:14:4f:f8:2d:a6 net0 0 switch@0 1 1 1500 on VDS NAME LDOM VOLUME OPTIONS MPGROUP DEVICE primary-vds0 primary iso /dev/lofi/1 disk01 /dev/dsk/c3t1d0s5 vol1 /dev/dsk/c3t1d0s0 vol2 /dev/dsk/c3t1d0s1 dvd_vol ro /dev/dsk/c2t0d0s2 vol3 /dev/dsk/c3t1d0s3 vol4 /dev/dsk/c3t1d0s6 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# dfshares 10.10.root@mysrv1:~# adding 1more device to my VDS.1 root root 2.

root@mysrv1:/tmp# root@mysrv1:/tmp# root@mysrv1:/tmp# pwd /tmp root@mysrv1:/tmp# root@mysrv1:/tmp# root@mysrv1:/tmp# ls sol-10-u11-ga-sparc-dvd.5000 8 8G 12% 1h 18m UUID e3b65df4-44a9-c2dc-fb82-a39b18084997 MAC 00:14:4f:fb:99:b6 HOSTID 0x84fb99b6 CONTROL failure-policy=ignore extended-mapin-space=of .iso sol@primary-vds0 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-services VCC NAME LDOM PORT-RANGE primary-vcc0 primary 5000-5100 VSW NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK primary-vsw0 primary 00:14:4f:f8:2d:a6 net0 0 switch@0 1 1 1500 on VDS NAME LDOM VOLUME OPTIONS MPGROUP DEVICE primary-vds0 primary iso /dev/lofi/1 disk01 /dev/dsk/c3t1d0s5 vol1 /dev/dsk/c3t1d0s0 vol2 /dev/dsk/c3t1d0s1 dvd_vol ro /dev/dsk/c2t0d0s2 vol3 /dev/dsk/c3t1d0s3 vol4 /dev/dsk/c3t1d0s6 sol /tmp/sol-10-u11-ga-sparcdvd.iso root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-bindings dom1 NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME dom1 active -t---.iso root@mysrv1:/tmp# root@mysrv1:/tmp# root@mysrv1:/tmp# cd /root root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm add-vdiskserverdevice /tmp/sol-10-u11-ga-sparc-dvd.

SP 12 23G 0. 9.DEPENDENCY master= CORE CID CPUSET 1 (4.0% 100% 7 11 2 0.5000 8 8G . 6.0% 100% 2 6 1 0.0% 100% 5 9 2 0.1% 117d 5h dom1 bound -----.0% 100% MEMORY RA PA SIZE 0x8000000 0x5c8000000 8G NETWORK NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP vnet0 primary-vsw0@primary 0 network@0 00:14:4f:fa:9a:9b 1 1500 PEER MAC MODE PVID VID MTU LINKPROP primary-vsw0@primary 00:14:4f:f8:2d:a6 1 1500 vnet1@primary 00:14:4f:f8:cd:ac 1 1500 DISK NAME VOLUME TOUT ID DEVICE SERVER MPGROUP vdisk2 vol3@primary-vds0 0 disk@0 primary VCONS NAME SERVICE PORT dom1 primary-vcc0@primary 5000 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm add-vdisk iso1 sol@primary-vds0 dom1 Please perform the operation while the LDom is bound or inactive root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv.1% 117d 5h dom1 active -t---.SP 12 23G 0. 10.5000 8 8G 12% 1h 19m root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm stop-domain dom1 LDom dom1 stopped root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv. 5.0% 100% 3 7 1 0.0% 100% 6 10 2 0. 7) 2 (8. 11) VCPU VID PID CID UTIL STRAND 0 4 1 100% 100% 1 5 1 0.0% 100% 4 8 2 0.

9. 10.5000 8 8G UUID e3b65df4-44a9-c2dc-fb82-a39b18084997 MAC 00:14:4f:fb:99:b6 HOSTID 0x84fb99b6 CONTROL failure-policy=ignore extended-mapin-space=of DEPENDENCY master= CORE CID CPUSET 1 (4. 11) VCPU VID PID CID UTIL STRAND 0 4 1 100% 1 5 1 100% 2 6 1 100% 3 7 1 100% 4 8 2 100% 5 9 2 100% 6 10 2 100% 7 11 2 100% MEMORY RA PA SIZE 0x8000000 0x5c8000000 8G NETWORK NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP vnet0 primary-vsw0@primary 0 network@0 00:14:4f:fa:9a:9b 1 1500 PEER MAC MODE PVID VID MTU LINKPROP primary-vsw0@primary 00:14:4f:f8:2d:a6 1 1500 vnet1@primary 00:14:4f:f8:cd:ac 1 1500 DISK NAME VOLUME TOUT ID DEVICE SERVER MPGROUP vdisk2 vol3@primary-vds0 0 disk@0 primary iso1 sol@primary-vds0 1 disk@1 primary VCONS NAME SERVICE PORT dom1 primary-vcc0@primary 5000 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm start-domain dom1 . 6. 5. 7) 2 (8.root@mysrv1:~# root@mysrv1:~# ldm add-vdisk iso1 sol@primary-vds0 dom1 root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list-bindings dom1 NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME dom1 bound -----.

Host ID: 84fb99b6.. Using RPC Bootparams for network configuration information. 8192 MB memory available... .0. lSerial console.. 2013. Press ~? for control options ...LDom dom1 started root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv. Connecting to console "dom1" in group "dom1" .0. You do not have write access Warning: another user currently has write permission to this console and forcibly removing him/her will terminate any current write action and all work will be lost.SP 12 23G 0.. Oracle and/or its affiliates.2% 117d 5h dom1 active -t---. Ethernet address 0:14:4f:fb:99:b6..0.. Boot device: /virtual-devices@100/channel-devices@200/disk@1 File and args: SunOS Release 5... Searching for configuration file(s).30. Would you like to continue?[y/n] y {0} ok {0} ok {0} ok {0} ok {0} ok {0} ok devalias iso1 /virtual-devices@100/channel-devices@200/disk@1 vdisk2 /virtual-devices@100/channel-devices@200/disk@0 vnet0 /virtual-devices@100/channel-devices@200/network@0 net /virtual-devices@100/channel-devices@200/network@0 disk /virtual-devices@100/channel-devices@200/disk@0 virtual-console /virtual-devices/console@1 name aliases {0} ok {0} ok {0} ok boot iso1 Sun Fire T200. OpenBoot 4. 2011... Oracle and/or its affiliates. Please wait. Skipped interface vnet0 Setting up Java.d.10 Version Generic_147147-26 64-bit Copyright (c) 1983. All rights reserved. All rights reserved. Connected to 0.5000 8 8G 12% 2s root@mysrv1:~# root@mysrv1:~# root@mysrv1:~# telnet 0 5000 Trying 0. Serial #83597750. Escape character is '^]'. No Keyboard Copyright (c) 1998..4. Configuring devices. reverting to text install ^R Beginning system identification. Attempting to configure interface vnet0.

or press h or ? for help: 0 What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT52 3) DEC VT100 4) Heathkit 19 5) Lear Siegler ADM31 6) PC Console 7) Sun Command Tool 8) Sun Workstation 9) Televideo 910 10) Televideo 925 11) Wyse Model 50 12) X Terminal Emulator (xterms) 13) CDE Terminal Emulator (dtterm) 14) Other Type the number of your choice and press Return: 3 Completing system identification.10). Traditional Chinese Please make a choice (0 . German 4. Simplified Chinese 8.. From here proceed with normal OS Installation procedure Select a Language 0.. English 1. Spanish 9.Search complete... Discovering additional network configuration. French 3. After successful installation of OS your ldom is ACTIVE and ready to act as a individual server. Japanese 6. Italian 5. Brazilian Portuguese 2. ################################################ ################################# . Swedish 10. Korean 7.