[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Seg fault on vgscan



Marco writes:
> > This is very bad.  You should not use LVM on existing partitions.  Does it
> > not say anything in this regard in the documentation?  Probably, as a
> > safety measure, the LVM commands should verify that a partition is not
> > mounted before doing a pvcreate/vgcreate on it.
> 
> I've not seen this in writing anywhere, but could have missed it.  I would
> hope there's a way to handle root_vg filesystems.  I thought I saw something
> in the archives regarding 'encapsulating' the root partition...  

I think the "encapsulation" of root is done by copying all of the data to
a new (LVM) filesystem, creating an init ramdisk, fixing up your lilo.conf
and then rebooting.

There was also some mention of modifying your partition table to have two
"overlapping" partitions - one that pointed to the start of the filesystem,
and the other that pointed to the start of the LVM data.  You would normally
boot with the LVM partition, but for lilo you would use the filesystem
partition.  I don't know what happened to this idea.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]