1834445 Members
2436 Online
110067 Solutions
New Discussion

Boot Disk Mirror Failure

 
Senthil Kumar V
Occasional Advisor

Boot Disk Mirror Failure

Hi,

I need clarification on boot disk (with mirror) replacement.

If one of the boot disk fails, should I reduce all LV on the failed disk and also reduce the PV from root VG before I reboot the system for physically replacing disk.

Assume I will be using vgcfgrestore, vgchange and vgsync commands to re-establish the mirror.

Pls revert immediately.

with regards,

Senthil
11 REPLIES 11
Robert-Jan Goossens_1
Honored Contributor

Re: Boot Disk Mirror Failure

Hi Sethil,

Check this doc.

http://www.unixadm.net/howto/bad_disk.html

Regards,
Robert-Jan
Vineesh
New Member

Re: Boot Disk Mirror Failure

hi,

No,there is no need of reducing the lv's and vg's from that failed pv.
pls try the following steps,

shutdown the server and replace the failed harddisk.Boot through alternative path.

#vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtYdZ
#vgchange -a y /dev/vgXX
#mkboot /dev/rdsk/cXtYdZ
#mkboot -a "hpux(;0)/stand/vmunix" /dev/rdsk/cXtYdZ
#lvlnboot -R
#vgsync /dev/vg00

regds,
Geoff Wild
Honored Contributor

Re: Boot Disk Mirror Failure

That depends...

1) If the disk is completely "dead", such as if you run ioscan and status is "no_hw" then you can hot swap the disk online.

2) However in circumstances where the disk has not fully failed please do one of the following to avoid data corruption :

a) reduce mirror before replacing the disk
b) deactivate VG before replacing the disk
c) shutdown system to replace the disk


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
B. Hulst
Trusted Contributor

Re: Boot Disk Mirror Failure

Hi,

With systems that have hotswappable disks you don't halt the server and replace the corrupt bootdisk mirror.

The trick was just to have the mirror so you don't need to reboot!

I normally do this:

#vgcfgrestore -v /dev/vg00 (you must have of course a copy made with vgcfgbackup ever...)
#mkboot -l (list what do we have?)
#mkboot -a "hpux(;0)/stand/vmunix" (put bootfile)
#vgchange -a y /dev/vg00 (make available)
#vgsync /dev/vg00
#lvlnboot -R (resync all boot info)

And check at startup if dump,swap are okay after a reboot with command 'dmesg'.

Basically you don't shutdown any application or server for this replacement operation. :-)

Regards,
Bob
bhavin asokan
Honored Contributor

Re: Boot Disk Mirror Failure

hi,

see the attached document.it gives somany ways to replace a faulty disk depends up on it is mirrored ,hotswappable,etc.


regds,
bhavin asokan
Honored Contributor

Re: Boot Disk Mirror Failure

hi ,
sorry forgot to attach file


regds,
Senthil Kumar V
Occasional Advisor

Re: Boot Disk Mirror Failure

Dear All,

I know the ways of replacing a failed root disk with mirror. But my question is very simple. Is it essential to reduce lv and pv from root VG before rebooting the server for physical replacement of disk?

regards,

Senthil
B. Hulst
Trusted Contributor

Re: Boot Disk Mirror Failure

Hi,

No need to reduce anything if you have hot swap disk.

Just take the hot swap disk out, run the command I gave earlier after you inserted the new empty disk.

However with non-hot-swap-so-screwed-in-disks you can reduce the lv from the failed disks.
then halt and replace the disk and remirror bootdisk once you reboot.

This way you can always boot, from the remaining disk.

Also if you want to boot with the broken mirror bootdisk you can boot also with hpux -lq

Regards,
Bob

Robert-Jan Goossens_1
Honored Contributor

Re: Boot Disk Mirror Failure

The latest models n-class l-class and newer all have hot-swap internal disks. For these systems you do NOT need to lvreduce before you can replace a failed disk.

replace a failed disk
--
Assume I will be using vgcfgrestore, vgchange and vgsync commands to re-establish the mirror
--
Yes correct.
Senthil Kumar V
Occasional Advisor

Re: Boot Disk Mirror Failure

Dear All,

Thanks for the clarification.

regards,

Senthil
Senthil Kumar V
Occasional Advisor

Re: Boot Disk Mirror Failure

Thanks to all for clarification.