[t5120:/]ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 8G 0.2% 27d 1h 17m
yj-test inactive ------ 16 6G
=> primary 물리 서버 O/S
[t5120:/]ldm rm-domain yj-test
=> domain 삭제
[t5120:/]ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 8G 0.4% 27d 1h 17m
[t5120:/]ldm ls-devices
CORE
ID %FREE CPUSET
1 100 (8, 9, 10, 11, 12, 13, 14, 15)
2 100 (16, 17, 18, 19, 20, 21, 22, 23)
3 100 (24, 25, 26, 27, 28, 29, 30, 31)
VCPU
PID %FREE
8 100
9 100
10 100
11 100
12 100
13 100
14 100
15 100
16 100
17 100
18 100
19 100
20 100
21 100
22 100
23 100
24 100
25 100
26 100
27 100
28 100
29 100
30 100
31 100
=> VCPU 8~31 총 23개 ( 0~7 primary 에서 사용 )
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (16, 17, 18, 19, 20, 21, 22, 23)
3 (24, 25, 26, 27, 28, 29, 30, 31)
MEMORY
PA SIZE
0x20c000000 8000M
=> VCC = Virtual console concentrator service
VSW = Virtual switch service
VDS = Virtual disk server
[t5120:/]ldm ls-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-vsw1 primary 00:14:4f:f9:de:6f e1000g2 0 switch@0 1 1 1500 on
primary-vsw2 primary 00:14:4f:f9:35:33 e1000g3 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary sol10u11 ro /fkl/sol-10-u11-ga-sparc-dvd.iso
sol10u9 ro /fkl/sol-10-u9-ga-sparc-dvd.iso
primary-vds1 primary vol1 /dev/dsk/c1t2d0s2
primary-vds2 primary vol2 /dev/dsk/c1t3d0s2
primary-vds3 primary
[t5120:/]ldm rm-vcc primary-vcc0
[t5120:/]ldm ls-services
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw1 primary 00:14:4f:f9:de:6f e1000g2 0 switch@0 1 1 1500 on
primary-vsw2 primary 00:14:4f:f9:35:33 e1000g3 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary sol10u11 ro /fkl/sol-10-u11-ga-sparc-dvd.iso
sol10u9 ro /fkl/sol-10-u9-ga-sparc-dvd.iso
primary-vds1 primary vol1 /dev/dsk/c1t2d0s2
primary-vds2 primary vol2 /dev/dsk/c1t3d0s2
primary-vds3 primary
[t5120:/]ldm add-vcc port-range=5000-5100 primary-vcc0 primary
=> VCC 추가 ( 5000-5100 port 지정 )
[t5120:/]ldm ls-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-vsw1 primary 00:14:4f:f9:de:6f e1000g2 0 switch@0 1 1 1500 on
primary-vsw2 primary 00:14:4f:f9:35:33 e1000g3 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary sol10u11 ro /fkl/sol-10-u11-ga-sparc-dvd.iso
sol10u9 ro /fkl/sol-10-u9-ga-sparc-dvd.iso
primary-vds1 primary vol1 /dev/dsk/c1t2d0s2
primary-vds2 primary vol2 /dev/dsk/c1t3d0s2
primary-vds3 primary
[t5120:/]ldm add-vsw net-dev=e1000g2 primary-vsw1 primary
[t5120:/]ldm ls-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-vsw2 primary 00:14:4f:f9:35:33 e1000g3 1 switch@1 1 1 1500 on
primary-vsw1 primary 00:14:4f:f9:de:6f e1000g2 0 switch@0 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary sol10u11 ro /fkl/sol-10-u11-ga-sparc-dvd.iso
sol10u9 ro /fkl/sol-10-u9-ga-sparc-dvd.iso
primary-vds1 primary vol1 /dev/dsk/c1t2d0s2
primary-vds2 primary vol2 /dev/dsk/c1t3d0s2
primary-vds3 primary
요약
1. ldm ls
2. ldm ls-services
3. ldm add-vcc port-range=5000-5100 primary-vcc0 primary
4. ldm rm-vcc primary-vcc0
5. ldm add-vsw net-dev=e1000g2 primary-vsw1 primary
6. ldm rm-vsw primary-vsw1
7. ldm add-vds primary-vds1
8. ldm add-vdsdev /dev/dsk/c1t2d0s2 vol1@primary-vds1
9. ldm rm-vds primary-vds1
참고 : https://docs.oracle.com/cd/E38405_01/pdf/E38406.pdf
'Work > Solaris' 카테고리의 다른 글
ldom 관련 명령어들 3 ( iso 파일 추가 ) (0) | 2015.02.03 |
---|---|
ldom 관련 명령어들 2 ( Guest domain 추가 ) (0) | 2015.01.26 |
ldom 설치, 삭제 (0) | 2015.01.26 |
solaris 자동완성 (0) | 2015.01.13 |
tcp 파라미터 (0) | 2015.01.13 |