0

I'm starting with LVM and I would like to know if when I create a LVM with different disks and one of them has data, when I create virtual volumes will make me loose all the data stored. And if there is a way to don't lose it, how can I do it?

Thank you

enedebe
  • 1,066
  • 3
  • 11
  • 18

1 Answers1

2

Yes, if you reassign your drive into an LVM, it will loose the data. Preventing this can be easy if you have at least one empty disk with enough space to accomodate the data: Just add the empty disk into the LVM, copy the data over there and after that is finished, reassign the full drive into the LVM as well.

Depending on your specific goals this might be more complicated or time-consuming (e.g. if a RAID will be used) but generally it should be possible.

Sven
  • 98,649
  • 14
  • 180
  • 226
  • Thanks my thoughts were in that way, create a new LVM with other disk, transfer all the data, and then add the old disk to the LVM to get more space in the logic volume. What I expect is to don't need to copy all the files between LVM and physical volumes, but I suppose this is not possible as you said. 400GB is not "too much", but it will take a few hours. – enedebe Nov 14 '12 at 10:19