From: Daniel Savard <dsavard@cids.ca>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Re: LVM Redhat 7.2 : Volume Group not activated on boot
Date: Tue Feb 12 10:42:02 2002 [thread overview]
Message-ID: <1013532115.3181.13.camel@dirac.cids.ca> (raw)
In-Reply-To: <E16aR81-0002Ke-00@hermes.sistina.com>
le lun 11-02-2002 à 19:49, linux-lvm-request@sistina.com a écrit :
> 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
>
I added my own entry in the rc.sysinit file after the root filesystem is
made writable. So, here is my own entry (two lines below # DS ...:
# The root filesystem is now read-write, so we can now log via syslog()
directly..
if [ -n "$IN_INITLOG" ]; then
IN_INITLOG=
fi
# DS Ok, now scan all volume groups for LVM and activate them
/sbin/vgscan
/sbin/vgchange -a y
if ! grep -iq nomodules /proc/cmdline >/dev/null 2>&1 && [ -f
/proc/ksyms ]; then
USEMODULES=y
else
USEMODULES=
fi
It is near line 315 in my rc.sysinit file.
I also have the initrd image made with lvmcreate_initrd and the
appropriate entry in the lilo.conf file. I am using kernel 2.4.17 as
well.
--
=======================================
Daniel Savard
Consultation Informatique Daniel Savard
551, boul. Sir-Wilfrid-Laurier
suite 105
Beloeil, (Québec)
Canada J3G 4J1
Tél: (450) 467-8014
Internet: dsavard@cids.ca
=======================================
next parent reply other threads:[~2002-02-12 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E16aR81-0002Ke-00@hermes.sistina.com>
2002-02-12 10:42 ` Daniel Savard [this message]
2002-02-12 10:55 ` [linux-lvm] Re: LVM Redhat 7.2 : Volume Group not activated on boot Heinz J . Mauelshagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1013532115.3181.13.camel@dirac.cids.ca \
--to=dsavard@cids.ca \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).