Skip to contentSkip to conversation

converting a filesystem to a logic volume

linux-lvm Ragnar Kjørstad 2 participants 2 messages Apr 12, 2000

lore
Share & tools
lore
#0 lore raw

Is it needed to move the filesystem in question to do this?

Whould not the following work:
* Create the VG that should contain the filesystem
This must be created on some other device. If the disk in question is full, it's possible to
* shrink the filesystem
* shrink the partition
* create a new partition after the one with the filesystem
and use the new partition for the VG.
* Add the device with the filesystem as a new PV in the existing VG. The LV can cover the PV completely, and the filesystem does not have to be shrinked or moved

This will only work assuming that LVM does not have to store any metadata on every PV. Does it?

Moving filesystems should be avoided if possible.

Signature · 1 line
Ragnar Kj�rstad
#1 lore raw
Quoted 2 lines · Ragnar Kj�rstad

This will only work assuming that LVM does not have to store any metadata on every PV. Does it?

AFAIK it does..

Signature · 3 lines
                       |              http://www.rent-a-nerd.nl
                       |                     - U N I X -
                       |          Inspice et cautus eris - D11T'95