Un pequeño resumen que me encontre en otro Blog con las actividades comunes en los Ldom
Logical domains for solaris are supported on the UltraSparc T-Series CPUS.
The ldmd daemon must be running and the command line management is performed using the ldm command with various options.
First you have to create the virtual default services:
* vdiskserver - the virtual disk server
* vswitch - the virtual switch service
* vconson - the virtual console concentrator service
* vswitch - the virtual switch service
* vconson - the virtual console concentrator service
Below each one is created in turn:
Create the virtual disk server (vds), it allows importing virtual disks into the logical domain.
# ldm add-vds primary-vds0 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.
# ldm add-vds primary-vds0 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.
Create the virtual console concentrator service (vcc). The virtual network terminal server daemon (vntsd) will use this.
# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
Notice: LDom primary is in the process of a delayed reconfiguration.
Any changes made to this LDom will only take effect after it reboots.
# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
Notice: LDom primary is in the process of a delayed reconfiguration.
Any changes made to this LDom will only take effect after it reboots.
Create the vitual switch service (vsw)
# ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
Notice: LDom primary is in the process of a delayed reconfiguration.
Any changes made to this LDom will only take effect after it reboots.
# ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
Notice: LDom primary is in the process of a delayed reconfiguration.
Any changes made to this LDom will only take effect after it reboots.
The messages after the command are normal.
Listing the virtual services just created, on the primary (base OS)
# ldm list-services primary
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0
# ldm list-services primary
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
Assign resources to the primary leaving other resources to the guest domain.
Assign one cryptographic resource to the primary
# /opt/SUNWldm/bin/ldm set-mau 1 primary
# /opt/SUNWldm/bin/ldm set-mau 1 primary
Assign 4 virtual cpus to the primary
# /opt/SUNWldm/bin/ldm set-vcpu 4 primary
# /opt/SUNWldm/bin/ldm set-vcpu 4 primary
Assign 1g of memory to the primary
# /opt/SUNWldm/bin/ldm set-memory 1024m primary
# /opt/SUNWldm/bin/ldm set-memory 1024m primary
List current configuration of the bootmode
# /opt/SUNWldm/bin/ldm list-spconfig
factory-default [current]
# /opt/SUNWldm/bin/ldm list-spconfig
factory-default [current]
Add the initial configuration
# /opt/SUNWldm/bin/ldm add-spconfig initial
# /opt/SUNWldm/bin/ldm add-spconfig initial
List the initial configuration again, to see on next boot the initial configuration will be used.
# /opt/SUNWldm/bin/ldm list-spconfig
factory-default [current]
initial [next]
# /opt/SUNWldm/bin/ldm list-spconfig
factory-default [current]
initial [next]
List the setup of the primary bindings
# /opt/SUNWldm/bin/ldm list-bindings primary
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 0.0% 12m
# /opt/SUNWldm/bin/ldm list-bindings primary
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 0.0% 12m
MAC
00:13:5f:fa:a6:46
00:13:5f:fa:a6:46
VCPU
VID PID UTIL STRAND
0 0 0.0% 100%
1 1 0.0% 100%
2 2 0.0% 100%
3 3 0.0% 100%
VID PID UTIL STRAND
0 0 0.0% 100%
1 1 0.0% 100%
2 2 0.0% 100%
3 3 0.0% 100%
MAU
CPUSET
(0, 1, 2, 3, 4, 5, 6, 7)
CPUSET
(0, 1, 2, 3, 4, 5, 6, 7)
MEMORY
RA PA SIZE
0x8000000 0x8000000 1G
RA PA SIZE
0x8000000 0x8000000 1G
VARIABLES
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
IO
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0
NAME VOLUME OPTIONS DEVICE
primary-vds0
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
VCONS
NAME SERVICE PORT
SP
NAME SERVICE PORT
SP
As a test virtual disk create a empty file for the virtual disk
# mkfile -v 10g disk1
disk1 10737418240 bytes
# mkfile -v 10g disk1
disk1 10737418240 bytes
Add the virtual disk
# ldm add-vdsdev /vdisk/disk1 vol1@primary-vds0
# ldm add-vdsdev /vdisk/disk1 vol1@primary-vds0
Create a ldom
# ldm add-domain eng
# ldm add-domain eng
add 4 virtual cpus to it
# ldm add-vcpu 4 eng
# ldm add-vcpu 4 eng
add 512m of mem to it
# ldm add-memory 512m eng
# ldm add-memory 512m eng
add a virtual network device to it
# ldm add-vnet vnet1 primary-vsw0 eng
# ldm add-vnet vnet1 primary-vsw0 eng
add a virtual disk
# ldm add-vdisk vdisk1 vol1@primary-vds0 eng
# ldm add-vdisk vdisk1 vol1@primary-vds0 eng
set auto-boot on ldom
# ldm set-var auto-boot?=true eng
# ldm set-var auto-boot?=true eng
set virtual boot disk
# ldm set-var boot-device=vdisk eng
# ldm set-var boot-device=vdisk eng
Bind to the domain
# ldm bind-domain eng
# ldm bind-domain eng
Startup the domain
# ldm start-domain eng
# ldm start-domain eng
Check the new domain is active
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.1% 4h 25m
eng active -t--- 5000 10 512M 10% 14m
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.1% 4h 25m
eng active -t--- 5000 10 512M 10% 14m
At this point the domain is created and it active, next you have to perform the OS installation using normal methods.
After the installation you'll have a solaris ldom built.
After the installation you'll have a solaris ldom built.
Connect up to the logical domain you've just created, the port range is from 5000-5100, the first port was assigned
to the virtual console.
to the virtual console.
# telnet localhost 5000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connecting to console "eng" in group "eng" ....
Press ~? for control options ..
{0} ok
{0} ok
{0} ok
{0} ok
{0} ok
Press ~? for control options ..
{0} ok
{0} ok
{0} ok
{0} ok
{0} ok
{0} ok banner
SPARC Enterprise T5220, No Keyboard
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.27.1, 512 MB memory available, Serial #xxxxxxxx.
Ethernet address 00:13:5f:fa:a6:46, Host ID: xxxxxxx.
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.27.1, 512 MB memory available, Serial #xxxxxxxx.
Ethernet address 00:13:5f:fa:a6:46, Host ID: xxxxxxx.
{0} ok show-devs
/cpu@9
/cpu@8
/cpu@7
/cpu@6
/cpu@5
/cpu@4
/cpu@3
/cpu@2
/cpu@1
/cpu@0
/virtual-devices@100
/virtual-memory
/memory@m0,8000000
/aliases
/options
/openprom
/chosen
/packages
/virtual-devices@100/channel-devices@200
/virtual-devices@100/console@1
/virtual-devices@100/random-number-generator@e
/virtual-devices@100/ncp@6
/virtual-devices@100/n2cp@7
/virtual-devices@100/channel-devices@200/disk@0
/virtual-devices@100/channel-devices@200/network@0
/openprom/client-services
/packages/obp-tftp
/packages/kbd-translator
/packages/SUNW,asr
/packages/dropins
/packages/terminal-emulator
/packages/disk-label
/packages/deblocker
/packages/SUNW,builtin-drivers
/cpu@9
/cpu@8
/cpu@7
/cpu@6
/cpu@5
/cpu@4
/cpu@3
/cpu@2
/cpu@1
/cpu@0
/virtual-devices@100
/virtual-memory
/memory@m0,8000000
/aliases
/options
/openprom
/chosen
/packages
/virtual-devices@100/channel-devices@200
/virtual-devices@100/console@1
/virtual-devices@100/random-number-generator@e
/virtual-devices@100/ncp@6
/virtual-devices@100/n2cp@7
/virtual-devices@100/channel-devices@200/disk@0
/virtual-devices@100/channel-devices@200/network@0
/openprom/client-services
/packages/obp-tftp
/packages/kbd-translator
/packages/SUNW,asr
/packages/dropins
/packages/terminal-emulator
/packages/disk-label
/packages/deblocker
/packages/SUNW,builtin-drivers
{0} ok show-disks
a) /virtual-devices@100/channel-devices@200/disk@0
q) NO SELECTION
Enter Selection, q to quit: q
a) /virtual-devices@100/channel-devices@200/disk@0
q) NO SELECTION
Enter Selection, q to quit: q
{0} ok show-nets
a) /virtual-devices@100/channel-devices@200/network@0
q) NO SELECTION
Enter Selection, q to quit: q
a) /virtual-devices@100/channel-devices@200/network@0
q) NO SELECTION
Enter Selection, q to quit: q
VNTSD commands
~# --Send break
~. --Exit from this console
~w --Force write access
~n --Console next
~p --Console previous
~? --Help
~# --Send break
~. --Exit from this console
~w --Force write access
~n --Console next
~p --Console previous
~? --Help
{0} ok boot vnet0:dhcp
Boot device: /virtual-devices@100/channel-devices@200/network@0:dhcp File and args:
SunOS Release 5.10 Version Generic_118833-29 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Configuring devices.
Using DHCP for network configuration information.
Setting up Java. Please wait ...
Boot device: /virtual-devices@100/channel-devices@200/network@0:dhcp File and args:
SunOS Release 5.10 Version Generic_118833-29 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Configuring devices.
Using DHCP for network configuration information.
Setting up Java. Please wait ...
Check the full configuration of eng ldom.
# /opt/SUNWldm/bin/ldm list-domain -l eng
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
eng active -t--- 5000 10 512M 10% 15m
# /opt/SUNWldm/bin/ldm list-domain -l eng
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
eng active -t--- 5000 10 512M 10% 15m
SOFTSTATE
Openboot Running Host Halted
Openboot Running Host Halted
VCPU
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
4 8 0.0% 100%
5 9 0.0% 100%
6 10 0.0% 100%
7 11 0.0% 100%
8 12 0.0% 100%
9 13 0.0% 100%
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
4 8 0.0% 100%
5 9 0.0% 100%
6 10 0.0% 100%
7 11 0.0% 100%
8 12 0.0% 100%
9 13 0.0% 100%
MEMORY
RA PA SIZE
0x8000000 0x48000000 512M
RA PA SIZE
0x8000000 0x48000000 512M
VARIABLES
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
use-nvramrc?=true
NETWORK
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0@primary network@0 00:13:5f:fa:a6:46
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0@primary network@0 00:13:5f:fa:a6:46
DISK
NAME VOLUME TOUT DEVICE SERVER
vdisk1 vol1@primary-vds0 disk@0 primary
NAME VOLUME TOUT DEVICE SERVER
vdisk1 vol1@primary-vds0 disk@0 primary
VCONS
NAME SERVICE PORT
eng primary-vcc0@primary 5000
NAME SERVICE PORT
eng primary-vcc0@primary 5000
Save the configuration for next reboot
# ldm add-spconfig final
# ldm list-spconfig
factory-default [current]
initial
final [next]
# ldm add-spconfig final
# ldm list-spconfig
factory-default [current]
initial
final [next]
Check information on virtual processors with psrinfo:
# psrinfo -vp
The physical processor has 4 virtual processors (0-3)
UltraSPARC-T2 (cpuid 0 clock 1167 MHz)
# psrinfo -vp
The physical processor has 4 virtual processors (0-3)
UltraSPARC-T2 (cpuid 0 clock 1167 MHz)
List all devices and their allocation to ldoms
# ldm ls-devices -a
VCPU
PID %FREE
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
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
32 100
33 100
34 100
35 100
36 100
37 100
38 100
39 100
40 100
41 100
42 100
43 100
44 100
45 100
46 100
47 100
48 100
49 100
50 100
51 100
52 100
53 100
54 100
55 100
56 100
57 100
58 100
59 100
60 100
61 100
62 100
63 100
# ldm ls-devices -a
VCPU
PID %FREE
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
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
32 100
33 100
34 100
35 100
36 100
37 100
38 100
39 100
40 100
41 100
42 100
43 100
44 100
45 100
46 100
47 100
48 100
49 100
50 100
51 100
52 100
53 100
54 100
55 100
56 100
57 100
58 100
59 100
60 100
61 100
62 100
63 100
MAU
CPUSET BOUND
(0, 1, 2, 3, 4, 5, 6, 7) primary
(8, 9, 10, 11, 12, 13, 14, 15)
(16, 17, 18, 19, 20, 21, 22, 23)
(24, 25, 26, 27, 28, 29, 30, 31)
(32, 33, 34, 35, 36, 37, 38, 39)
(40, 41, 42, 43, 44, 45, 46, 47)
(48, 49, 50, 51, 52, 53, 54, 55)
(56, 57, 58, 59, 60, 61, 62, 63)
CPUSET BOUND
(0, 1, 2, 3, 4, 5, 6, 7) primary
(8, 9, 10, 11, 12, 13, 14, 15)
(16, 17, 18, 19, 20, 21, 22, 23)
(24, 25, 26, 27, 28, 29, 30, 31)
(32, 33, 34, 35, 36, 37, 38, 39)
(40, 41, 42, 43, 44, 45, 46, 47)
(48, 49, 50, 51, 52, 53, 54, 55)
(56, 57, 58, 59, 60, 61, 62, 63)
MEMORY
PA SIZE BOUND
0x0 512K _sys_
0x80000 1536K _sys_
0x200000 62M _sys_
0x4000000 8M _sys_
0x4800000 56M _sys_
0x8000000 1G primary
0x48000000 512M eng
0x68000000 31104M
PA SIZE BOUND
0x0 512K _sys_
0x80000 1536K _sys_
0x200000 62M _sys_
0x4000000 8M _sys_
0x4800000 56M _sys_
0x8000000 1G primary
0x48000000 512M eng
0x68000000 31104M
IO
DEVICE PSEUDONYM BOUND OPTIONS
pci@0 pci yes
niu@80 niu yes
DEVICE PSEUDONYM BOUND OPTIONS
pci@0 pci yes
niu@80 niu yes
List unallocated devices
# ldm list-devices
VCPU
PID %FREE
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
32 100
33 100
34 100
35 100
36 100
37 100
38 100
39 100
40 100
41 100
42 100
43 100
44 100
45 100
46 100
47 100
48 100
49 100
50 100
51 100
52 100
53 100
54 100
55 100
56 100
57 100
58 100
59 100
60 100
61 100
62 100
63 100
# ldm list-devices
VCPU
PID %FREE
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
32 100
33 100
34 100
35 100
36 100
37 100
38 100
39 100
40 100
41 100
42 100
43 100
44 100
45 100
46 100
47 100
48 100
49 100
50 100
51 100
52 100
53 100
54 100
55 100
56 100
57 100
58 100
59 100
60 100
61 100
62 100
63 100
MAU
CPUSET
(8, 9, 10, 11, 12, 13, 14, 15)
(16, 17, 18, 19, 20, 21, 22, 23)
(24, 25, 26, 27, 28, 29, 30, 31)
(32, 33, 34, 35, 36, 37, 38, 39)
(40, 41, 42, 43, 44, 45, 46, 47)
(48, 49, 50, 51, 52, 53, 54, 55)
(56, 57, 58, 59, 60, 61, 62, 63)
CPUSET
(8, 9, 10, 11, 12, 13, 14, 15)
(16, 17, 18, 19, 20, 21, 22, 23)
(24, 25, 26, 27, 28, 29, 30, 31)
(32, 33, 34, 35, 36, 37, 38, 39)
(40, 41, 42, 43, 44, 45, 46, 47)
(48, 49, 50, 51, 52, 53, 54, 55)
(56, 57, 58, 59, 60, 61, 62, 63)
MEMORY
PA SIZE
0x68000000 31104M
PA SIZE
0x68000000 31104M
List the constrainst used to create a logical domain
# ldm list-constraints
DOMAIN
primary
# ldm list-constraints
DOMAIN
primary
MAC
00:14:4f:97:9e:24
00:14:4f:97:9e:24
VCPU
COUNT
4
COUNT
4
MAU
COUNT
1
COUNT
1
MEMORY
SIZE
1G
SIZE
1G
VARIABLES
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
IO
DEVICE OPTIONS
pci@0
niu@80
DEVICE OPTIONS
pci@0
niu@80
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0 vol1 /vdisk/disk1
NAME VOLUME OPTIONS DEVICE
primary-vds0 vol1 /vdisk/disk1
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE
primary-vsw0 e1000g0 switch@0
NAME MAC NET-DEV DEVICE
primary-vsw0 e1000g0 switch@0
DOMAIN
eng
eng
VCPU
COUNT
10
COUNT
10
MEMORY
SIZE
512M
SIZE
512M
VARIABLES
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
use-nvramrc?=true
NETWORK
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0 network@0
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0 network@0
DISK
NAME VOLUME TOUT
vdisk1 vol1@primary-vds0
NAME VOLUME TOUT
vdisk1 vol1@primary-vds0
VCONS
NAME SERVICE PORT
eng primary-vcc0
NAME SERVICE PORT
eng primary-vcc0
List the logical domains which are bound.
# ldm list-bindings
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.2% 4h 36m
# ldm list-bindings
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.2% 4h 36m
MAC
00:12:4f:94:9f:24
00:12:4f:94:9f:24
VCPU
VID PID UTIL STRAND
0 0 1.3% 100%
1 1 1.0% 100%
2 2 1.1% 100%
3 3 1.0% 100%
VID PID UTIL STRAND
0 0 1.3% 100%
1 1 1.0% 100%
2 2 1.1% 100%
3 3 1.0% 100%
MAU
CPUSET
(0, 1, 2, 3, 4, 5, 6, 7)
CPUSET
(0, 1, 2, 3, 4, 5, 6, 7)
MEMORY
RA PA SIZE
0x8000000 0x8000000 1G
RA PA SIZE
0x8000000 0x8000000 1G
VARIABLES
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a rootmirror disk net
keyboard-layout=US-English
nvramrc=devalias rootmirror /pci@0/pci@0/pci@2/scsi@0/disk@1,0
security-mode=none
security-password=
use-nvramrc?=true
IO
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
DEVICE PSEUDONYM OPTIONS
pci@0 pci
niu@80 niu
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0 vol1 /var/crash/disk1
CLIENT VOLUME
vdisk1@eng vol1
NAME VOLUME OPTIONS DEVICE
primary-vds0 vol1 /var/crash/disk1
CLIENT VOLUME
vdisk1@eng vol1
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
CLIENT PORT
eng@eng 5000
NAME PORT-RANGE
primary-vcc0 5000-5100
CLIENT PORT
eng@eng 5000
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
PEER MAC
vnet1@eng 00:14:4f:fa:d2:30
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:13:5f:fa:a6:46 e1000g0 switch@0 prog,promisc
PEER MAC
vnet1@eng 00:14:4f:fa:d2:30
VCONS
NAME SERVICE PORT
SP
NAME SERVICE PORT
SP
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
eng active -t--- 5000 10 512M 10% 24m
eng active -t--- 5000 10 512M 10% 24m
MAC
00:13:5f:fa:a6:46
00:13:5f:fa:a6:46
VCPU
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
4 8 0.0% 100%
5 9 0.0% 100%
6 10 0.0% 100%
7 11 0.0% 100%
8 12 0.0% 100%
9 13 0.0% 100%
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
4 8 0.0% 100%
5 9 0.0% 100%
6 10 0.0% 100%
7 11 0.0% 100%
8 12 0.0% 100%
9 13 0.0% 100%
MEMORY
RA PA SIZE
0x8000000 0x48000000 512M
RA PA SIZE
0x8000000 0x48000000 512M
VARIABLES
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
nvramrc=devalias vnet0 /virtual-devices@100/channel-devices@200/network@0
use-nvramrc?=true
NETWORK
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0@primary network@0 00:14:4f:fa:d2:30
PEER MAC
primary-vsw0@primary 00:13:5f:fa:a6:46
NAME SERVICE DEVICE MAC
vnet1 primary-vsw0@primary network@0 00:14:4f:fa:d2:30
PEER MAC
primary-vsw0@primary 00:13:5f:fa:a6:46
DISK
NAME VOLUME TOUT DEVICE SERVER
vdisk1 vol1@primary-vds0 disk@0 primary
NAME VOLUME TOUT DEVICE SERVER
vdisk1 vol1@primary-vds0 disk@0 primary
VCONS
NAME SERVICE PORT
eng primary-vcc0@primary 5000
NAME SERVICE PORT
eng primary-vcc0@primary 5000
Starting and stopping the domains. Make sure the OS is down before doing this.
Check the status.
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.0% 4h 38m
eng active -t--- 5000 10 512M 10% 27m
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.0% 4h 38m
eng active -t--- 5000 10 512M 10% 27m
Stop a domain.
# /opt/SUNWldm/bin/ldm stop-domain eng
LDom eng stopped
# /opt/SUNWldm/bin/ldm stop-domain eng
LDom eng stopped
Check the status of domain.
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.0% 4h 38m
eng bound ----- 5000 10 512M
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 1.0% 4h 38m
eng bound ----- 5000 10 512M
Start a domain.
# /opt/SUNWldm/bin/ldm start-domain eng
LDom eng started
# /opt/SUNWldm/bin/ldm start-domain eng
LDom eng started
Check the status of the domain.
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 2.2% 4h 39m
eng active -t--- 5000 10 512M 0.0% 11s
# /opt/SUNWldm/bin/ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 2.2% 4h 39m
eng active -t--- 5000 10 512M 0.0% 11s
Checking the versions of ldom and ldom firmware
# ldm -V
# ldm -V
Logical Domain Manager (v 1.0.1)
Hypervisor control protocol v 1.0
Hypervisor control protocol v 1.0
System PROM:
Hypervisor v. 1.5.1 @(#)Hypervisor 1.5.1 2007/09/14 16:11�15
Hypervisor v. 1.5.1 @(#)Hypervisor 1.5.1 2007/09/14 16:11�15
OpenBoot v. 4.27.1 @(#)OBP 4.27.1 2007/09/14 15:17
List the out in a parseable format
# ldm list -p
VERSION 1.0
DOMAIN|name=primary|state=active|flags=-n-cv|cons=SP|ncpu=4|mem=1073741824
|util=1.0|uptime=786829
DOMAIN|name=eng|state=active|flags=-t---|cons=5000|ncpu=10|mem=536870912
# ldm list -p
VERSION 1.0
DOMAIN|name=primary|state=active|flags=-n-cv|cons=SP|ncpu=4|mem=1073741824
|util=1.0|uptime=786829
DOMAIN|name=eng|state=active|flags=-t---|cons=5000|ncpu=10|mem=536870912
No hay comentarios:
Publicar un comentario