|
Home > Archive > Unix questions > February 2006 > Changing a faulty hard disk (HELP)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Changing a faulty hard disk (HELP)
|
|
| cooldevilz 2006-02-21, 2:49 am |
| Hi All,
I am trying to removed a mirrored PVs on AIX. The PVs belongs to the
datavg volume group. Steps I am considering is:
1. Removing the PVs from the volume group (via smit).
The problem I am facing here is I am not sure what "FORCE
deallocation of all partitions on this Physical Volume?" means. Can
someone please tell me.
2. Unconfigure the PVs
3. Switch the HD
4. Reconfigure using cfgmgr
5. Add the new PVs to the volume group.
Now, apart from the backup I have to perform before this exercise, is
there any thing critical that I miss?
Cheers,
A
| |
| Gerry S. 2006-02-26, 10:17 am |
| You need to unmirror the drive first...
The process I use:
1] unmirrorvg vgname hdisk1 (assuming hdisk1 is your bad disk and it is
part of the rootvg).
2] "reducevg rootvg hdisk1" to remove the disk from the volume group
3] "rmdev -dl hdisk1" to de-configure the drive
4] replace the bad drive (I can't address this process)
5] run cfgmgr if you have a 'hot swap' drive, the new drive should be
picked up as hdisk1
6] "extendvg rootvg hdisk1"
7] run the command "mirrorvg hdisk0 hdisk1" to re-mirror the vg
8] make sure your bootlist is set to hdisk0 and hdisk1 (bootlist -o -m
normal hdisk0 hdisk1)
9] bosboot -a to rebuild your boot image.
Hope this helps...
There is also some tools in 'diag' -- but I've always preferred to do
disk repalcement the hard way -- it lets me control what happens, and
intervene if there are any problems along the way.
-G
|
|
|
|
|