vgscan && vgchange -ay at startup
Hello,
if I reboot, the file /etc/rcS.d/S25lvm failed to find and activate my vg.
I suppose that´s because the shutdown of the vg fails. (Not umounted all before?)
Anybody else had this problems with debian unstable? Uli
Signature · 1 line
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5
Quoted 5 lines · Ulrich Wiederhold
Hello,
if I reboot, the file/etc/rcS.d/S25lvmfailed to find and activate my vg.
I suppose that´s because the shutdown of the vg fails. (Not umounted all before?)
Hmm...the shutdown shouldn't matter. I rarely run vgchange -an on my systems (I have LVM as root, so there really is no way to do it...)
Quoted 1 line
Anybody else had this problems with debian unstable?
There's a good chance that your startup script is running either before root is mounted read/write (in which case the LVM tools can't write to /etc) or before /proc is mounted (which is less likely because this usually just makes vgscan really slow, not fail). Check your init scripts and verify that root is writable before the S25lvm script runs.
Regards,
Signature · 13 lines
AJ Lewis Sistina Software Inc. Voice: 612-638-0500 1313 5th St SE, Suite 111 Fax: 612-638-0500 Minneapolis, MN 55414 E-Mail: [email protected] http://www.sistina.com Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B 52A0 941E 1261 0029 2648 Get my key at: http://www.sistina.com/~lewis/gpgkey (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys) -----Begin Obligatory Humorous Quote---------------------------------------- Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... -----End Obligatory Humorous Quote------------------------------------------
Hello,
Quoted 9 lines · AJ Lewis
Quoted 1 line · Ulrich Wiederhold
Anybody else had this problems with debian unstable?
There's a good chance that your startup script is running either before root is mounted read/write (in which case the LVM tools can't write to /etc) or before /proc is mounted (which is less likely because this usually just makes vgscan really slow, not fail). Check your init scripts and verify that root is writable before the S25lvm script runs.
I thaught about this problem too and disabled the "read-only" entry in /etc/lilo.conf, this hasn´t solved the problem.
Now I looked into /etc/rcS.d/ and found out that root in mounted ro in S10checkroot.sh together with /proc.
Lvm runs in S25lvm and I think root will be mount rw in S35mountall.sh, so I think it´s a bug in the debian-packages.
Right?
Thanks.
Uli
Signature · 1 line
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5
Quoted 1 line · AJ Lewis
[]
Quoted 2 lines
There's a good chance that your startup script is running either before root is mounted read/write (in which case the LVM tools can't write to /etc) or
But how to have root mounted read-only?
I resolved problem with only one file that needs to be read-write -- it is /etc/mtab that I moved out to /var/run (modified glibc and mount itself). So my root is now read-only at all times. But how to deal with lvm? Should I move /etc/lvm* to /var also?
Regards,
Michael.
Quoted 3 lines · Michael Tokarev
But how to have root mounted read-only?
I resolved problem with only one file that needs to be read-write -- it is/etc/mtabthat I moved out to/var/run(modified glibc and
this should be fixable with making /etc/mtab a link to /proc/mounts
Quoted 2 lines
mount itself). So my root is now read-only at all times. But how to deal with lvm? Should I move
/etc/lvm*to /var also?
The ideal solution would be to have LVM not write any files at all and do everything in memory. If I want to make a backup (e.g. when changing anything) either make the meta data journaling or save the backup to some where in /var
just my Û0.02 (soon equal to $0.02, btw on my mac this is an euro sign)
But, I won't complain. LVM rocks as it is and I'm happy with it.
Signature · 2 lines
Goetz Bock IT Consultant Dipl.-Inf. Univ.
Quoted 6 lines · Goetz Bock
Quoted 3 lines · Michael Tokarev
But how to have root mounted read-only?
I resolved problem with only one file that needs to be read-write -- it is/etc/mtabthat I moved out to/var/run(modified glibc andthis should be fixable with making
/etc/mtaba link to/proc/mounts
I've done this on my system for about a month it seems to work fine.
Quoted 8 lines
Quoted 2 lines
mount itself). So my root is now read-only at all times. But how to deal with lvm? Should I move
/etc/lvm*to /var also?The ideal solution would be to have LVM not write any files at all and do everything in memory. If I want to make a backup (e.g. when changing anything) either make the meta data journaling or save the backup to some where in /var
just my Û0.02 (soon equal to $0.02, btw on my mac this is an euro sign)
Yeah, that's in the works for the development version of LVM, but the 1.0x series will likely always have the files in /etc. I agree that it is better not to have it write files by default, or at least not rely on them being written out.
Quoted 1 line
But, I won't complain. LVM rocks as it is and I'm happy with it.
:)
Signature · 14 lines
AJ Lewis Sistina Software Inc. Voice: 612-638-0500 1313 5th St SE, Suite 111 Fax: 612-638-0500 Minneapolis, MN 55414 E-Mail: [email protected] http://www.sistina.com Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B 52A0 941E 1261 0029 2648 Get my key at: http://www.sistina.com/~lewis/gpgkey (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys) -----Begin Obligatory Humorous Quote---------------------------------------- A computer without a Microsoft operating system is like a dog without bricks tied to its head. -----End Obligatory Humorous Quote------------------------------------------
Quoted 9 lines · AJ Lewis
Quoted 6 lines · Goetz Bock
Quoted 3 lines · Michael Tokarev
But how to have root mounted read-only?
I resolved problem with only one file that needs to be read-write -- it is/etc/mtabthat I moved out to/var/run(modified glibc andthis should be fixable with making
/etc/mtaba link to/proc/mountsI've done this on my system for about a month it seems to work fine.
Apparently there are problems with loopback mounts if you do this, but if that's not an issue it should be fine.
patrick
Quoted 4 lines · AJ Lewis
Yeah, that's in the works for the development version of LVM, but the 1.0x series will likely always have the files in /etc. I agree that it is better not to have it write files by default, or at least not rely on them being written out.
May I request a feature for the 1.0x series? A command-line option for vgscan and vgchange, to specify the directory containing lvmconf, lvmtab and lvmtab.d.
Regards,
Mark.
Quoted 9 lines · Mark van Walraven
Quoted 4 lines · AJ Lewis
Yeah, that's in the works for the development version of LVM, but the 1.0x series will likely always have the files in /etc. I agree that it is better not to have it write files by default, or at least not rely on them being written out.
May I request a feature for the 1.0x series? A command-line option for vgscan and vgchange, to specify the directory containing lvmconf, lvmtab and lvmtab.d.
In future versions, there'll be config file support in LVM covering what you request and more :-)
Quoted 10 lines
Regards,
Mark.
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-