mounting lv's from fstab
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
Quoted 14 lines
I put all my logical volumes in
/etc/fstabbut 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
Signature · 11 lines
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt
[email protected] Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Please put a "vgscan ; vgchange -a y" in a system startup file like /sbin/init.d/boot on SuSE or an equivalent one on another distribution.
Please see the file INSTALL which comes with the LVM sources also.
Regards,
Heinz
Quoted 14 lines
I put all my logical volumes in
/etc/fstabbut 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
Signature · 11 lines
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt
[email protected] Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Ok, thanks, i have it worked out now, i think im going to really like lvm
Thanks everyone.
Glenn
Quoted 37 lines · Heinz Mauelshagen
Please put a "vgscan ; vgchange -a y" in a system startup file like
/sbin/init.d/booton SuSE or an equivalent one on another distribution.Please see the file INSTALL which comes with the LVM sources also.
Regards,
HeinzQuoted 6 lines
I put all my logical volumes in
/etc/fstabbut it doesnt work automatically.Everytime i restart my machine i have to manually activate my volume group by typing vgchange -a y archive.
Quoted 8 lines
Is there a way of automatically doing this with lvm or would i have to write an init script ?
Thanks
Glenn McGrath
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 4164205 Darmstadt [email protected] Germany +49 6151 886-425 FAX-386=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines · On Tue, Apr 25, 2000 at 04:41:38PM +1000, bug1 wrote:
I put all my logical volumes in
/etc/fstabbut 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 ?
You have to write an initscript - that's just the way it is.
Regards,
bert hubert
Signature · 3 lines
| http://www.rent-a-nerd.nl
| - U N I X -
| Inspice et cautus eris - D11T'95I 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: "
.......
Quoted 12 lines · bug1 wrote:
I put all my logical volumes in
/etc/fstabbut 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
Am 25-Apr-00 toeggelte Patrick Boutilier:
Quoted 4 lines
I just put the vgchange command in
/etc/rc.d/rc.sysinitjust before the
RAID part.
Quoted 8 lines
.......
# Load modules (for backward compatibility with VARs) if [ -f/etc/rc.d/rc.modules]; then
/etc/rc.d/rc.modules
fi# LVM
/sbin/vgscan
I dont use vgscan, because I don't boot neither with intrd nor with devfs, so for me vgscan would be just waisting time during boot.
Quoted 5 lines
/sbin/vgchange-a y# Add raid devices
if [ -f/proc/mdstat-a -f/etc/raidtab]; then
echo -n "Starting up RAID devices: "
-----------------------------------------------------------------------
Daniel Etter | http://www.etter.ch/~daniel | Tel. : +41 1 884 75 01 Ringstrasse 2 | | Fax : +41 1 884 62 50 8107 Buchs ZH | mailto:[email protected] | Natel: +41 79 354 93 75