Quote:
Originally Posted by
mrmurdock
so migratepv -l hd2 hdisk1 hdisk6 (yes I found a spare unused disk allocated, but I can delete the lv and vg on it.
).
Yes, either that or
migratelp or - as i said before - simply remove the LVs copy to empty the disk, then remove the disk, add a new disk to the VG and then remirror.
Quote:
Originally Posted by
mrmurdock
My only concern would be since it cannot read the bad block to finish the mirror, is migratepv smart enough to move the stuck lv?
Actually the
migratelp process
can read the LP in question - just not its bad copy. And again, you do not need to have this copy at all! Just remove it, then recreate it again on the new disk.
Furthermore,
lspv does not show the "online" disks, it just shows the relation of disks and VGs. Do a
lsdev -Cc disk to see all disk devices and their status. "Available" is good, "Defined" means missing. It means the system has some device definition that once described an existing device, but this device is not there at the moment. If this does not reveal anything do a
rmdev on all hdisk devices, then run
cfgmgr to re-add the disk devices again. This is, as bad as it may sound, actually non-disruptive.
I think that, as the disk is alread in the status "missing" in the VGs display, you may have to rely on the procedure to get a missing disk out of the system. Again, this involves some
odmget and
odmdelete gymnastics which are non-trivial and possibly disruptive too. Do that only when the system is down AND after having made absolutely sure you have a working backup!
I hope this helps.
bakunin
/PS: you may also want to read
this old thread for further information