9. Add the new partition to vg00.
NOTE: Using "s2"
# pvcreate -fB /dev/rdsk/c2t6d0s2
Physical volume "/dev/rdsk/c2t6d0s2" has been successfully created.
# vgextend vg00 /dev/dsk/c2t6d0s2
Volume group "vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
10. Mirror all logical volumes in vg00.
NOTE: Using "s2"
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t6d0s2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol8" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
11. Add the new disk to /stand/bootconf.
NOTE: Using "s2"
# vi /stand/bootconf
l /dev/dsk/c0t6d0s2
l /dev/dsk/c2t6d0s2
12. Verify that the new disk was added to vg00, and the lv's are in sync.
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4356
VGDA 4
PE Size (Mbytes) 32
Total PE 8692
Alloc PE 2330
Free PE 6362
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 56
Allocated PE 112
Used PV 2
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 992
Current LE 31
Allocated PE 62
Used PV 2
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 16
Allocated PE 32
Used PV 2
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 8
Used PV 2
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 9184
Current LE 287
Allocated PE 574
Used PV 2
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7776
Current LE 243
Allocated PE 486
Used PV 2
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 8704
Current LE 272
Allocated PE 544
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0s2
PV Status available
Total PE 4346
Free PE 3181
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c2t6d0s2
PV Status available
Total PE 4346
Free PE 3181
Autoswitch On
Proactive Polling On
13. Verify that the BDRA was updated properly. Take note of the HW paths for
step 14.
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0s2 (0/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0s2 (0/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0s2
/dev/dsk/c2t6d0s2
Root: lvol3 on: /dev/dsk/c0t6d0s2
/dev/dsk/c2t6d0s2
Swap: lvol2 on: /dev/dsk/c0t6d0s2
/dev/dsk/c2t6d0s2
Dump: lvol2 on: /dev/dsk/c0t6d0s2, 0
14. Add EFI primary and high availability boot path menu entries.
# setboot -p 0/0/0/2/0.6.0
# setboot -h 0/0/0/3/0.6.0
# setboot -b on
15. Verify that the primary and mirror boot paths are configured properly.
# setboot
Primary bootpath : 0/0/0/2/0.6.0
HA Alternate bootpath : 0/0/0/3/0.6.0
Alternate bootpath : 0/0/0/1/0
Autoboot is ON (enabled)
16. Test the new mirror by booting off of it.
# cd /
# shutdown -ry 0
SHUTDOWN PROGRAM
05/14/08 17:19:51 EAT
Broadcast Message from root (console) Wed May 14 17:19:51...SYSTEM BEING BROUGHT DOWN NOW ! ! !
# grep "Boot device" /var/adm/syslog/syslog.log
vmunix: Boot device's HP-UX HW path is: 0/0/0/2/0.6.0
17. Change the boot sequence in order to boot from mirror disk /dev/dsk/c2t6d0:
# setboot -p 0/0/0/3/0.6.0
# setboot -h 0/0/0/2/0.6.0
# setboot -b on
# setboot
Primary bootpath : 0/0/0/3/0.6.0
HA Alternate bootpath : 0/0/0/2/0.6.0
Alternate bootpath : 0/0/0/1/0
# cd /
# shutdown -ry 0
18. Verify which disk/kernel you booted from.
# grep "Boot device" /var/adm/syslog/syslog.log
vmunix: Boot device's HP-UX HW path is: 0/0/0/3/0.6.0
over