LDOM
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 1.7% 1h 36m
appzone active -t---- 5000 2 4G 50% 1h 36m
webzone active -t---- 5001 4 4G 25% 5m
datazone inactive ------ 4 8G
bash-3.2#
bash-3.2# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "appzone" in group "appzone" ....
Press ~? for control options ..
~ ?
{0} ok
telnet> q
Connection to 0 closed.
bash-3.2# ldm add-domain testzone
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.8% 1h 39m
appzone active -t---- 5000 2 4G 50% 1h 39m
webzone active -t---- 5001 4 4G 25% 7m
datazone inactive ------ 4 8G
testzone inactive ------
bash-3.2# ldm add-memory 4G testzone
bash-3.2# ldm add-vcpu 2 testzone
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.7% 1h 41m
appzone active -t---- 5000 2 4G 50% 1h 41m
webzone active -t---- 5001 4 4G 25% 10m
datazone inactive ------ 4 8G
testzone inactive ------ 2 4G
ldm list-bindings
ldm add-vnet vnet_test primary-vsw0 testzone (create a virtual netowrk with ref to control domain)
bash-3.2# ldm list-bindings testzone | more
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
testzone inactive ------ 2 4G
CONTROL
failure-policy=ignore
DEPENDENCY
master=
NETWORK
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet_test primary-vsw0 00:14:4f:fa:e9:0d 1
mkfile 1G /export/home/testzone testzone
bash-3.2# ls -lh /export/home/testzone (create a phyical disk under testzone)
-rw------T 1 root root 1.0G Feb 22 00:11 /export/home/testzone
bash-3.2# ldm add-vdsdev /export/home/testzone DL29@primary-vds0 (virtulize physical disk)
bash-3.2# ldm add-vdisk VSL29 DL29@primary-vds0 testzone (add virtual disk on ldom)
ldm list-bindings testzone
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
testzone inactive ------ 2 4G
CONTROL
failure-policy=ignore
DEPENDENCY
master=
NETWORK
bash-3.2# ldm set-var boot-device=VSL29 testzone (set boot disk)
bash-3.2# ldm list-spconfig (back up spconfig)
factory-default
bikash
cfg02212016
cfg02212016a [next poweron]
primary-with-clients
bash-3.2# ldm add-spconfig cfg02212016 (save spconfig)
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet_test primary-vsw0 00:14:4f:fa:e9:0d 1
DISK
NAME VOLUME TOUT DEVICE SERVER MPGROUP
VSL29 DL29@primary-vds0
bash-3.2# ldm bind testzone (bind the ldom)
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.6% 2h 6m
appzone active -t---- 5000 2 4G 50% 2h 6m
testzone bound ------ 5002 2 4G
webzone active -t---- 5001 4 4G 25% 35m
datazone inactive ------ 4 8G
bash-3.2# ldm start webzone (start ldom)
LDom webzone is active
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 2.6% 2h 7m
appzone active -t---- 5000 2 4G 50% 2h 7m
testzone bound ------ 5002 2 4G
webzone active -t---- 5001 4 4G 25% 35m
datazone inactive ------ 4 8G
telnet localhost 5002
mkfile 30m OSiso.iso
ldm add-vdsdev options=ro /export/home/OSiso.iso newiso@primary-vds0
lldm stop appzone
ldm add-vdisk VISO1 newiso@primary-vds0 testzone
ldm add-vdisk -f VISO1 iso@primary-vds0 testzone
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 1.7% 1h 36m
appzone active -t---- 5000 2 4G 50% 1h 36m
webzone active -t---- 5001 4 4G 25% 5m
datazone inactive ------ 4 8G
bash-3.2#
bash-3.2# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "appzone" in group "appzone" ....
Press ~? for control options ..
~ ?
{0} ok
telnet> q
Connection to 0 closed.
bash-3.2# ldm add-domain testzone
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.8% 1h 39m
appzone active -t---- 5000 2 4G 50% 1h 39m
webzone active -t---- 5001 4 4G 25% 7m
datazone inactive ------ 4 8G
testzone inactive ------
bash-3.2# ldm add-memory 4G testzone
bash-3.2# ldm add-vcpu 2 testzone
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.7% 1h 41m
appzone active -t---- 5000 2 4G 50% 1h 41m
webzone active -t---- 5001 4 4G 25% 10m
datazone inactive ------ 4 8G
testzone inactive ------ 2 4G
ldm list-bindings
ldm add-vnet vnet_test primary-vsw0 testzone (create a virtual netowrk with ref to control domain)
bash-3.2# ldm list-bindings testzone | more
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
testzone inactive ------ 2 4G
CONTROL
failure-policy=ignore
DEPENDENCY
master=
NETWORK
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet_test primary-vsw0 00:14:4f:fa:e9:0d 1
mkfile 1G /export/home/testzone testzone
bash-3.2# ls -lh /export/home/testzone (create a phyical disk under testzone)
-rw------T 1 root root 1.0G Feb 22 00:11 /export/home/testzone
bash-3.2# ldm add-vdsdev /export/home/testzone DL29@primary-vds0 (virtulize physical disk)
bash-3.2# ldm add-vdisk VSL29 DL29@primary-vds0 testzone (add virtual disk on ldom)
ldm list-bindings testzone
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
testzone inactive ------ 2 4G
CONTROL
failure-policy=ignore
DEPENDENCY
master=
NETWORK
bash-3.2# ldm set-var boot-device=VSL29 testzone (set boot disk)
bash-3.2# ldm list-spconfig (back up spconfig)
factory-default
bikash
cfg02212016
cfg02212016a [next poweron]
primary-with-clients
bash-3.2# ldm add-spconfig cfg02212016 (save spconfig)
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet_test primary-vsw0 00:14:4f:fa:e9:0d 1
DISK
NAME VOLUME TOUT DEVICE SERVER MPGROUP
VSL29 DL29@primary-vds0
bash-3.2# ldm bind testzone (bind the ldom)
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 0.6% 2h 6m
appzone active -t---- 5000 2 4G 50% 2h 6m
testzone bound ------ 5002 2 4G
webzone active -t---- 5001 4 4G 25% 35m
datazone inactive ------ 4 8G
bash-3.2# ldm start webzone (start ldom)
LDom webzone is active
bash-3.2# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 2 4G 2.6% 2h 7m
appzone active -t---- 5000 2 4G 50% 2h 7m
testzone bound ------ 5002 2 4G
webzone active -t---- 5001 4 4G 25% 35m
datazone inactive ------ 4 8G
telnet localhost 5002
mkfile 30m OSiso.iso
ldm add-vdsdev options=ro /export/home/OSiso.iso newiso@primary-vds0
lldm stop appzone
ldm add-vdisk VISO1 newiso@primary-vds0 testzone
ldm add-vdisk -f VISO1 iso@primary-vds0 testzone
No comments:
Post a Comment