Recently needed to remove a failing drive from one of my servers. That drive was a physical volume (/dev/hdd) containing VG1, containing LV1. I installed a new drive (temporarily) on /dev/hdb created a new volume group VG2 containing a single logical volume LV1... formatted ext3 and transferred the data.
Now that the failing drive has been removed from the server I want to move the new drive from /dev/hdb to /dev/hdd (ie. move th drive to the secondary IDE controller). My problem is that the system doesn't see the volume group if I just move the drive. What do I have to do to tell the system to look for VG2 on /dev/hdd instead of /dev/hdb?
Thanks,
Mike <<<<<
Around about 20/10/05 20:18, Mike Cisar typed ...
... What do I have to do to tell the system to look for VG2 on /dev/hdd instead of /dev/hdb?
I don't know for sure, but I believe you should be looking at 'lvscan', although I thought this was automatic at boot-up (to allow you to relocate physical drives). Maybe 'lvscan --debug'?
Mike Cisar wrote:
Recently needed to remove a failing drive from one of my servers. That drive was a physical volume (/dev/hdd) containing VG1, containing LV1. I installed a new drive (temporarily) on /dev/hdb created a new volume group VG2 containing a single logical volume LV1... formatted ext3 and transferred the data.
Now that the failing drive has been removed from the server I want to move the new drive from /dev/hdb to /dev/hdd (ie. move th drive to the secondary IDE controller). My problem is that the system doesn't see the volume group if I just move the drive. What do I have to do to tell the system to look for VG2 on /dev/hdd instead of /dev/hdb?
Thanks,
Mike <<<<<
try pvmove check the man page. I have never tried this so....
Serge