Sei sulla pagina 1di 3

LDOMs (OVM for SPARC) Command line

reference [cheat sheet]


Display Default LDOM services
Purpose
Command
Check ldom manager (ldmd)
# svcs ldmd
Check vntsd is running
# svcs vntsd
Check Default Services are running
# ldm list-services primary
Check ldm software
# ldm -V
check ldoms manager package in Solaris 11 # pkg info ldomsmanager
Creating Default LDOM services
Purpose
add virtual console concentrator (vcc)
add virtual network switch (vsw)
add virtual disk server (vds)
add virtual storage device to virtual
disk service (Add zfs filesystem to
existing Guest domain)

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

Removing Default LDOM services


Purpose
remove virtual console concentrator (vcc)
remove virtual network switch (vsw)
remove virtual disk server (vds)
remove virtual storage device to virtual disk
service
Start Default Services
Purpose
Command
start ldom manager # svcadm [enable|restart] ldmd
start vntsd
# svcadm [enable|restrat] vntsd

Command
# ldm remove-vcc primary-vcc0
# ldm remove-vsw primary-vsw0
# ldm remove-vds primary-vds0
# ldm remove-vdsdev dvd-iso@primaryvds0

Basic Guest LDOM Administration


Purpose
list resources binded to a Guest Domain
how to identify if the current domain role ?
[Control,Guest,Service or Root]
how to check status of I/O device
how to check logical domain (ldom) status
list the status of all the guest domains on the
system
how to manually list the LDOM config on a
system
list current LDOM configuration in Solaris
Check CPU activation
Check Autoreplacement policy for CPU

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

Potrebbero piacerti anche