Oracle VM SPARC LDOM practıce_v5

1. Sistem üzerinde ön paketlerin kontrolü

root@gratel # pkginfo | grep -i ldom
system     SUNWldomr          Solaris Logical Domains (Root)
system     SUNWldomu         Solaris Logical Domains (Usr)
root@gratel #

2. Sistem modeli:

root@gratel # uname -a
SunOS gratel 5.10 Generic_142900-04 sun4v sparc SUNW,SPARC-Enterprise-T5120
root@gratel #

3. Nerden download ediyoruz?

oracle_vm_sparc_ldom_practice_v5-1

4. İhtiyaç duyulan fw seviyesi?

oracle_vm_sparc_ldom_practice_v5-2

5. FW için patch in indirilmesi.

oracle_vm_sparc_ldom_practice_v5-3

6. Patch bilgisi.

oracle_vm_sparc_ldom_practice_v5-4

7. 139439-11 İLE GELEN FW SEVİYELERİ

oracle_vm_sparc_ldom_practice_v5-5

8. LDOM paketleri

root@gratel # cd LDOM/
root@gratel # ls -ltr
total 14178
-rw-r–r– 1 root     root     7184881 Jul 24 18:14 LDoms_Manager-1_3.zip
-rw-r–r– 1 root     root     58184 Jul 24 18:15 LDoms_P2V-1_3.zip
root@gratel #

9. T5120 FW patch

root@gratel # pwd
/FW_PATCH
root@gratel # ls -l
total 43968
-rw-r–r– 1 root root 22478952 Jul 24 18:34 139439-11.zip
root@gratel #

10. FW version.

-> show /HOST
hypervisor_version = Hypervisor 1.7.6 2009/12/01 14:30
macaddress = 00:21:28:16:97:70
maxbootfail = 3
obp_version = OBP 4.30.6 2009/12/01 12:40
post_version = POST 4.30.6 2009/12/01 13:08
send_break_action = (none)
status = Solaris running
sysfw_version = Sun System Firmware 7.2.7.b 2010/01/07 17:54
->

11. fw seviyesi.

sc> showhost
Sun System Firmware 7.2.7.b 2010/01/07 17:54
Host flash versions:
Hypervisor 1.7.6 2009/12/01 14:30
OBP 4.30.6 2009/12/01 12:40
POST 4.30.6 2009/12/01 13:08
sc>
11. Upgrade fw
root@gratel # pwd
/FW_PATCH/139439-11
root@gratel # ls
Install.info copyright
LEGAL_LICENSE.TXT sysfw720_README_docs.css
Legal sysfw720_README_docs.html
README.139439-11 sysfwdownload
Sun_System_Firmware-7_2_9_a-SPARC_Enterprise_T5120+T5220.pkg sysfwdownload.README
TPM-Feature-README.txt
root@gratel # ls -F
Install.info* copyright*
LEGAL_LICENSE.TXT sysfw720_README_docs.css*
Legal/ sysfw720_README_docs.html*
README.139439-11 sysfwdownload*
Sun_System_Firmware-7_2_9_a-SPARC_Enterprise_T5120+T5220.pkg* sysfwdownload.README*
TPM-Feature-README.txt*

root@gratel # ./sysfwdownload ./Sun_System_Firmware-7_2_9_a-SPARC_Enterprise_T5120+T5220.pkg

………. (6%)………. (12%)………. (19%)………. (25%)………. (32%)………. (38%)………. (45%)……….
(51%)………. (58%)………. (64%)………. (71%)………. (77%)………. (83%)………. (90%)………. (96%)…..
(100%)
Download completed successfully.
root@gratel #
root@gratel # shutdown -i0 -g0 -y
Shutdown started. Sat Jul 24 20:18:15 EEST 2010
Changing to init state 0 – please wait
Broadcast Message from root (pts/1) on gratel Sat Jul 24 20:18:15…
THE SYSTEM gratel IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged

12. Sistem power off yapıldı

svc.startd: The system is down.
syncing file systems… done
Program terminated
SPARC Enterprise T5120, No Keyboard
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.30.6, 8064 MB memory available, Serial #85366640.
Ethernet address 0:21:28:16:97:70, Host ID: 85169770.
{0} ok
Serial console stopped.
sc> poweroff
Are you sure you want to power off the system [y/n]? y
Chassis | critical: Host has been powered off
sc>

13. Keyswitch kontrol et.

sc> showkeyswitch
Keyswitch is in the NORMAL position.
sc>

14. Yeni fw yüklendi.

sc> flashupdate -s 127.0.0.1
NOTE: A flashupdate takes about 6 minutes to load a new file.
Some commands are disabled until the file load is complete.
The SC will be reset to complete the upgrade.
Are you sure you want to load the specified file (y/n)? y
…………………………………………………………………………………………………………
New firmware images were loaded. The SC will reset now to complete the upgrade.

15. Yeni fw:

sc> showhost
Sun System Firmware 7.2.9.a 2010/05/13 15:48
Host flash versions:
Hypervisor 1.7.8 2010/04/27 16:58
OBP 4.30.8.a 2010/05/13 10:36
POST 4.30.8 2010/04/27 15:33
sc>

16. Sistem fw upgrade sonrası power on yapıldı

sc> poweron
sc> Chassis | major: Host has been powered on
sc> console -f
Enter #. to return to ALOM.
0:0:0>
0:0:0>SPARC-Enterprise[TM] T5120/T5220 POST 4.30.8 2010/04/27 15:33
/export/delivery/delivery/4.30/4.30.8/post4.30.8-micro/Niagara/huron/integrated (root)
0:0:0>Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
0:0:0>POST enabling CMP 0 threads: 000000ff.ff00ffff

17. Paketlerin yüklenmesi.

root@gratel # ./install-ldm

Welcome to the LDoms installer.
You are about to install the Logical Domains Manager package that will
enable you to create, destroy and control other domains on your system.
Installing LDoms packages.
pkgadd -n -d “/LDOM/LDoms_Manager-1_3/Product” -a pkg_admin SUNWldm.v
Installation of <SUNWldm> was successful.
pkgadd -n -d “/LDOM/LDoms_Manager-1_3/Product” -a pkg_admin SUNWldmp2v
Installation of <SUNWldmp2v> was successful.
LOGICAL DOMAINS CONFIGURATION
Select an option for configuration:
y) Yes, launch the LDoms Configuration Assistant after install
n) No thanks, I will configure LDoms myself later
Enter y or n [y]: n
Verifying that all packages are fully installed. OK.
root@gratel # pkginfo | grep -i ldom
system SUNWldomr Solaris Logical Domains (Root)
system SUNWldomu Solaris Logical Domains (Usr)
root@gratel # pkginfo | grep -i ldm
application SUNWldm Logical Domains Manager
application SUNWldmp2v Logical Domains P2V tool
root@gratel #
root@gratel # pkginfo -l SUNWldm | grep VERSION
VERSION: 1.3,REV=2010.01.07.23.26
root@gratel #

18. Ldmd kontrol.

root@gratel # svcs -a | grep ldmd
online 23:40:07 svc:/ldoms/ldmd:default
root@gratel #

19. Ldm list çıktısı

root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-c– SP 32 8064M 0.1% 3h 14m
root@gratel #
root@gratel # ldm list-config
factory-default [current]
initial
root@gratel #

20. Servislerin oluşturulması

root@gratel # ldm add-vds primary-vds0 primary
root@gratel # ldm add-vcc port-range=5000-5100 primary-vcc0 primary
root@gratel # ldm add-vsw net-dev=e1000g0 primary-vsw0 primary

root@gratel #

root@gratel # ldm list-services primary

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
primary-vsw0 primary 00:14:4f:fb:16:9d e1000g0 0 switch@0 1 1
1500
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
root@gratel #

21. Resource listesi.

root@gratel # ldm list-bindings

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 32 8064M 0.1% 3h 45m
MAC
00:21:28:16:97:70
HOSTID
0x85169770
CONTROL
failure-policy=ignore
DEPENDENCY
master=
VCPU
VID PID UTIL STRAND
0 0 1.4% 100%
1 1 3.0% 100%
2 2 0.1% 100%
3 3 0.0% 100%
4 4 0.1% 100%
5 5 1.6% 100%
6 6 0.1% 100%
7 7 0.0% 100%
8 8 0.1% 100%
9 9 0.9% 100%
10 10 2.0% 100%
11 11 0.1% 100%
12 12 0.0% 100%
13 13 0.3% 100%
14 14 0.7% 100%
15 15 0.1% 100%
24 24 0.0% 100%
25 25 0.1% 100%
26 26 0.1% 100%
27 27 1.5% 100%
28 28 0.1% 100%
29 29 0.1% 100%
30 30 0.1% 100%
31 31 2.1% 100%
32 32 3.2% 100%
33 33 0.1% 100%
34 34 0.1% 100%
35 35 0.1% 100%
36 36 0.8% 100%
37 37 0.1% 100%
38 38 0.0% 100%
39 39 0.2% 100%
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (24, 25, 26, 27, 28, 29, 30, 31)
3 (32, 33, 34, 35, 36, 37, 38, 39)
MEMORY
RA PA SIZE
0x8000000 0x8000000 8064M
VARIABLES
keyboard-layout=US-English
nvramrc=.” ChassisSerialNumber BEL08367U8 ” cr
IO
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID
MTU MODE
primary-vsw0 00:14:4f:fb:16:9d e1000g0 0 switch@0 1 1 1500
VDS
NAME VOLUME OPTIONS MPGROUP DEVICE
primary-vds0
VCONS
NAME SERVICE PORT
SP
root@gratel #

22. Başlangıçta tüm kaynaklar control domain e aittir. Diğer mantıksal domain leri oluşturmak için kaynakları serbest bırakmak gerekir.

root@gratel # ldm list -o crypto primary

NAME
primary
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (24, 25, 26, 27, 28, 29, 30, 31)
3 (32, 33, 34, 35, 36, 37, 38, 39)

root@gratel #
root@gratel # ldm list -o crypto primary

NAME
primary
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
root@gratel #
memory kontrolü.

root@gratel # ldm list -o memory primary

NAME
primary
MEMORY
RA PA SIZE
0x8000000 0x8000000 8064M
root@gratel #

root@gratel # ldm set-memory 4G primary

Initiating delayed reconfigure operation on LDom primary. All configuration
changes for other LDoms are disabled until the LDom reboots, at which time
the new configuration for LDom primary will also take effect.
root@gratel #
root@gratel # ldm list -o memory primary
NAME
primary
FLAGS
normal,delayed(remove(phys)),control,vio-service
MEMORY
RA PA SIZE
0x8000000 0x8000000 4G
root@gratel #
cpu kontrolü.
root@gratel # ldm list -o cpu primary
NAME
primary
FLAGS
normal,delayed(remove(phys)),control,vio-service
VCPU
VID PID UTIL STRAND
0 0 0.5% 100%
1 1 0.3% 100%
2 2 0.1% 100%
3 3 0.0% 100%
4 4 0.0% 100%
5 5 0.0% 100%
6 6 0.0% 100%
7 7 0.0% 100%
8 8 0.1% 100%
9 9 0.0% 100%
10 10 0.2% 100%
11 11 0.1% 100%
12 12 0.0% 100%
13 13 0.0% 100%
14 14 0.2% 100%
15 15 0.0% 100%
24 24 0.0% 100%
25 25 0.0% 100%
26 26 0.1% 100%
27 27 0.8% 100%
28 28 0.1% 100%
29 29 0.0% 100%
30 30 0.0% 100%
31 31 0.1% 100%
32 32 1.0% 100%
33 33 0.0% 100%
34 34 0.0% 100%
35 35 0.0% 100%
36 36 0.1% 100%
37 37 0.0% 100%
38 38 0.0% 100%
39 39 0.0% 100%
root@gratel #

root@gratel # ldm set-vcpu 4 primary

——————————————————————————
Notice: LDom primary is in the process of a delayed reconfiguration.
Any changes made to primary will only take effect after it reboots.
——————————————————————————
root@gratel #

root@gratel # ldm list -o cpu primary

NAME
primary
FLAGS
normal,delayed(remove(phys)),control,vio-service
VCPU
VID PID UTIL STRAND
0 0 0.3% 100%
1 1 0.1% 100%
2 2 0.0% 100%
3 3 0.0% 100%
root@gratel #
konfigürasyon kontrolü

root@gratel # ldm add-config musteri1
root@gratel # ldm list-config

factory-default
initial
musteri1 [current]
root@gratel #

23. Konfigürasyon değişikliğinin etkin olması için control domain reboot edilmesi gerekir. Böylece diğer domain ler için resources lar serbest kalacaktır.

root@gratel # shutdown -y -g0 -i6
Shutdown started. Sun Jul 25 18:13:32 EEST 2010
Changing to init state 6 – please wait

24. Default olarak control domain ve diğer domain ler arasında networking disable durumdadır. Bu iletişimi mümkün kılmak için virtual switch network device olarak konfigüre edilmelidir. Virtual switch, kullanılan fiziksel primary interface ile değiştirilebilir (bu örnekte e1000g0 için böyle) veya ek bir network interface olarak konfigüre edilebilir.

root@gratel # ifconfig vsw0 plumb
root@gratel # ifconfig vsw0 10.1.1.242 netmask 255.255.255.0 broadcast + up
root@gratel # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.1.1.233 netmask ffffff00 broadcast 10.1.1.255
ether 0:21:28:16:97:70
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.1.1.242 netmask ffffff00 broadcast 10.1.1.255
ether 0:14:4f:fb:16:9d
root@gratel #
root@gratel # grep vsw0 /etc/hosts
10.1.1.242 vsw0
root@gratel # more /etc/hostname.vsw0
vsw0
root@gratel #
root@gratel # dladm show-dev
vsw0 link: up speed: 1000 Mbps duplex: full
e1000g0 link: up speed: 1000 Mbps duplex: full
e1000g1 link: unknown speed: 0 Mbps duplex: half
e1000g2 link: up speed: 1000 Mbps duplex: full
e1000g3 link: up speed: 1000 Mbps duplex: full
e1000g4 link: unknown speed: 0 Mbps duplex: half
e1000g5 link: unknown speed: 0 Mbps duplex: half
root@gratel # dladm show-link
vsw0 type: non-vlan mtu: 1500 device: vsw0
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g2 type: non-vlan mtu: 1500 device: e1000g2
e1000g3 type: non-vlan mtu: 1500 device: e1000g3
e1000g4 type: non-vlan mtu: 1500 device: e1000g4
e1000g5 type: non-vlan mtu: 1500 device: e1000g5
root@gratel #

25. Her mantıksal domain için virtual console e erişmek için virtul network terminal server ın (vntsd) enable edilmesi gerekir.

root@gratel # svcs -a | grep vnt
disabled 18:17:16 svc:/ldoms/vntsd:default
root@gratel # svcadm enable svc:/ldoms/vntsd:default
root@gratel # svcs -a | grep vnt
online 18:55:03 svc:/ldoms/vntsd:default
root@gratel #

26. Guest domain oluşturulması

root@gratel # ldm list-config

factory-default
initial
musteri1 [current]
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 0.6% 50m
root@gratel #

root@gratel # ldm add-domain TT-ldg1
root@gratel # ldm list

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 1.1% 51m
TT-ldg1 inactive ——
root@gratel #

root@gratel # ldm add-vcpu 4 TT-ldg1
root@gratel # ldm add-memory 2g TT-ldg1
root@gratel # ldm add-mau 1 TT-ldg1
root@gratel # ldm list

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 0.5% 52m
TT-ldg1 inactive —— 4 2G
root@gratel #

27. Guest domain e virtual network device eklenmesi.

root@gratel # ldm add-vnet vnet1 primary-vsw0 TT-ldg1
root@gratel #
vnet1- logical domain te interface ismidir.
Primary-vsw0 ise varolan network servisidir (virtual switch)

28. Virtual disk olarak ZFS kullanacağız.

root@gratel # zpool create TT-ldmpool c2t202400A0B85A173Dd15
root@gratel # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
TT-ldmpool 2.47G 76.5K 2.47G 0% ONLINE –
root@gratel #
root@gratel # zpool add TT-ldmpool c2t202400A0B85A173Dd14
root@gratel # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
TT-ldmpool 4.94G 79.5K 4.94G 0% ONLINE –
root@gratel # zpool add TT-ldmpool c2t202400A0B85A173Dd13
root@gratel # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
TT-ldmpool 7.41G 96K 7.41G 0% ONLINE –
root@gratel # zpool add TT-ldmpool c2t202400A0B85A173Dd12
root@gratel # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
TT-ldmpool 27.3G 166K 27.3G 0% ONLINE –
root@gratel #
root@gratel # zfs create -V 13gb TT-ldmpool/TT-ldg1/disk0
root@gratel # zfs list
NAME USED AVAIL REFER MOUNTPOINT
TT-ldmpool 13.0G 13.9G 23K /TT-ldmpool
TT-ldmpool/TT-ldg1 13.0G 13.9G 21K /TT-ldmpool/TT-ldg1
TT-ldmpool/TT-ldg1/disk0 13G 26.9G 16K –
root@gratel #

29. Oluşturulan ZFS volume ün virtual disk olarak export edilmesi

root@gratel # ldm add-vdsdev /dev/zvol/dsk/TT-ldmpool/TT-ldg1/disk0 TT-ldg1_disk@primaryvds0
root@gratel #
primary-vds0 var olan virtual disk server

30. ZFS volume ün guest domain e atanması

root@gratel # ldm add-vdisk disk0 TT-ldg1_disk@primary-vds0 TT-ldg1
root@gratel #
disk0 – virtual disk ismi
TT-ldg1_disk – bağlanılacak volume ismi
Primary-vds0 – var olan bağlanılacak virtual disk server

31. auto-boot ve boot-device set edilmesi.

root@gratel # ldm set-var auto-boot\?=true TT-ldg1
root@gratel #
root@gratel # ldm set-var boot-device=vdisk TT-ldg1
root@gratel #
root@gratel # /opt/SUNWldm/bin/ldm list-devices -a mau
MAU
ID CPUSET BOUND
0 (0, 1, 2, 3, 4, 5, 6, 7) primary
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (24, 25, 26, 27, 28, 29, 30, 31)
3 (32, 33, 34, 35, 36, 37, 38, 39)
root@gratel #

32. resoure ların guest domain e bound edilmesi.

root@gratel # ldm bind-domain TT-ldg1
root@gratel # ldm list-domain TT-ldg1
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
TT-ldg1 bound —— 5000 4 2G
root@gratel #

33. guest domain console a bağlanılması ve guest domain in başlatılması.

root@gratel # ldm start-domain TT-ldg1
LDom TT-ldg1 started
root@gratel #
root@gratel # telnet localhost 5000
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connecting to console “TT-ldg1” in group “TT-ldg1” ….
Press ~? for control options ..
SPARC Enterprise T5120, No Keyboard
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.30.8.a, 2048 MB memory available, Serial #83398507.
Ethernet address 0:14:4f:f8:8f:6b, Host ID: 84f88f6b.
Boot device: vdisk File and args:
ERROR: boot-read fail
Evaluating:
Can’t locate boot device
{0} ok
{0} ok

34. resource ların durumu

root@gratel # ldm list-bindings
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 1.0% 1h 57m
MAC
00:21:28:16:97:70
HOSTID
0x85169770
CONTROL
failure-policy=ignore
DEPENDENCY
master=
VCPU
VID PID UTIL STRAND
0 0 0.6% 100%
1 1 0.4% 100%
2 2 0.7% 100%
3 3 1.2% 100%
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
MEMORY
RA PA SIZE
0x8000000 0x8000000 4G
VARIABLES
keyboard-layout=US-English
nvramrc=.” ChassisSerialNumber BEL08367U8 ” cr
IO
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
CLIENT PORT
TT-ldg1@primary-vcc0 5000
VSW
NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID
MTU MODE
primary-vsw0 00:14:4f:fb:16:9d e1000g0 0 switch@0 1 1 1500
PEER MAC PVID VID MTU LINKPROP
vnet1@TT-ldg1 00:14:4f:fb:dd:f4 1 1500
VDS
NAME VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 TT-ldg1_disk /dev/zvol/dsk/TT-ldmpool/TT-ldg1/disk0
CLIENT VOLUME
disk0@TT-ldg1 TT-ldg1_disk
VCONS
NAME SERVICE PORT
SP
——————————————————————————
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
TT-ldg1 active -t—- 5000 4 2G 25% 3m
MAC
00:14:4f:f8:8f:6b
HOSTID
0x84f88f6b
CONTROL
failure-policy=ignore
DEPENDENCY
master=
VCPU
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
MEMORY
RA PA SIZE
0x8000000 0x108000000 2G
VARIABLES
auto-boot?=true
boot-device=vdisk
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU
LINKPROP
vnet1 primary-vsw0@primary 0 network@0 00:14:4f:fb:dd:f4 1 1500
PEER MAC MODE PVID VID MTU LINKPROP
primary-vsw0@primary 00:14:4f:fb:16:9d 1 1500
DISK
NAME VOLUME TOUT ID DEVICE SERVER MPGROUP
disk0 TT-ldg1_disk@primary-vds0 0 disk@0 primary
VCONS
NAME SERVICE PORT
TT-ldg1 primary-vcc0@primary 5000
root@gratel #

35. guest domain de device lar.

{0} ok devalias
disk0 /virtual-devices@100/channel-devices@200/disk@0
vnet1 /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 setenv boot-device disk0
boot-device = disk0
{0} ok printenv boot-device
boot-device = disk0
{0} ok
ok boot
Boot device: disk0 File and args:
Bad magic number in disk label
ERROR: /virtual-devices@100/channel-devices@200/disk@0: Can’t open disk label package
ERROR: boot-read fail
Can’t open boot device
{0} ok

ikinci guest domain ekleme

root@gratel # zpool add TT-ldmpool c2t202400A0B85A173Dd11
root@gratel # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
TT-ldmpool 47.2G 154K 47.2G 0% ONLINE –
root@gratel # zfs create TT-ldmpool/TT-ldg2
root@gratel # zfs create -V 13gb TT-ldmpool/TT-ldg2/disk0
root@gratel # zfs list
NAME USED AVAIL REFER MOUNTPOINT
TT-ldmpool 26.0G 20.4G 24K /TT-ldmpool
TT-ldmpool/TT-ldg1 13.0G 20.4G 21K /TT-ldmpool/TT-ldg1
TT-ldmpool/TT-ldg1/disk0 13G 33.4G 16K –
TT-ldmpool/TT-ldg2 13.0G 20.4G 21K /TT-ldmpool/TT-ldg2
TT-ldmpool/TT-ldg2/disk0 13G 33.4G 16K –
root@gratel #
root@gratel # ldm add-domain TT-ldg2
root@gratel # ldm add-vcpu 8 TT-ldg2
root@gratel # ldm add-memory 1g TT-ldg2
root@gratel # ldm add-mau 1 TT-ldg2
root@gratel #
root@gratel # ldm add-vnet vnet1 primary-vsw0 TT-ldg2
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 69% 2h 37m
TT-ldg1 active -t—- 5000 4 2G 25% 43m
TT-ldg2 inactive —— 8 1G
root@gratel #
root@gratel # ldm add-vdsdev /dev/zvol/dsk/TT-ldmpool/TT-ldg2/disk0 TT-ldg2_disk@primary-vds0
root@gratel # ldm add-vdisk disk0 TT-ldg2_disk@primary-vds0 TT-ldg2
root@gratel #
root@gratel # ldm set-var auto-boot\?=true TT-ldg2
root@gratel # ldm set-var boot-device=disk0 TT-ldg2
root@gratel #
root@gratel # ldm bind-domain TT-ldg2
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 0.5% 2h 45m
TT-ldg1 active -t—- 5000 4 2G 25% 51m
TT-ldg2 bound —— 5001 8 1G
root@gratel #
root@gratel # ldm list-bindings TT-ldg2
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
TT-ldg2 bound —— 5001 8 1G
MAC
00:14:4f:f9:39:bf
HOSTID
0x84f939bf
CONTROL
failure-policy=ignore
DEPENDENCY
master=
VCPU
VID PID UTIL STRAND
0 8 100%
1 9 100%
2 10 100%
3 11 100%
4 12 100%
5 13 100%
6 14 100%
7 15 100%
MAU
ID CPUSET
1 (8, 9, 10, 11, 12, 13, 14, 15)
MEMORY
RA PA SIZE
0x8000000 0x188000000 1G
VARIABLES
auto-boot?=true
boot-device=disk0
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU
LINKPROP
vnet1 primary-vsw0@primary 0 network@0 00:14:4f:f9:f6:df 1 1500
PEER MAC MODE PVID VID MTU LINKPROP
primary-vsw0@primary 00:14:4f:fb:16:9d 1 1500
vnet1@TT-ldg1 00:14:4f:fb:dd:f4 1 1500
DISK
NAME VOLUME TOUT ID DEVICE SERVER MPGROUP
disk0 TT-ldg2_disk@primary-vds0 0 disk@0 primary
VCONS
NAME SERVICE PORT
TT-ldg2 primary-vcc0@primary 5001
root@gratel #
root@gratel # telnet localhost 5001
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connecting to console “TT-ldg2” in group “TT-ldg2” ….
Press ~? for control options ..
Domain başlattıktan sonra
root@gratel # ldm start TT-ldg2
LDom TT-ldg2 started
root@gratel #
SPARC Enterprise T5120, No Keyboard
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.30.8.a, 1024 MB memory available, Serial #83442111.
Ethernet address 0:14:4f:f9:39:bf, Host ID: 84f939bf.
Boot device: disk0 File and args:
Bad magic number in disk label
ERROR: /virtual-devices@100/channel-devices@200/disk@0: Can’t open disk label package
ERROR: boot-read fail
Evaluating:
Can’t open boot device
{0} ok
{0} ok devalias
disk0 /virtual-devices@100/channel-devices@200/disk@0
vnet1 /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

36. TT-ldg1’e işletim sistemi kurulması.

root@gratel # svcs -a | grep volfs
online 18:20:56 svc:/system/filesystem/volfs:default
root@gratel # svcadm disable volfs
root@gratel # svcs -a | grep volfs
disabled 10:00:58 svc:/system/filesystem/volfs:default
root@gratel # ldm stop TT-ldg1
LDom TT-ldg1 stopped
root@gratel # ldm unbind TT-ldg1
root@gratel #
root@gratel # ldm add-vdsdev /dev/dsk/c0t0d0s2 dvd_vol@primary-vds0
root@gratel # ldm add-vdisk vdisk_cd_media dvd_vol@primary-vds0 TT-ldg1
root@gratel #
root@gratel # ldm bind TT-ldg1
root@gratel # ldm start TT-ldg1
LDom TT-ldg1 started
root@gratel #
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 5.4% 15h 50m
TT-ldg1 active -t—- 5000 4 2G 25% 2m
TT-ldg2 active -t—- 5001 8 1G 12% 13h 3m
root@gratel #
root@gratel # telnet localhost 5000
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connecting to console “TT-ldg1” in group “TT-ldg1” ….
Press ~? for control options ..
{0} ok devalias
vdisk_cd_media /virtual-devices@100/channel-devices@200/disk@1
disk0 /virtual-devices@100/channel-devices@200/disk@0
vnet1 /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
Sistem kurulumuna başladık.
{0} ok boot vdisk_cd_media:f -v
Boot device: /virtual-devices@100/channel-devices@200/disk@1:f File and args: -v

oracle_vm_sparc_ldom_practice_v5-6

oracle_vm_sparc_ldom_practice_v5-7

37. Diğer domain in iso dosyasından kurulması

root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 2.5% 16h 20m
TT-ldg1 active -n—- 5000 4 2G 5.6% 32m
TT-ldg2 active -t—- 5001 8 1G 12% 13h 33m
root@gratel #
root@gratel # ldm stop TT-ldg2
LDom TT-ldg2 stopped
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 11% 16h 21m
TT-ldg1 active -n—- 5000 4 2G 1.5% 33m
TT-ldg2 bound —— 5001 8 1G
root@gratel # ldm unbind TT-ldg2
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 1.2% 16h 22m
TT-ldg1 active -n—- 5000 4 2G 9.9% 34m
TT-ldg2 inactive —— 8 1G
root@gratel #
root@gratel # cd /data
root@gratel # ls
SOL_10_1009_SPARC.iso lost+found
root@gratel # ldm add-vdsdev /data/SOL_10_1009_SPARC.iso iso_vol@primary-vds0
root@gratel # ldm add-vdisk vdisk_iso iso_vol@primary-vds0 TT-ldg2
root@gratel #
root@gratel # ldm list-bindings TT-ldg2
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
TT-ldg2 inactive —— 8 1G
CONTROL
failure-policy=ignore
DEPENDENCY
master=
VARIABLES
auto-boot?=true
boot-device=disk0
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU
LINKPROP
vnet1 primary-vsw0 0 00:14:4f:f9:f6:df 1
DISK
NAME VOLUME TOUT ID DEVICE SERVER MPGROUP
disk0 TT-ldg2_disk@primary-vds0 0
vdisk_iso iso_vol@primary-vds0 1
root@gratel #
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 11% 16h 25m
TT-ldg1 active -n—- 5000 4 2G 25% 37m
TT-ldg2 active -t—- 5001 8 1G 12% 25s
root@gratel # telnet localhost 5001
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connecting to console “TT-ldg2” in group “TT-ldg2” ….
Press ~? for control options ..
{0} ok
{0} ok devalias
vdisk_iso /virtual-devices@100/channel-devices@200/disk@1
disk0 /virtual-devices@100/channel-devices@200/disk@0
vnet1 /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 boot vdisk_iso:f -v
Boot device: /virtual-devices@100/channel-devices@200/disk@1:f File and args: -v

oracle_vm_sparc_ldom_practice_v5-8

oracle_vm_sparc_ldom_practice_v5-9

oracle_vm_sparc_ldom_practice_v5-10

oracle_vm_sparc_ldom_practice_v5-11

Guest domain ler hazır durumda.

TThost2 console login: root
Password:
Jul 26 14:54:01 TThost2 login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# uname -a
SunOS TThost2 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5120
#
TTguest1 console login: root
Password:
Jul 26 14:54:10 TTguest1 login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# uname -a
SunOS TTguest1 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5120
#
root@gratel # ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 4G 0.9% 20h 40m
TT-ldg1 active -n—- 5000 4 2G 0.1% 3h 14m
TT-ldg2 active -n—- 5001 8 1G 0.0% 3h 12m
root@gratel #
bash-3.00# hostname
TTguest1
bash-3.00# prtdiag -v | more
System Configuration: Sun Microsystems sun4v SPARC Enterprise T5120
Memory size: 2048 Megabytes
================================ Virtual CPUs ================================
CPU ID Frequency Implementation Status
—— ——— ———————- ——-
0 1165 MHz SUNW,UltraSPARC-T2 on-line
1 1165 MHz SUNW,UltraSPARC-T2 on-line
2 1165 MHz SUNW,UltraSPARC-T2 on-line
3 1165 MHz SUNW,UltraSPARC-T2 on-line
================================ IO Devices ================================
Slot + Bus Name + Model
Status Type Path
—————————————————————————-
bash-3.00#
bash-3.00# hostname
TThost2
bash-3.00# prtdiag -v
System Configuration: Sun Microsystems sun4v SPARC Enterprise T5120
Memory size: 1024 Megabytes
================================ Virtual CPUs ================================
CPU ID Frequency Implementation Status
—— ——— ———————- ——-
0 1165 MHz SUNW,UltraSPARC-T2 on-line
1 1165 MHz SUNW,UltraSPARC-T2 on-line
2 1165 MHz SUNW,UltraSPARC-T2 on-line
3 1165 MHz SUNW,UltraSPARC-T2 on-line
4 1165 MHz SUNW,UltraSPARC-T2 on-line
5 1165 MHz SUNW,UltraSPARC-T2 on-line
6 1165 MHz SUNW,UltraSPARC-T2 on-line
7 1165 MHz SUNW,UltraSPARC-T2 on-line
================================ IO Devices ================================
Slot + Bus Name + Model
Status Type Path
—————————————————————————-
bash-3.00#

 

Paylaş :