[Bug 1146932] New: lvm cachepool on system lv causes system to be unbootable
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 Bug ID: 1146932 Summary: lvm cachepool on system lv causes system to be unbootable Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: william.brown@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- If a suse leap 15.1 machine is configured post-install to have a lvm cache pool device on the system lv, grub2 fails to boot with "Error invalid segment". IE the lvs are: # lvs home system rwi-aor--- 104.00g 100.00 root system rwi-aor--- 80.00g 100.00 swap system rwi-aor--- 8.00g 100.00 cache system rwi-aor--- .... -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jsrain@suse.com |mchang@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 http://bugzilla.suse.com/show_bug.cgi?id=1146932#c3 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |william.brown@suse.com Flags| |needinfo?(william.brown@sus | |e.com) --- Comment #3 from Michael Chang <mchang@suse.com> --- Hi William, Would it be possible for you to test the package trying to fix the lvm cache volume issue in grub ? https://download.opensuse.org/repositories/home:/michael-chang:/lvm_cachepoo... Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 http://bugzilla.suse.com/show_bug.cgi?id=1146932#c4 William Brown <william.brown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(william.brown@sus | |e.com) | --- Comment #4 from William Brown <william.brown@suse.com> --- I only have the one machine, and I had to reinstall it a few times to get past these issues. As a result it's not possible for me to test this. Sorry, you'll need to setup a reproducer environment :( -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 http://bugzilla.suse.com/show_bug.cgi?id=1146932#c5 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(william.brown@sus | |e.com) --- Comment #5 from Michael Chang <mchang@suse.com> --- (In reply to William Brown from comment #4)
I only have the one machine, and I had to reinstall it a few times to get past these issues. As a result it's not possible for me to test this. Sorry, you'll need to setup a reproducer environment :(
Thanks, I already have the test environment, but I am not certain if taking same procedure with yours. Would you mind to share your procedure for setting up the lvm cache pool? For eg, mine looked like this to the system/root lv, and in case yours is different please let me know.
#!/bin/sh
lvcreate -L 4G -n lv_cache system /dev/vdb1 lvcreate -L 24M -n lv_cache_meta system /dev/vdb1 lvconvert --type cache-pool --cachemode writethrough --poolmetadata system/lv_cache_meta system/lv_cache lvconvert --type cache --cachepool system/lv_cache system/root
Thanks in advance. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 http://bugzilla.suse.com/show_bug.cgi?id=1146932#c6 William Brown <william.brown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(william.brown@sus | |e.com) | --- Comment #6 from William Brown <william.brown@suse.com> --- Just the existance of the cachepool even before assembling it with the main data store should cause it to be unbootable. So your steps seem like the same as mine (minus the lvconvert --type cache --cachepool system/lv_cache system/root where I used system/data). Hope that helps, -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1146932 http://bugzilla.suse.com/show_bug.cgi?id=1146932#c7 --- Comment #7 from Michael Chang <mchang@suse.com> --- (In reply to William Brown from comment #6)
Just the existance of the cachepool even before assembling it with the main data store should cause it to be unbootable. So your steps seem like the same as mine (minus the lvconvert --type cache --cachepool system/lv_cache system/root where I used system/data).
Hope that helps,
Thanks, I tried not to assemble the cachepool and still cannot reproduce the problem. And since the patch is working for me to solve the problem of cached lv not being recognized by grub, I will close this after it submitted to factory. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1146932 https://bugzilla.suse.com/show_bug.cgi?id=1146932#c8 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #8 from Benjamin Brunner <bbrunner@suse.com> --- After Leap 15.1 is no longer maintained and there was no progress for some time, I would like to close this bug for now. If this is still relevant, please reopen the bug and adjust the product accordingly. Thank you. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com