1

I wonder how can I move my logical volumes from current physical volume to another without data loss. I have read mans but I haven't found this information there. I would be grateful for any help. Thx in advance

1

command is pretty straightforward

 pvmove /dev/sdb /dev/sdc

where

  • /dev/sdb is source
  • /dev/sdc is destination

those volume need to be in vg.

This command will remove from sdb all logical volume (provided there is room in /dev/sdc)

you can latre issue a

vgreduce vg01 /dev/sdb

to remove sdb from vg01.

0

If you need to free a specific disk - you can use
pvmove /dev/sdb
It will spread the data among all other disk of the vg.

There are lots of cammands under the lvm tool. If you specify your goal the answer will be more helpful

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.