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

Re: [linux-lvm] mounting lv's from fstab



I just put the vgchange command in /etc/rc.d/rc.sysinit just before the
RAID part.

.......
# Load modules (for backward compatibility with VARs)
if [ -f /etc/rc.d/rc.modules ]; then
        /etc/rc.d/rc.modules
fi

# LVM
/sbin/vgscan
/sbin/vgchange -a y

# Add raid devices
if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
        echo -n "Starting up RAID devices: "


.......

bug1 wrote:

> I put all my logical volumes in /etc/fstab but it doesnt work
> automatically.
>
> Everytime i restart my machine i have to manually activate my volume
> group by typing vgchange -a y archive.
>
> Is there a way of automatically doing this with lvm or would i have to
> write an init script ?
>
> Thanks
>
> Glenn McGrath



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