Operating System - HP-UX
1826451 Members
3884 Online
109692 Solutions
New Discussion

add new disk and change disk on vg00 or vg01 need help please

 
kate32
Frequent Advisor

add new disk and change disk on vg00 or vg01 need help please

Hello

If I want to change the disk on vg00 (system mirror) without outage but with new disks bigger size is it possible ?

I thought if we following these steps I don't know if it will work onhp-ux (11.00 / 9000/800)

1- Check the boot definition
# lvnlboot –v
# setboot

2- unmirror the volume group vg00
There is no command on hp-ux ? (on aix it is unmirrorvg vgname hdiskname …)
# lvreduce –m 0 –A n /dev/vgname/lvname pvname

Do we have to put –m 0 or -m 1? I don’t understand this if I have 2 disk on vg00 and mirrored.

3- extend vg00 with the new disks (bigger size 36GB actual size of the current disks 8GB)
(First create the new disks: # pvcreate /dev/rdsk/cntmd0 etc…)
# vgextend /dev/vg00 /dev/dsk/cntmd0
# vgextend /dev/vg00 /dev/dsk/cn’tm’d0

4- copy disk to disk the data
Let say vg00 have the 2 disks: cxtxd0 and cytzd0 and 2 new disks cntmd0 and cn’dm’d0
Do we have to do like this below?
# pvmove /dev/dsk/cxtxd0 /dev/dsk/cntmd0
# pvmove /dev/dsk/cytzd0 /dev/dsk/cn’tm’d0

5- reduce the vg of the old disks
# vgreduce vg00 /dev/dsk/cxtxd0
# vgreduce vg00 /dev/dsk/cxtxd0

6- mirror the volume group vg00
No command to mirror a volume group? On AIX we use the command mirrorvg vgname
Have to do something like this on HP-UX ?
for LV in /dev/vg00/lv*
do
lvextend -m 1 $LV
done


7- Rebuild the boot disk image
On AIX we do this:
# bosboot -ad /dev/hdisk0
the check the bootlit:
# bootlist –m normal –o

But don't know how to do it on hp-ux … if someone can help me


8 - Make a system backup (make_tape_recovery)

Did I miss a step?

Thanks in advance

Cheers
Kate