Re: LVM Clarification

Solar Designer <[email protected]>
Newsgroups gmane.linux.openwall.user
Message-ID <[email protected]>
Hi Simon,

On Mon, Dec 06, 2010 at 11:22:06AM -0000, Simon Baker wrote:
> We don't support LVM out of the box, though for me it's something I'm
> finding more and more useful for containerization, as it allows me to
> finely allocate another physical limit to an OpenVZ guest. However, it's
> reasonably easy for me to just simply build the utilities myself, but

Please feel free to complete and contribute this support right after our
upcoming release.

> there's an issue with the startup script rc.sysinit as I see it:
> 
> # Activate LVM volumegroups.
> if [ -e /proc/lvm -a -x /sbin/vgchange -a -d /etc/lvm ]; then
>         echo "Setting up logical volume management"
>         /sbin/vgscan > /dev/null && /sbin/vgchange -a y
> fi
> 
> The /proc/lvm file isn't there on my system / kernel build (I only added
> in dev mapper support to my kernel .config, which seems to suffice). Does
> anyone know which kernel options are supposed to create this?  Is it a
> hangover from the olden days ?  Do I need it to make things work properly?

I don't know, but this does not appear to exist in our kernel sources.
I just ran "fgrep -rwl lvm" against my
linux-2.6.18-194.26.1.el5.028stab079.1-owl tree.  It returned 4 hits,
which I reviewed manually - none of them are the /proc entry.

>  Obviously as it stands I'm removing the [ -e /proc/lvm ] conditional to
> make things work, but if this could/should be fixed upstream that would be
> better :-)

I've just applied the same change to owl-startup (will be in 0.39-owl1).

Thanks,

Alexander
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.