Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-06-2005, 06:09 PM
|
#1
|
Newbie
Registered: Mar 2002
Posts: 28
Rep:
|
LVM2 (non-root) lv's won't mount at boot time
Hey everyone...
I've got LVM2 set up and working. My only problem is that the volumes will not activate at boot time. I have a 20GB volume named homevol (/dev/vg0/homevol). When I manually do 'lvchange -ay /dev/vg0/homevol' all is well.
I though simply adding the appropriate vgchange and lvchange commands to /etc/rc would activate everything at boot time, but no luck. I will make an initrd if I must, but I don't see why I would have to. Anybody have a similar experience?
Applicable info:
linux 2.6.6
devfs (daemon and kernel protocol rev 5), mounts at boot
lvm 2.00.33
Thanks...
|
|
|
03-06-2005, 10:09 PM
|
#2
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
My /etc/fstab, give you any ideas?
[nonzero@blacky ~]$ cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/VolGroup00/LogVol01 /home ext3 defaults 1 2
/dev/VolGroup01/LogVol01 /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup01/LogVol00 /usr ext3 defaults 1 2
/dev/VolGroup00/LogVol00 /var ext3 defaults 1 2
LABEL=SWAP-ida/c0d0p2 swap swap defaults 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
nz
EDIT: This machine is running FC3.
Last edited by nonzero; 03-06-2005 at 10:10 PM.
|
|
|
03-07-2005, 12:04 AM
|
#3
|
Newbie
Registered: Mar 2002
Posts: 28
Original Poster
Rep:
|
Thanks for the reply. My fstab is good. For instance, I have the following entry:
/dev/vg0/homevol /home reiserfs defaults 0 0
If I were to log in after a reboot, however, /home won't be mounted. So,
#mount /home
mount: special device /dev/vg0/homevol does not exist
Wow, that's weird...
#lvdisplay
LV Name /dev/vg0/homevol
VG Name vg0
LV Write Access read/write
LV Status NOT available
...
There's the culprit. homevol's not active.
#lvchange -ay /dev/vg0/homevol
#mount /home
Homes are back.
But when I put the vgchange and lvchange commands in my rc scripts, they just don't seem to do anything. No logs, nothing. I'm running out of ideas. Maybe you could grep -R "\(lv\|vg\)change" /etc/* for me?
Thanks again...
|
|
|
03-07-2005, 12:29 AM
|
#4
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
Here ya go.
[root@blacky nonzero]# grep -R "\(lv\|vg\)change" /etc/*
grep: /etc/httpd/run/dbus/system_bus_socket: No such device or address
grep: /etc/rc0.d/K90bluetooth: No such file or directory
grep: /etc/rc0.d/K74apmd: No such file or directory
grep: /etc/rc1.d/K90bluetooth: No such file or directory
grep: /etc/rc1.d/K74apmd: No such file or directory
grep: /etc/rc2.d/K90bluetooth: No such file or directory
grep: /etc/rc2.d/S26apmd: No such file or directory
grep: /etc/rc3.d/K90bluetooth: No such file or directory
grep: /etc/rc3.d/S26apmd: No such file or directory
grep: /etc/rc4.d/K90bluetooth: No such file or directory
grep: /etc/rc4.d/S26apmd: No such file or directory
grep: /etc/rc5.d/K90bluetooth: No such file or directory
grep: /etc/rc5.d/S26apmd: No such file or directory
grep: /etc/rc6.d/K90bluetooth: No such file or directory
grep: /etc/rc6.d/K74apmd: No such file or directory
grep: /etc/rc.d/rc6.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc6.d/K74apmd: No such file or directory
grep: /etc/rc.d/rc1.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc1.d/K74apmd: No such file or directory
grep: /etc/rc.d/rc3.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc3.d/S26apmd: No such file or directory
grep: /etc/rc.d/rc5.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc5.d/S26apmd: No such file or directory
/etc/rc.d/rc.sysinit: action $"Setting up Logical Volume Management:" /sbi n/lvm.static vgchange -a y --ignorelockingfailure
/etc/rc.d/rc.sysinit: if [ -e /proc/lvm -a -x /sbin/vgchange ]; then
/etc/rc.d/rc.sysinit: action $"Setting up Logical Volume Management:" /sbin/vg scan && /sbin/vgchange -a y
/etc/rc.d/rc.sysinit: action $"Setting up Logical Volume Manag ement:" /sbin/lvm.static vgscan --mknodes --ignorelockingfailure && /sbin/lvm.st atic vgchange -a y --ignorelockingfailure
/etc/rc.d/rc.sysinit: if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
/etc/rc.d/rc.sysinit: action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y
grep: /etc/rc.d/rc2.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc2.d/S26apmd: No such file or directory
grep: /etc/rc.d/rc0.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc0.d/K74apmd: No such file or directory
grep: /etc/rc.d/rc4.d/K90bluetooth: No such file or directory
grep: /etc/rc.d/rc4.d/S26apmd: No such file or directory
/etc/rc.sysinit: action $"Setting up Logical Volume Management:" /sbi n/lvm.static vgchange -a y --ignorelockingfailure
/etc/rc.sysinit: if [ -e /proc/lvm -a -x /sbin/vgchange ]; then
/etc/rc.sysinit: action $"Setting up Logical Volume Management:" /sbin/vg scan && /sbin/vgchange -a y
/etc/rc.sysinit: action $"Setting up Logical Volume Manag ement:" /sbin/lvm.static vgscan --mknodes --ignorelockingfailure && /sbin/lvm.st atic vgchange -a y --ignorelockingfailure
/etc/rc.sysinit: if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
/etc/rc.sysinit: action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y
nz
|
|
|
All times are GMT -5. The time now is 02:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|