* [linux-lvm] LVM Redhat 7.2 : Volume Group not activated on boot
@ 2002-02-11 18:48 Peter Gram
2002-02-11 19:59 ` Theo Van Dinter
0 siblings, 1 reply; 2+ messages in thread
From: Peter Gram @ 2002-02-11 18:48 UTC (permalink / raw)
To: Linux LVM; +Cc: Peter Gram - Miracle A/S
Hi
I have this problem that I hope some of you out there might be able to
help with ?
My problem is on boot of the machine I get a error from the mount
process that it can not mount and check my file system
"/dev/vg01/vg01lv01" and a option to go into singe user mode where I can
se that the "vgchange -a y" is not run to activate
the volume group. I have looked at the rc.sysinit and there is this
entry that should activate all defined volume groups.
Have any of you out in cyberspace seen the same problem with Redhat 7.2 ?
cut from the /etc/rc.d/rc.sysinit :
# LVM initialization
if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
action $"Setting up Logical Volume Management:" /sbin/vgscan &&
/sbin/vgchange -a y
fi
My setup :
HP Omnibook 6000 laptop
Redhat 7.2
I have installed the "new" 2.4.17 Linux kernel
VLM support works (That is I can create lv's and I use ext3 file system
on them)
I have added my lvm to fstab and are able to mount/umount the file
system without problems
cut from fstab :
/dev/vg01/vg01lv01 /home5/pgram/dev ext3 defaults 1 2
--
/regards
Peter Gram
Phone : +45 2527 7107
Fax : +45 4466 8856
Miracle A/S
Kratvej 2
2760 M�lev
http://miracleas.dk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] LVM Redhat 7.2 : Volume Group not activated on boot
2002-02-11 18:48 [linux-lvm] LVM Redhat 7.2 : Volume Group not activated on boot Peter Gram
@ 2002-02-11 19:59 ` Theo Van Dinter
0 siblings, 0 replies; 2+ messages in thread
From: Theo Van Dinter @ 2002-02-11 19:59 UTC (permalink / raw)
To: linux-lvm
On Tue, Feb 12, 2002 at 01:49:23AM +0100, Peter Gram wrote:
> # LVM initialization
> if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
> action $"Setting up Logical Volume Management:" /sbin/vgscan &&
> /sbin/vgchange -a y
> fi
The problem is the first part of the if statement. /proc/lvm doesn't exist
unless the lvm-mod module is loaded, and that doesn't happen by default.
On my RH7.2 box, I make initrd's with the "--with=lvm-mod" option so that
initrd forcably loads lvm-mod at bootup. /proc/lvm then exists, and the
vgchange command is executed. :)
--
Randomly Generated Tagline:
"We all know engineers are way better than doctors because doctors can
only kill people one at a time while engineers can send 600 to a 1000
people screaming into Mt. Rushmore at 300 to 400 knots." - Unknown
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-11 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11 18:48 [linux-lvm] LVM Redhat 7.2 : Volume Group not activated on boot Peter Gram
2002-02-11 19:59 ` Theo Van Dinter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.