Operating System - HP-UX
1825810 Members
2924 Online
109688 Solutions
New Discussion

To replace failed root disk

 
SOLVED
Go to solution
mparasur
Advisor

To replace failed root disk

Hi,

I am facing problem for replacing a failed root disk. The disk status showing as unavailable with vgdisplay command and I could not able to dettach the disk from the vg VG00. So I have replaced the failed root disk without dettaching the disk.

When I try to add the new disk to the VG I am getting 3 Total number of PVs but Active PVs 2. I have followed the following steps.

1. Replaced the disk
2. moved the /etc/lvmtab
3. pvcreate -B /dev/rdsk/c3t5d0
4. mkboot -l /dev/dsk/c3t5d0
5. mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/c3t5d0
6. vgextend vg00 /dev/dsk/c3t5d0( I hope I made a mistake here. Instead I would have tried vgcfgrestore).
7.vgscan

Now still the disk status showing as unavailable. I tried to reduce the new disk. But failed. I tried vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t5d0 and I got the error message "vgcfgrestore: Mismatch between the backup file and the running kernel:
Kernel indicates 3 disks for "/dev/vg00"; /etc/lvmconf/vg00.conf indicates 2 disks.
Cannot proceed with the restoration. Deactivate the Volume Group and try again.".

Can anyone help to resolve the issue. I can't reboot the server now. Any good suggestions?

Thanks
Mani


6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: To replace failed root disk

Fabio Ettore
Honored Contributor
Solution

Re: To replace failed root disk

Hi,

try

vgreduce -f vg00

which does reduce ghost disk, then again vgcfgrestore.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
mparasur
Advisor

Re: To replace failed root disk

Hi,

My HP-UX version is 11.11

Thanks,
Mani
mparasur
Advisor

Re: To replace failed root disk

Hi,

vgreduce -f vg00 did not solved the problem.

Can I execute vgcfgrestore -R -n /dev/vg00 /dev/rdsk/c3t5d0.

Thanks,
Mani

Fabio Ettore
Honored Contributor

Re: To replace failed root disk

Hi,

it's on own risk, I understand you read that option from man vgcfgrestore.

Though if you want a further opinion please post

vgdisplay -v vg00

strings /etc/lvmtab

Best regards,
Fabio
WISH? IMPROVEMENT!
mparasur
Advisor

Re: To replace failed root disk

Hi,

The problem has been resolved. I did lvreduce and then vgreduce -f vg00. Then moved the lvmtab and created new one by vgscan. Still one one more disk exist.

Again I ran vgreduce -f vg00 and created the PV and followed the normal procedure.


Thanks All for your valuable support.

Cheers,
Mani