1832532 Members
8269 Online
110043 Solutions
New Discussion

Re: Disc mirror

 
SOLVED
Go to solution
NAJMUS
Advisor

Disc mirror

Hi,
I just configure successfully the mirroring of my disc system.
my question is if the primary disc fails, what are the stages that i must follow to change the disc
Thks.






4 REPLIES 4
Andy Monks
Honored Contributor

Re: Disc mirror

All depends on what type of disc. If it's hotswapable, you use one method and if it's not you use another.
James R. Ferguson
Acclaimed Contributor

Re: Disc mirror

Hi:

An excellect guide to replacing mirrored and non-mirrored disks after a failure is document #KBAN00000347.

...JRF...
CHRIS_ANORUO
Honored Contributor
Solution

Re: Disc mirror

Use the following steps:
1) lvreduce -m 0 /dev/vgxx/lvolX /dev/dsk/c#t#d#
(This will remove the specified PV from the mirror)
2) lvcreate -L ### /dev/vgxx (Create a logical volume size ### to volume group xx with the next available logical volume number)
3) newfs -F vxfs /dev/vgxx/lvolX replace the drive
4) vgcfgrestore (New disk)
5) vgchange -a y (vgxx) [vg the disk is in]
6)vgsync (vgxx)
7) mount /dev/vgxx/lvolX /mountpoint
8) add entry to /etc/fstab
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Patrick Wallek
Honored Contributor

Re: Disc mirror

The steps I follow to replace a hot swappable mirrored disk:

1) Call HP to get new disk
2) pull bad disk
3) put in new disk
4) vgcfgrestore -n /dev/vg## /dev/rdsk/c#t#d#
5) vgchange -a y /dev/vg##
6) vgsync vg##

I personally do not see a reason to reduce the mirror when replacing a disk. That just makes for a lot more work. The above steps have worked for me quite a few times.