[Bug 525454] New: LVM2 inactive after reboot
http://bugzilla.novell.com/show_bug.cgi?id=525454 Summary: LVM2 inactive after reboot Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: diego.ercolani@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.0.11) Gecko/2009060200 SUSE/3.0.11-0.1.1 Firefox/3.0.11 I noticed that if you create manually a LVM2 structure, (with pvcreate, vgcreate, lvcreate) whe you reboot the OpenSuSE box, volume groups are inactive and you have to activate via "vgchange -ay" This behaviour is VERY annoying as init script mount procedure complaints about non existance of partition and drops to init shell.... The workaround is to comment out lvm2 partitions in fstab (as for me LVM are only service partitions and can be not mounted during startup), reboot, activate VGs by hand and then mount them manually. I found that in mkinitrd there is a flag called "feature" to enable in initrd kernels, the feature is lvm2 I found also there is sysconfig/lvm where you can define in LVM_VGS_ACTIVATED_ON_BOOT the group you want to activate during startup. I found also some OpenSuse 11.1 machines where there isn't any declaration of boot lvm group activation and in these machines LVM2 is correctly activated during startup. Please provide us a sort of WIKI or HOWTO, to correctly handle the "LVM2 boot problem" Thank you for your support Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c1
pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c2
pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c3
Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c4
--- Comment #4 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c5
--- Comment #5 from Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c6
--- Comment #6 from pgnet Dev
boot.lvm should be started _before_ boot.localfs. So S10boot.lvm will be more appropriated.
yep, i'd just figured that out and tried it ... still to no avail. :-/ and, per request: sh -x /etc/init.d/boot.lvm + . /etc/rc.status ++ LC_ALL=POSIX ++ export LC_ALL ++ trap rc_lc SIGWINCH ++ rc_lc ++ test -n '' +++ stty size ++ set -- 44 74 ++ LINES=44 ++ COLUMNS=74 ++ test 44 -eq 0 ++ test 74 -eq 0 ++ export LINES COLUMNS ++ case ":$PATH:" in ++ test -t 1 -a vt102 '!=' raw -a vt102 '!=' dumb ++ stty size +++ echo -en '\033' ++ esc=$'\E' ++ extd='' ++ warn='' ++ done='' ++ attn='' +++ echo -en '\017' ++ norm='' +++ echo -en '\015 ' ++ stat=' ' ++ rc_done=' done' ++ rc_running=' running' ++ rc_failed=' failed' ++ rc_missed=' missing' ++ rc_skipped=' skipped' ++ rc_dead=' dead' ++ rc_unused=' unused' ++ rc_unknown=' failed'' ++ rc_reset=''p=' ++ rc_save='' ++ _rc_service=/etc/init.d/boot.lvm ++ _rc_status=0 ++ _rc_status_all=0 ++ _rc_todo= ++ test '' = status ++ test -n '' ++ cmdline= + . /etc/sysconfig/lvm ++ LVM_VGS_ACTIVATED_ON_BOOT= + '[' -x /sbin/udevadm ']' + '[' -z '' ']' + LVM_DEVICE_TIMEOUT=60 + rc_reset + _rc_status=0 + _rc_status_all=0 + rc_check + _rc_status_ret=0 + test 0 -eq 0 + test 0 -eq 0 + return 0 + return 0 + case "$1" in + echo 'Usage: /etc/init.d/boot.lvm {start|stop|status|reload}' Usage: /etc/init.d/boot.lvm {start|stop|status|reload} + exit 1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c7
--- Comment #7 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c8
--- Comment #8 from Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c9
--- Comment #9 from pgnet Dev
Would you try to capture the output of boot.lvm during boot ?
silly question, then -- how do i capture that across boot? is there a flag to set? or do i need to add "print" or pipe stmts to the script itself? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c10
--- Comment #10 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c11
--- Comment #11 from Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c12
--- Comment #12 from pgnet Dev
Judged by your trace, boot.lvm is not exec at all ?
given what i've tried so far, i don't see any relevant output. that's either because i simply am not tracing it properly, or it's in fact not running. why it seems to be fine AFTER boot, i don't know as yet ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c13
--- Comment #13 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c14
pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c15
Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c16
pgnet Dev
Did you enable the RUN_PARALLEL in /etc/sysconfig/boot ?
no, but it looks like the DEFAULT is 'yes' anyway grep RUN_PARALLEL /etc/sysconfig/boot ... ## Type: yesno ## Default: yes # # Run all scripts or rather start/stop all services # which are independent from each other in parallel. # RUN_PARALLEL="yes" ... per your advice, rm /etc/init.d/boot.d/S10boot.lvm chkconfig boot.lvm boot.lvm off chkconfig boot.lvm on chkconfig boot.lvm boot.lvm on reboot then, mount /dev/VG_TEST/LV_TEST /home/stor/TEST works! mount | grep NAS /dev/mapper/VG_TEST-LV_TEST on /home/stor/TEST type xfs (rw) checking cat /var/log/boot.msg, now correctly (?) shows, ... ++ echo preping 61-lvm2.sh preping 61-lvm2.sh ++ '[' -n '' ']' ++ '[' debug ']' ... Waiting for udev to settle... Scanning for LVM volume groups... Reading all physical volumes. This may take a while... Found volume group "VG_TEST" using metadata type lvm2 Activating LVM volume groups... 3 logical volume(s) in volume group "VG_TEST" now active done ... so, simply, 'chkconfig boot.lvm on' is the solution? if 'RUN_PARALLEL="yes"' is supposed to be the default (?), should the boot sequence not automatically start the services in the boot sequence? of, should the default be 'RUN_PARALLEL="no"'? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c17
Xinwei Hu
so, simply, 'chkconfig boot.lvm on' is the solution?
In your case, I think yes. ;) So I reset NEEDINFO to the original reporter. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525454
User diego.ercolani@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c18
--- Comment #18 from Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=525454
User diego.ercolani@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c19
Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=525454
Xinwei Hu
http://bugzilla.novell.com/show_bug.cgi?id=525454
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525454#c20
pgnet Dev
participants (1)
-
bugzilla_noreply@novell.com