Operating System - HP-UX
1844048 Members
2767 Online
110227 Solutions
New Discussion

Steps to replace mirrored disk - HPUX

 
SOLVED
Go to solution
Samshen
Frequent Advisor

Steps to replace mirrored disk - HPUX

Hi all,
I have a disk that contains 10 logical volumes witch are mirrored and two witch are not mirrored. There are many "error reading from the disk" events from this disk, logged in the system. I have decided to replace this disk, to prevent any possible data failure.
I would appreciate if somebody tell me the steps to perform to replace this disk, as it contains both mirrored and non-mirrored LV.

Thank you.
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Steps to replace mirrored disk - HPUX

If this is not a boot disk, then replacement is fairly easy:

1) put in the new disk
2) run a vgcfgrestore to restore the VG configuration
3) reactivate the VG (vgchange -a y vg??)
4) vgsync to resynchronize your mirrored LV's
5) Restore the data from your non-mirrored LVs.

If you replace a disk that has non-mirrored LV's then you WILL have data loss unless you run a backup before the replacement or move the data to a different disk.
Steven E. Protter
Exalted Contributor

Re: Steps to replace mirrored disk - HPUX

Shalom,

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

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
Torsten.
Acclaimed Contributor

Re: Steps to replace mirrored disk - HPUX

The procedure is very different for boot disks on Integrity or PA-RISC systems.

Make sure you read and understand the document provided by Steven.

In case this is a data volume and your patch level is current, make sure you are using the

pvchange -a n /dev/dsk/...

command to prevent any LVM access to the disk before you pull out the culprit.

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!   
perumal_2
Frequent Advisor

Re: Steps to replace mirrored disk - HPUX

Hi Samshen

Mirroed boot disk and Mirrored data disk procedure varies greatly only in the LIF preperation in he concerned disk.
The common procedure between these two are
1. reduce the lv from mirror using lvreduce -m 0 /dev/vgxx/lvxx /dev/dsk/cxtxdx (fault pv name)
2. reduce the vg from the pv
vgreduce /dev/vgxx /dev/dsk/cxtxdx (faulty pv name)
Before diong this take a vgcfg backup.
There is detaield document on this in docs.hp.com at
http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

TQ
Perumal
Samshen
Frequent Advisor

Re: Steps to replace mirrored disk - HPUX

Thank you all for your help.