LDOMs (OVM For SPARC) Command Line Reference (Cheat Sheet)
LDOMs (OVM For SPARC) Command Line Reference (Cheat Sheet)
Command
# ldm add-vcc port-range=5000-5100 primary-vcc0
primary
# ldm add-vsw net-dev=net0 primary-vsw0 primary
#ldm add-vds primary-vds0 primary
# zfs create -V 5G rpool/ldom01_disk01
# ldm add-vdsdev
/dev/zvol/dsk/rpool/ldom01_disk01
ldom01_disk01@primary-vds0
Command
# ldm remove-vcc primary-vcc0
# ldm remove-vsw primary-vsw0
# ldm remove-vds primary-vds0
# ldm remove-vdsdev dvd-iso@primaryvds0
Command
#ldm list-bindings ldom01
# virtinfo -a
# ldm list-io
# ldm list-domain -o domain ldom01
# ldm list
# ldm list-bindings [ldom_name]
# ldm list-spconfig
# ldm list-permits
# svccfg -s ldmd
listprop ldmd/autoreplacement_policy_cpu
stop/start/break/unbind/bind
Purpose
Command
# telnet localhost 5000
issue send break
telnet> send brk
stop Guest Domain
# ldm stop ldom01
start Guest Domain
# ldm start ldom01
unbind Guest Domain # ldm unbind ldom01
bind Guest Domain
# ldm bind ldom01
Add/Create/Assign
Purpose
Add Guest Domain
assign cpu threads to Guest
Domain
assign vcpu units of cores
assign memory to Guest Domain
add vnet device to Guest
Domain
assign disk resource to Guest
Domain
Command
# ldm add-domain ldom01
# ldm add-vcpu 6 ldom01
# ldm add-core, ldm set-core [number] [ldom]
# ldm add-memory 4G ldom01
# ldm add-vnet vnet1 primary-vsw0 ldom01
# ldm add-vdisk ldom01-disk01 ldom01-disk01@primaryvds0 ldom01
Remove/Delete
Purpose
Command
Remove a Guest Domain
# ldm remove-domain ldom01
Remove disk resource from Guest Domain
# ldm remove-vdisk vdisk01 ldom01
Remove virtual network device from a Guest Domain # ldm remove-vnet vnet1 ldom01
Remove CPU threads from a Guest Domain
# ldm remove-vcpu 8 ldom01
Remove virtual cpu units in cores from a Guest Domain # ldm remove-core 2 ldom01
Remove memory from a Guest Domain
# ldm remove-memory 8G ldom01
Save LDOM Config
Purpose
save ldom configuration to the SP
backup of existing configuration from
the control domain
Command
# ldm add-spconfig newconfig
# ldm list-constraints -x > /var/tmp/guestdomain-name.xml
# ldm list-bindings > /var/tmp/full-bindings
# ldm ls -l > /var/tmp/guest-domain-list.xml
Miscellaneous Commands
Purpose
identify physical resources bindings
login to the console of a Guest Domain
Enable/Disable console loggging function for a
Guest Domain
Display current console settings of a
Guest Domain
list all LDOM config from SP with timestamp
list current LDOM config from SP
Generate crashdump from SP
Crash a guest domain from the control domain
to check failed cpu or memory components from
Control Domain
Command
# ldm list-constraints
# telnet localhost 5001
# ldm set-vcons log=[off|on] [dom-name]
# ldm list -o console ldom01
-> show /HOST/domain/configs
date_created -t
-> show /HOST/bootmode config -t
-> set /HOST/send_break_action=dumpcore
# ldm panic-domain ldom01
# ldm list-domain -l -S