Disk in volume group going bad...

James Marcinek jmarc1 at jemconsult.biz
Mon Jun 6 17:33:00 UTC 2005


Hello Everyone,

I have a hard disk in a volume group that's going bad. I want to move the data
from this disk to another.  I think I have a good idea of what needs to be done
but want to make sure:

1. Add new drive to volume group
   - pvcreate /dev/sdb
   - vgextend root_vg /dev/sdb

2. Move the data from the old physical volume to the new one
  - pvmove -v /dev/sda /dev/sdb

3. Remove the bad drive...
  - vgreduce root_vg /dev/sda

Could somebody let me know if I'm missing something?

Thanks,
James




More information about the users mailing list