LDOM Guest Domain Cloning Using DD
LDOM Guest Domain Cloning Using DD
LDOM Guest Domain Cloning Using DD
Written by geekyS
Monday, 08 December 2008 17:38 - Last Updated Tuesday, 16 December 2008 12:23
www.geekyfacts.com
Following procedure explains the steps for faster deployment of LDOM guest domains by
copying root disk of a running machine,
#lofiadm -a guest.img
#mount /dev/lofi/1 /mnt
#cd /mnt/etc
#rm defaultdomain
1/3
LDOM: Faster deployment of Guest domains using dd
Written by geekyS
Monday, 08 December 2008 17:38 - Last Updated Tuesday, 16 December 2008 12:23
#rm hostname.*
4)Modify vfstab
- remove any mounts relevant to the base host from which image was created
- replace base host root mount as below
replace
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
with
/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 / ufs 1 no -
#rm /mnt/dev/dsk/*
#rm /mnt/dev/rdsk/*
6) Create device links for disk0 which will represent guest image file(/tmp/guest.img)
#cd /mnt/dev/dsk
#ln -s ../../devices/virtual-devices@100/channel-devices@200/disk@0:a c0d0s0
#cd /mnt/dev/rdsk
2/3
LDOM: Faster deployment of Guest domains using dd
Written by geekyS
Monday, 08 December 2008 17:38 - Last Updated Tuesday, 16 December 2008 12:23
#touch /mnt/reconfigure
# cd / ; umount /mnt
# lofiadm -d /dev/lofi/1
3/3