Quote:
Originally Posted by waqaralam
Dear friend
Thanks for your reply. I'll try do as you describe.
so i just only add a new disk and sync it
Regards;
Waqar Alam
No, if it is a root disk you must do a series of commands as well.
You probably already figured it out, but i will post some instructions. First of all, in many cases the disk, if it is truly dead can be pulled and replaced hot-swappable.
Run diskinfo and pvdisplay on the disk device. Diskinfo should give you an error if the disk is dead. IF however, the disk is partially alive then I would suggest shutdown and come up to single user mode and do the same steps.
Some folks recommend reducing the mirror, but that is overkill imho...if you have an older box, K-class or older, it might be a more cautious approach.
pvcreate -B /dev/rdsk/c4t6d0 ## may not be needed.
vgextend /dev/vg00 /dev/dsk/c4t6d0
mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/dsk/c4t6d0:AUTO
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
vgcfgrestore -n /dev/vg00 /dev/rdsk/c4t6d0
vgchange -a y /dev/vg00
vgsync /dev/vg00