ldm ls-devices -a ---> To List I/O device on control domain.
ldm ls-services ---> To list available Virtual services on control domain
ldm ls ---> To list ldom's
ldm ls-bindings primary
ldm set-mau 1 primary
ldm set-vcpu 8 primary ---> Adding vcpu to ldom
ldm set-mem 16g primary ---->Assigning memory to ldom
ldm add-config base --> Save sp-configuration file
ldm ls-config ---> to list sp-config
ldm -V ---> list the hypervisor version
virtinfo -a ---> To check control domain name on ldom
Ldom creation :-
================
ldm add-domain ldom1
ldm ls-domain
ldm add-memory 4g ldom1
ldm add-cpu 8 ldom1
ldm add-vnet vent0 primary-vsw0 ldom1
ldm ls-bindings ldom1
ldm add-vdsdev /dev/dsk/c1t1d0s2 ldom1-OS@primary-vds0
ldm ad-vdsik vdisk1 ldom1-OS@primary-vds0 ldom1
ldm add-vdsik cdrom iso1@primary-vds0 ldom1
ldm ls-services
ldm ls-services vds0
ldm bind-domain ldom1
ldm set-variable auto-boot\?=false ldom1
ldm start ldom1
telnet 0 5002
Adding zfs data set to LDOM's:
==============================
zfs create -V 25G pool1/ldom1
ldm add-vdsdev /dev/zvol/dsk/pool1/ldom1 ldom1-app@primary-vdso
ldm add-vdisk vdisk2 ldom1-app@primary-vdso ldom1
Adding IsO to control domain:-
=============================
ls /export/home/sol1-10-u10-ga2-sparc-dvd.iso
ldm add-vdsdev options=ro /export/home/sol1-10-u10-ga2-sparc-dvd.iso iso2@primary-vds0
Removing service and domains:-
=============================
ldm stop-domain ldom1
ldm unbind-domain ldom1
ldm remove-domain ldom1
ldm remove-vdisk vdisk1 ldom1
ldm remove-vdisk vdisk ldom1
ldm ls-services
ldm remove-vdsdev ldom1-os@primary-vdso
ldm remove-vdsdev ldom1-app@primary-vdso
LDOM configuration Backup and Restore:-
======================================
ldm ls-config
ldm ls-constraints -x >config .xml
ldm ls-contraints -x ldom1 > ldom1.xml
ldm ls-config
ldm rm-config baseconfig
powercycle
=====================================================================
Once the system has restored to the factory default,then you can restore the system backup using the XML files which we have created.
Login to the control domain and restore it.
=====================================================================
ldm init-system -i config.xml
ldm add-config baseconfig2
#ldm ls-config
factory-default
baseconfig
baseconfig2
ldm init-system -i ldom1.xml -----> only particular ldom restore
ldom add-config baseconfig3
ldm ls-services ---> To list available Virtual services on control domain
ldm ls ---> To list ldom's
ldm ls-bindings primary
ldm set-mau 1 primary
ldm set-vcpu 8 primary ---> Adding vcpu to ldom
ldm set-mem 16g primary ---->Assigning memory to ldom
ldm add-config base --> Save sp-configuration file
ldm ls-config ---> to list sp-config
ldm -V ---> list the hypervisor version
virtinfo -a ---> To check control domain name on ldom
Ldom creation :-
================
ldm add-domain ldom1
ldm ls-domain
ldm add-memory 4g ldom1
ldm add-cpu 8 ldom1
ldm add-vnet vent0 primary-vsw0 ldom1
ldm ls-bindings ldom1
ldm add-vdsdev /dev/dsk/c1t1d0s2 ldom1-OS@primary-vds0
ldm ad-vdsik vdisk1 ldom1-OS@primary-vds0 ldom1
ldm add-vdsik cdrom iso1@primary-vds0 ldom1
ldm ls-services
ldm ls-services vds0
ldm bind-domain ldom1
ldm set-variable auto-boot\?=false ldom1
ldm start ldom1
telnet 0 5002
Adding zfs data set to LDOM's:
==============================
zfs create -V 25G pool1/ldom1
ldm add-vdsdev /dev/zvol/dsk/pool1/ldom1 ldom1-app@primary-vdso
ldm add-vdisk vdisk2 ldom1-app@primary-vdso ldom1
Adding IsO to control domain:-
=============================
ls /export/home/sol1-10-u10-ga2-sparc-dvd.iso
ldm add-vdsdev options=ro /export/home/sol1-10-u10-ga2-sparc-dvd.iso iso2@primary-vds0
Removing service and domains:-
=============================
ldm stop-domain ldom1
ldm unbind-domain ldom1
ldm remove-domain ldom1
ldm remove-vdisk vdisk1 ldom1
ldm remove-vdisk vdisk ldom1
ldm ls-services
ldm remove-vdsdev ldom1-os@primary-vdso
ldm remove-vdsdev ldom1-app@primary-vdso
LDOM configuration Backup and Restore:-
======================================
ldm ls-config
ldm ls-constraints -x >config .xml
ldm ls-contraints -x ldom1 > ldom1.xml
ldm ls-config
ldm rm-config baseconfig
powercycle
=====================================================================
Once the system has restored to the factory default,then you can restore the system backup using the XML files which we have created.
Login to the control domain and restore it.
=====================================================================
ldm init-system -i config.xml
ldm add-config baseconfig2
#ldm ls-config
factory-default
baseconfig
baseconfig2
ldm init-system -i ldom1.xml -----> only particular ldom restore
ldom add-config baseconfig3
No comments:
Post a Comment