Summary:-Volume manager disk replacement

From: Shalabh Sharma (OCS-AHD-AVS) (Shalabh@wipro.co.in)
Date: Sun Oct 15 2000 - 02:30:50 CDT


Hello ,

Thanks to all who responded specially , Ken , Paul and Luc Temmerman .
Original Problem is written at the end . Solutions suggested are attached
...

Bye
Shalabh
shalabh@wipro.co.in
____________________________________________________________________________
_______________________________

Ken Zachmann [ken@ella.slis.indiana.edu]

Hi Shalabh,

It is possbile to do subdisks moves through vmsa, but I prefer the command
line. The general command would be:

vxassist -g <diskgroup> move <volume_name> \!<spare_name> <new_disk_name>

e.g. if your setup were this:

volume: vol1
diskgroup: mydg
name of spare: mydgspare
name of new disk: mydg02

then this would move any subdisks belonging to vol1 from mydgspare to
mydg02:

vxassist -g mydg move vol1 \!mydgspare mydg02

you could then repeat this command for each volume that was
relocated. when you are done, they'll all be back on the new disk, leaving
your space the way it is.

what version of vm are you using? one of the 3.x versions comes with a
command to put stuff back the way it was (i believe).

ken

____________________________________________________________________________
_______________________________

Paul Hedgepeth [hedgepethp@yahoo.com]

since your volumes are redundant (ie: raid 0+1), this is an easy
task.

1) vxevac [-g <disk group>] <source diskname> <destination
diskname>
    ie: vxevac -g datadg spare01 disk02

2) with the vxva gui (vm 2.6 and below), you can "drag and drop"
the sub-disks from one disk to another. i would guess that the
vmsa gui (vm 2.6 and above) would also offer the same feature.

later,
paul

____________________________________________________________________________
_______________________________

Temmerman Luc [luc.temmerman@mcd.alcatel.be]
Hello,

you should be able to use the 'evacute disk' operation.

Don't have access right now to a system , but the command should be
there.

Regards,
Luc Temmerman
____________________________________________________________________________
_______________________________

Problem Description :-

> Recently one of the harddisk in a diskgroup failed . It had 3
> subdisks , put
> in 3 different plexes in 3 different volumes . All volumes are
> in RAID 0+ 1
> . We had on harddisk configured as spare and as soon as the
> disk failed ,
> spare harddisk automatically created 3 subdisks and they went
> into
> corresponding plexes and volumes which were occupied by faulty
> harddisk .
>
> Problem :- I ordered for a harddisk and replaced the faulty
> one ( vxdiskadm
> -- remove harddisk for replacement -- shutdown the system --
> Put good
> harddisk -- vxdiskadm -- replace failed harddisk ) . Now I see
> new harddisk
> with "good" status in vxva . But problem is the data of 3
> volumes is still
> placed in spare harddisk . The new harddisk ( replaced ) does
> not show any
> subdisk ( except for private region with previous details ) .
> How can I move
> the data from subdisks in spare harddisk back to the replaced
> harddisk
> without breaking the volume & restoring from backup media ? I
> know the size
> of each subdisk prior to failure . Finally , I should have :-
> 1. New disk with exactly same subdisk as in previous harddisk
> with all data
> on them ( inrespective plex/volume) .
> 2. Spare harddisk without any subdisk ( as previously )
> without any
> association to any plex / volume
>
> Thanks in advance,
> * Shalabh Sharma
> > Email:- shalabh@wipro.co.in

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:20 CDT