Operating System - HP-UX
1833315 Members
2946 Online
110051 Solutions
New Discussion

Replacing a failed boot disk in mirror

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

Replacing a failed boot disk in mirror

We have a mirror setup for boot disk hosting vg00 and one of the disk in the mirror is having problems. Some times it becomes unavailable and you have to pull it out and then plug it in and then it starts working. So we have decided to replace it. I need a proceedure to replace it. Can any one please send me the stepwise proceedure with commands to do this thing.

7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Replacing a failed boot disk in mirror

Steven E. Protter
Exalted Contributor
Solution

Re: Replacing a failed boot disk in mirror

Shalom,

If you catch it fast enough, you merely pull the bad disk and replace it.

The mirrors will then rebuild.

If the second disk is totally dead, you will have to re-mirror after doing the following steps.

vgreduce -f vg00
# follow post command instructions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ali Imran Abbas
Regular Advisor

Re: Replacing a failed boot disk in mirror

The bad disk is still working and showing its status as available in vgdisplay -v command.

Do I need to give some commands before taking the disk out or simply pulling it out will wrk well. After replacing the disk do I need to give some commands as vgcfgrestore?

Pls give me steps and commands to perform this operation.
john D_3
Frequent Advisor

Re: Replacing a failed boot disk in mirror

If it is a PA RISC server:

lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cxtxdx

vgreduce vg00 /dev/dsk/cxtxdx

Replace the disk and then do:

ioscan -fnC disk

pvcreate -B /dev/rdsk/cxtxdx

vgextend vg00 /dev/dsk/cxtxdx
mkboot -l /dev/rdsk/cxtxdx
mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx

lvlnboot â Rv vg00

vgdisplay -v vg00


john D_3
Frequent Advisor

Re: Replacing a failed boot disk in mirror

Correction
If it is a PA RISC server:

lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cxtxdx - remove all lovls

vgreduce vg00 /dev/dsk/cxtxdx

Replace the disk and then do:

ioscan -fnC disk

pvcreate -B /dev/rdsk/cxtxdx

vgextend vg00 /dev/dsk/cxtxdx
mkboot -l /dev/rdsk/cxtxdx
mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx - add all lvols

lvlnboot â  Rv vg00

vgdisplay -v vg00
Torsten.
Acclaimed Contributor

Re: Replacing a failed boot disk in mirror

It all depends ...

Is it a HP9000 or Integrity?
Is it based on FC, SCSI or SAS?


Run and post results:

# model
# ioscan -fn
# strings /etc/lvmtab
# vgdisplay -v vg00

What is the disk in question?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: Replacing a failed boot disk in mirror

Hi (again):

Haste makes waste. The document (link) I suggested that you read is worth reading *before* you begin. You haven't provided many details.

Regards!

...JRF...