• System should be at run level 1
• Use the command /etc/vx/bin/vxres_lvmroot
o –b sets primary and/or alternate boot paths
o –v verbose
• Example:
# /etc/vx/bin/vxres_lvmroot –v –b c3t5d0
o creates a LVM copy of the current VxVM boot disk to c3t5d0
o sets the primary boot path to c3t5d0
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/rootvol
1048576 415148 593863 41% /
/dev/vx/dsk/rootdg/standvol
2064384 325568 1630227 17% /stand
/dev/vx/dsk/rootdg/varvol
8388608 702724 7205630 9% /var
/dev/vx/dsk/rootdg/usrvol
8388608 2667083 5364031 33% /usr
/dev/vx/dsk/rootdg/tmpvol
524288 17378 475360 4% /tmp
/dev/vx/dsk/rootdg/optvol
8388608 4377947 3760007 54% /opt
/dev/vx/dsk/rootdg/homevol
131072 1662 121326 1% /home
DevFS 3 3 0 100% /dev/deviceFileSystem
# setboot
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk71)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk70)
Autoboot is ON (enabled)
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:hpdisk rootdisk02 rootdg online
c2t1d0s2 auto:LVM - - LVM
c3t2d0s2 auto:hpdisk rootdisk01 rootdg online
c5t0d1 auto:cdsdisk rootdg02 rootdg online
c5t0d2 auto:cdsdisk rootdg03 rootdg online
c5t0d3 auto:cdsdisk rootdg04 rootdg online
c5t0d4 auto:cdsdisk rootdg05 rootdg online
c5t0d5 auto:cdsdisk rootdg06 rootdg online
c5t0d6 auto:cdsdisk rootdg07 rootdg online
c5t0d7 auto:cdsdisk rootdg08 rootdg online
c5t1d0 auto:cdsdisk rootdg01 rootdg online
# /etc/vx/bin/vxres_lvmroot -v -b c2t1d0s2
vxres_lvmroot 14:37: Gathering information on the current VxVM root config
vxres_lvmroot 14:38: Checking specified disk(s) for usability
vxres_lvmroot 14:38: Preparing disk c2t1d0s2 as an LVM root disk
vxres_lvmroot 14:38: Creating LVM Volume Group vg00
vxres_lvmroot 14:38: Copying /dev/vx/dsk/rootdg/standvol (hfs) to /dev/vg00/lvol1
vxres_lvmroot 14:38: Cloning /dev/vx/dsk/rootdg/swapvol (swap) to /dev/vg00/lvol2
vxres_lvmroot 14:38: Copying /dev/vx/dsk/rootdg/rootvol (vxfs) to /dev/vg00/lvol3
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/homevol (vxfs) to /dev/vg00/lvol4
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/tmpvol (vxfs) to /dev/vg00/lvol5
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/usrvol (vxfs) to /dev/vg00/lvol6
vxres_lvmroot 15:00: Copying /dev/vx/dsk/rootdg/optvol (vxfs) to /dev/vg00/lvol7
vxres_lvmroot 15:16: Copying /dev/vx/dsk/rootdg/varvol (vxfs) to /dev/vg00/lvol8
vxres_lvmroot 15:20: Setting up disk c2t6d0 as an LVM boot disk
vxres_lvmroot 15:21: Installing fstab and fixing dev nodes on ne
root FS
vxres_lvmroot 15:21: Current setboot values:
vxres_lvmroot 15:21: Primary: 0/0/2/0.6.0
vxres_lvmroot 15:21: Alternate: 0/4/0/0.12.0
vxres_lvmroot 15:21: Making disk c2t6d0 (0/0/2/1.6.0) the primary boot disk
vxres_lvmroot 15:21: Making disk c1t6d0 (0/0/2/0.6.0) the alternate boot disk
vxres_lvmroot 15:21: Disk c2t6d0 is now an LVM (VG vg00) rootable boot disk
# setboot
Primary bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk69)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk71)
• Use the command /etc/vx/bin/vxres_lvmroot
o –b sets primary and/or alternate boot paths
o –v verbose
• Example:
# /etc/vx/bin/vxres_lvmroot –v –b c3t5d0
o creates a LVM copy of the current VxVM boot disk to c3t5d0
o sets the primary boot path to c3t5d0
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/rootvol
1048576 415148 593863 41% /
/dev/vx/dsk/rootdg/standvol
2064384 325568 1630227 17% /stand
/dev/vx/dsk/rootdg/varvol
8388608 702724 7205630 9% /var
/dev/vx/dsk/rootdg/usrvol
8388608 2667083 5364031 33% /usr
/dev/vx/dsk/rootdg/tmpvol
524288 17378 475360 4% /tmp
/dev/vx/dsk/rootdg/optvol
8388608 4377947 3760007 54% /opt
/dev/vx/dsk/rootdg/homevol
131072 1662 121326 1% /home
DevFS 3 3 0 100% /dev/deviceFileSystem
# setboot
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk71)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk70)
Autoboot is ON (enabled)
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:hpdisk rootdisk02 rootdg online
c2t1d0s2 auto:LVM - - LVM
c3t2d0s2 auto:hpdisk rootdisk01 rootdg online
c5t0d1 auto:cdsdisk rootdg02 rootdg online
c5t0d2 auto:cdsdisk rootdg03 rootdg online
c5t0d3 auto:cdsdisk rootdg04 rootdg online
c5t0d4 auto:cdsdisk rootdg05 rootdg online
c5t0d5 auto:cdsdisk rootdg06 rootdg online
c5t0d6 auto:cdsdisk rootdg07 rootdg online
c5t0d7 auto:cdsdisk rootdg08 rootdg online
c5t1d0 auto:cdsdisk rootdg01 rootdg online
# /etc/vx/bin/vxres_lvmroot -v -b c2t1d0s2
vxres_lvmroot 14:37: Gathering information on the current VxVM root config
vxres_lvmroot 14:38: Checking specified disk(s) for usability
vxres_lvmroot 14:38: Preparing disk c2t1d0s2 as an LVM root disk
vxres_lvmroot 14:38: Creating LVM Volume Group vg00
vxres_lvmroot 14:38: Copying /dev/vx/dsk/rootdg/standvol (hfs) to /dev/vg00/lvol1
vxres_lvmroot 14:38: Cloning /dev/vx/dsk/rootdg/swapvol (swap) to /dev/vg00/lvol2
vxres_lvmroot 14:38: Copying /dev/vx/dsk/rootdg/rootvol (vxfs) to /dev/vg00/lvol3
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/homevol (vxfs) to /dev/vg00/lvol4
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/tmpvol (vxfs) to /dev/vg00/lvol5
vxres_lvmroot 14:39: Copying /dev/vx/dsk/rootdg/usrvol (vxfs) to /dev/vg00/lvol6
vxres_lvmroot 15:00: Copying /dev/vx/dsk/rootdg/optvol (vxfs) to /dev/vg00/lvol7
vxres_lvmroot 15:16: Copying /dev/vx/dsk/rootdg/varvol (vxfs) to /dev/vg00/lvol8
vxres_lvmroot 15:20: Setting up disk c2t6d0 as an LVM boot disk
vxres_lvmroot 15:21: Installing fstab and fixing dev nodes on ne
root FS
vxres_lvmroot 15:21: Current setboot values:
vxres_lvmroot 15:21: Primary: 0/0/2/0.6.0
vxres_lvmroot 15:21: Alternate: 0/4/0/0.12.0
vxres_lvmroot 15:21: Making disk c2t6d0 (0/0/2/1.6.0) the primary boot disk
vxres_lvmroot 15:21: Making disk c1t6d0 (0/0/2/0.6.0) the alternate boot disk
vxres_lvmroot 15:21: Disk c2t6d0 is now an LVM (VG vg00) rootable boot disk
# setboot
Primary bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk69)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk71)
No comments:
Post a Comment