Bug 717131

Summary: LVM volume groups not activated at boot
Product: [openSUSE] openSUSE 12.1 Reporter: Olav Frengstad <olav>
Component: BasesystemAssignee: Xin Wei Hu <xwhu>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Olav Frengstad 2011-09-10 12:19:37 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1

In a system using multiple volume groups only the one with root device is activated at boot time.

The /etc/sysconfig/lvm uses the default value which should load all volumes:
LVM_VGS_ACTIVATED_ON_BOOT=""

Reproducible: Always

Steps to Reproduce:
1.Add multiple lvm volume groups and volumes to those groups
2.Boot up
3.run: lvscan
Actual Results:  
  inactive          '/dev/storage/backup' [50.00 GiB] inherit
  inactive          '/dev/storage/storage' [150.00 GiB] inherit
  ACTIVE            '/dev/wave/swap' [8.00 GiB] inherit
  ACTIVE            '/dev/wave/opensuse12' [20.00 GiB] inherit


Expected Results:  
  ACTIVE            '/dev/storage/backup' [50.00 GiB] inherit
  ACTIVE            '/dev/storage/storage' [150.00 GiB] inherit
  ACTIVE            '/dev/wave/swap' [8.00 GiB] inherit
  ACTIVE            '/dev/wave/opensuse12' [20.00 GiB] inherit


Looking at /etc/init.d/boot.lvm it looks correct
/sbin/vgchange -a y $LVM_VGS_ACTIVATED_ON_BOOT

But the default value is off:
wave:~ # chkconfig boot.lvm 
boot.lvm  off


The line used for booting grub:
root=/dev/disk/by-uuid/934a5ad6-663f-409f-bc4b-37c5685e92bf resume=/dev/wave/swap splash=silent quiet

The system is not installed through the defualt installer, instead bootstrapped through zypper and then installed additional patterns through YaST and might be the cause the LVM not loading; tho i find that hard to belive since i use the same method to build virtual guests:

zypper --root /mnt/bootstrap ar http://download.opensuse.org/factory-tested/repo/oss "factory-tested-oss"
zypper --gpg-auto-import-keys -n --root /mnt/bootstrap install -l zypper
Comment 1 Xin Wei Hu 2011-09-21 03:22:09 UTC
Hi Olav,
  boot.lvm is need for activating the remaining LVs. LVs for root and swap are activated via initrd script.

  Would you confirm if everything's fine after running 'chkconfig boot.lvm on' ?

  Thanks.
Comment 2 Olav Frengstad 2011-09-28 12:54:07 UTC
Hi Xin

Yes everything is working after adding lvm to the runlevel.

Olav
Comment 3 Xin Wei Hu 2011-11-29 07:20:53 UTC
thanks for feedback.
close as fixed then.