Dynamic Root Disk: Quick Start & Best Practices

23
20. The old lvol2 must be removed from the device directory of the inactive system image.
However, because the device directory on the inactive system image reflects devices when the
image is booted, the file to be removed is part of the volume group vg00 on the inactive image:
# /usr/bin/rm -f /var/opt/drd/mnts/sysimage_001/dev/vg00/lvol2
21. Create a new character device and a new block device on the inactive system image so that the
new swap volume is recognized when it is mounted. The high order byte of the minor number
used should match the high order byte of the group file:
/var/opt/drd/mnts/sysimage_001/dev/vg00. The lower order bytes should match those
of the file: /de/drd00/swap. In this example, we find:
# /usr/bin/ll /var/opt/drd/mnts/sysimage_001/dev/vg00/group
crw-r----- 1 root sys 64 0x020000 Aug 7 19:26
/var/opt/drd/mnts/sysimage_001/dev/vg00/group
# ll /dev/drd00/swap
brw-r----- 1 root sys 64 0x02000a Aug 7 20:23 /dev/drd00/swap
So we use the commands:
# /usr/sbin/mknod /var/opt/drd/mnts/sysimage_001/dev/vg00/rswap c 64 0x02000a
# /usr/sbin/mknod /var/opt/drd/mnts/sysimage_001/dev/vg00/swap b 64 0x02000a
22. Re-create the file /var/opt/drd/mapfiles/drd00mapfile:
# /usr/sbin/vgexport -p -m /var/opt/drd/mapfiles/drd00mapfile /dev/drd00
(This is the only change to the booted system. It is made so that if the clone is un-mounted and re-
mounted before booting to it, the drd00 volume group will be properly imported. Even though the
vgexport fails because the volume group is active, the mapfile is still updated.)
23. Check to see that the boot and swap areas on the clone are as expected:
24. On 11iv2 Integrity:
# /usr/sbin/lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t15d0 (0/0/2/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t15d0
Root: lvol3 on: /dev/dsk/c3t15d0
Swap: lvol2 on: /dev/dsk/c3t15d0
Dump: lvol2 on: /dev/dsk/c3t15d0, 0
Boot Definitions for Volume Group /dev/drd00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
Swap: swap on: /dev/dsk/c1t15d0
Dump: swap on: /dev/dsk/c1t15d0, 0
25. On 11iv3:
# /usr/sbin/lvlnboot -v