View Single Post

   
  #4 (permalink)  
Old 01-05-2008, 06:16 AM
Menno
 
Posts: n/a
Default Re: Steps for replacing SSA mirrored disk and how to minimise the work in changing the file systems

"Jeffrey Ross" <jeffrey.rossATairways.co.nz@no.spam> wrote in message news:<419d2482$1@news.iconz.co.nz>...
> Hi.
> We have 5 non-RAID disks in one SSA enclosure mirrored to 5 disks in another
> enclosure. Yesterday I relaced a faulty 36GB disk, pdisk7/hdisk9 containing
> logical volumes xraplv and tarclv. The steps (for those who are interested
> because it's probably quite a useful procedure) were as follows:
>
> q Remove hdisk9 from the mirror


AIX from (I believe) 5.1 has a very handy tool called replacepv. It
will work as long as you have a slot free in your SSA cabinet. Simply
add the new disk, run cfgmgr to add it, find out which hdisk it has
become and execute:

replacepv hdisk9 hdisk20

You will end up with hdisk20 taking the place of hdisk9, which you can
then rmdev and remove. One thing: you can replacepv to a disk the same
size or larger, but not smaller, even if the data on the old disk will
normally fit. Also, you end up with an hdisk20 where an hdisk9 used to
be. AIX doesn't care, but it looks strange. It even works if the old
disk is dead and (maybe) even removed from the system. Mirror data
will be used.

No more annoying rebuilds of the mirrors...

Cheers,
Menno
Reply With Quote