Linux - GeneralThis 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.
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.
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 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?
[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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.