LDOM - Quick Reference Guide
LDOM - Quick Reference Guide
com)
Categories Command Syntax with Examples Descriptions
Bindings # ldm list-bindings [-e] [-p] [<ldom>...] List of resources that are bound to the Control Domain
Services # ldm list-services [-e] [-p] [<ldom>...] List the Virtual services currently configure in the Control Domain
# ldm list-constraints ([-x] | [-e] [-p]) [<ldom>...] List the constraints for the Guest Domain in Mechine readable format
Example : # ldm list-constraints -p <ldom1> To list the constraints for the Guest Domain in Mechine readable format
Constraints Example : # ldm list-constraints -x "ldom1" > /path_to_backup.xml Taking backup configuration which containing the constraints for guest in XML format
Example : # "ldm bind-domain -i /path_to_backup.xml" To restore the configuration for guest domain
# ldm list-domain [-e] [-l] [-o <format>] [-p] [<ldom>...] To List the number of domains
Example : # ldm list-domain
# ldm add-domain (-i <file> |[mac-addr=<num>] [hostid=<num>][failure-
To Create a frame work for a new guest domain
policy=<ignore|stop|reset|panic>][master=<master_ldom1,...,master_ldom4>] <ldom>...)
Example : # ldm add-domain <ldom1>
# ldm remove-domain (-a | <ldom>...) To Remove the Guest domain
Example : # ldm remove-domain <ldom1>
# ldm start-domain (-a | -i <file> | <ldom>...) To start the guest domain
Example : # ldm start-domain <ldom1>
Domain or dom # ldm stop-domain [-f] (-a | <ldom>...) To stop the guest domain
Example : # ldm stop-domain <ldom1>
# ldm bind-domain (-i <file> | <ldom>) To bind the guest domain
Example : # ldm bind-domain <ldom1>
# ldm unbind-domain <ldom> To unbind the guest domain
Example : # ldm unbind-domain ldom1
# ldm panic-domain <ldom> To panic the guest domain
# ldm migrate-domain [-f] [-n] [-p <password_file>] <source_ldom>
To migrate the guest domain to another control domain
[<user>@]<target_host>[:<target_ldom>]
Need to provide the Target server root passwd here, if we use "-n" option,t it will perform the
Example : # ldm migrate-domain ldom1 [email protected]
check for the migrations, but the source domain is not migrated
# ldm list-io [-l] [-p] To list the I/O devices
Example : # ldm list-io -l
# ldm add-io <bus/device> <ldom> To add the I/O devices
I/O Example : # ldm add-io pci@500 ldom1
# ldm remove-io <bus/device> <ldom> To Remove the I/O devices
Example : # ldm remove-io pci@500 ldom1
# ldm add-memory [--auto-adj] <number>[GMK] <ldom> To add the memory to the guest domain
Example : # ldm add-memory 2G ldom1
# ldm set-memory [--auto-adj] <number>[GMK] <ldom> To reconfigure the memory to the guest or primary domain
Memory or Example : # ldm set-memory 5G primary
mem Example : # ldm set-memory 2G ldom1
# ldm remove-memory [--auto-adj] <number>[GMK] <ldom> To decrease the amount of memory in a domain
Example : # ldm remove-memory 1G primary To decrease 1G memory from primary
Example : # ldm remove-memory 1024M ldom1 To decrease 1G memory from guest (used "M" which represent MB)
# ldm list-spconfig [-r [<autosave>]] To List and verify the configuration is ready to be used at the next reboot
Example : # ldm list-spconfig
To save current configuration to the service Processor, the saved configuration will be used
# ldm add-spconfig [-r <autosave>] <config_name>
Spconfig during the next reboot
Example : # ldm add-spconfig config_intial
# ldm remove-spconfig [-r] <config_name> To remove the configuration
Example : # ldm remove-spconfig config_intial
# ldm list-variable [<var_name>...] <ldom> To list the Variable settings of guest domain
Example : # ldm list-variable auto-boot\? Ldom1
Example : # ldm list-variable boot-device Ldom1
Variable or var # ldm add-variable <var_name>=<value>... <ldom To add the new variable setting to the guest domain
Example : # ldm add-variable boot-device Ldom1
# ldm set-variable <var_name>=<value>... <ldom> To set the "auto-boot" variable as false, this will leave the server at in OK prompt
Example : # ldm set-variable auto-boot\?=false Ldom1
# ldm add-vconscon port-range=<x>-<y> <vcc_name> <ldom> To add the Virtual console concentrator service to the control domain
vconscon or vcc Example : # ldm add-vconscon port-range=5000-5100 primary-vcc0 primary
(Virtual console # ldm set-vconscon port-range=<x>-<y> <vcc_name> To set or modify the Virtual console concentrator service to the control domain
concentrator Example : # ldm set-vconscon port-range=5000-5100 primary-vcc0
# ldm remove-vconscon [-f] <vcc_name> To remove the Virtual console service from domain
service) Example : # ldm remove-vconscon primary-vcc0
# ldm add-vcpu [-c|--core] <number> <ldom> To add CPU to the guest domain
Example : # ldm add-vpcu 8 ldom1
# ldm set-vcpu [-c|--core] <number> <ldom> To reconfigure the virtual CPU for any domain
vcpu Example : # ldm set-vpcu 10 primary
# ldm remove-vcpu [-f|--force] [-c|--core] <number> <ldom> To decrease the number of virtual CPU for any domain
Example : # ldm remove-vpcu 2 ldom1
# ldm add-vdisk [timeout=<seconds>] [id=<diskid>] <disk_name>
To assign the Virual disk to the guest domain
<volume_name>@<service_name> <ldom>
Example : # ldm add-vdisk vdisk0 vol0@primary-vds0 ldom1
vdisk Example : # ldm add-vdisk iso01 iso01@primary-vds0 ldom1
# ldm remove-vdisk [-f] <disk_name> <ldom> To remove the Virual disk on the guest domain
Example : # ldm remove-vdisk vdisk0 ldom1
# ldm add-vdiskserver <service_name> <ldom> To add the Virtual disk Server services
Example : # ldm add-vdiskserver primary-vds0 primary
vdiskserver or
Example : # ldm add-vds primary-vds0 primary
vds # ldm remove-vdiskserver [-f] <service_name> To remove the Virtual disk Server services
Example : # ldm remove-vds primary-vds0