Set Primary LDOM
# ldm set-vcpu 8 primary
# ldm set-memory 8G primary
# ldm start-reconf primary
# ldm add-config config_primary15072022
Create LDOM
# ldm add-domain DB01
# ldm add-vcpu 8 DB01
# ldm add-memory 16G DB01
Create Volume Disk
# zfs create -V 100gb ldom-pool/DB01-OS
Add Disk to LDOM
# ldm add-vdisk vdisk1 DB01-OS@primary-vds0 DB01
Create Alias
# ldm add-vdsdev /dev/zvol/dsk/ldom-pool/DB01-OS DB01-OS@primary-vds0
# ldm remove-vdsdev ldomweb_disk9 /dev/dsk/c13t5006016936E02582d0s2
Create Virtual Switch
# ldm add-vsw net-dev=aggr0 vid=98,99 primary-vsw-core primary
# ldm add-vsw net-dev=net0 primary-vsw-vlan112-A primary
# ldm add-vsw net-dev=net1 primary-vsw-vlan112-B primary
# ldm list-services primary
Add Virtual Network
# ldm add-vnet vid=98,99 vnet01 primary-vsw-core DB01
Add ISO to LDOM
# ldm add-vdsdev options=ro /source/sol-11_4-text-sparc.iso iso@primary-vds0
# ldm add-vdisk sol11_iso iso@primary-vds0 DB01
Check Config LDOM
# ldm list-bindings DB01
Power On LDOM
# ldm list
# ldm bind DB01
# ldm start DB01
#############################################################
Setting variables
# ldm set-var auto-boot?=true DB01
# ldm set-var boot-device=vdisk1 DB01
List the resource for all LDOMs and per LDOM
# ldm list -o cpu primary
# ldm list -o network,memory ldom01
List all server resources, bound and unbound.
# ldm list-devices -a
# ldm list-devices mem
Remove ISO / Disk from LDOM
# ldm rm-vdisk iso11 ldom-DB
0 Comments