[opensuse] update-bootloader and thin-LVM
Hey, I am having trouble reinstalling Grub2. I am in a live session of Kubuntu. I used it to backup my LVM volumes, and then to recreate them using thin volumes. I've done this two times before without thin-provisioned volumes and never got a problem. Now I get this error: grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/rQU1DV-UKKx-BSRd-id3l-4fl8-N3SH-n66W3A' not found. Found Windows 7 (loader) on /dev/sda1 /usr/sbin/grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. The full output is: Perl-Bootloader: 2015-08-28 04:53:28 <3> pbl-1460.2 Core::RunCommand.1658: Error: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg' failed with exit code 1, output: <<<<<<<<<<<<<<<< Generating grub configuration file ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-4.1.0-3-generic.efi.signed Found linux image: /boot/vmlinuz-4.1.0-3-generic Found initrd image: /boot/initrd.img-4.1.0-3-generic Found linux image: /boot/vmlinuz-3.16.7-24-desktop Found initrd image: /boot/initrd-3.16.7-24-desktop Found linux image: /boot/vmlinuz-3.16.6-2-desktop Found initrd image: /boot/initrd-3.16.6-2-desktop Found linux image: /boot/vmlinuz-4.1.0-3-generic Found initrd image: /boot/initrd.img-4.1.0-3-generic grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/rQU1DV-UKKx-BSRd-id3l-4fl8-N3SH-n66W3A' not found. Found Windows 7 (loader) on /dev/sda1 /usr/sbin/grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. Those 4.1.0 images are from Kubuntu, they mess up the grub configuration but that is not the issue now. Removing the 4.1.0 also doesn't change the errors. I have regenerated also using mkinitrd. The grub2-probe is referencing blkids that don't exist. Even the LVM container ID is completely incorrect. /dev/mapper/sda6_crypt: UUID="dl5QvM-u91H-fJ52-ob75-E3Ld-5vGT-gTKyD3" TYPE="LVM2_member" I'm now trying to manually edit the existing grub.cfg and getting rid of all UUID references. If the config file is not faulty it should boot all my systems. I had trouble generating a correct grub.cfg anyway. The presence of the Kubuntu files caused the generator to go haywire. All the generated entries were incorrect, except for the one that said "Kubuntu ....." which booted OpenSUSE using the OpenSUSE kernel/initrd and filesystem. grub2-install finished correctly. Does anyone know where the errors come from?. Regards, Bart. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Отправлено с iPhone
28 авг. 2015 г., в 4:28, Xen <list@xenhideout.nl> написал(а):
Hey,
I am having trouble reinstalling Grub2.
I am in a live session of Kubuntu. I used it to backup my LVM volumes, and then to recreate them using thin volumes. I've done this two times before without thin-provisioned volumes and never got a problem.
Now I get this error:
grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found.
Grub2 does not include support for thin volumes. So it sees reference to LV when scanning devices but cannot really access them. Someone will need to implement for them ...
grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/rQU1DV-UKKx-BSRd-id3l-4fl8-N3SH-n66W3A' not found. Found Windows 7 (loader) on /dev/sda1 /usr/sbin/grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found.
The full output is:
Perl-Bootloader: 2015-08-28 04:53:28 <3> pbl-1460.2 Core::RunCommand.1658: Error: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg' failed with exit code 1, output: <<<<<<<<<<<<<<<< Generating grub configuration file ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-4.1.0-3-generic.efi.signed Found linux image: /boot/vmlinuz-4.1.0-3-generic Found initrd image: /boot/initrd.img-4.1.0-3-generic Found linux image: /boot/vmlinuz-3.16.7-24-desktop Found initrd image: /boot/initrd-3.16.7-24-desktop Found linux image: /boot/vmlinuz-3.16.6-2-desktop Found initrd image: /boot/initrd-3.16.6-2-desktop Found linux image: /boot/vmlinuz-4.1.0-3-generic Found initrd image: /boot/initrd.img-4.1.0-3-generic grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found. grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/rQU1DV-UKKx-BSRd-id3l-4fl8-N3SH-n66W3A' not found. Found Windows 7 (loader) on /dev/sda1 /usr/sbin/grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/D3KfrU-0PNZ-Eaaj-bCkN-FrYE-fUQB-32NAOX' not found.
Those 4.1.0 images are from Kubuntu, they mess up the grub configuration but that is not the issue now.
Removing the 4.1.0 also doesn't change the errors. I have regenerated also using mkinitrd.
The grub2-probe is referencing blkids that don't exist.
Even the LVM container ID is completely incorrect.
/dev/mapper/sda6_crypt: UUID="dl5QvM-u91H-fJ52-ob75-E3Ld-5vGT-gTKyD3" TYPE="LVM2_member"
I'm now trying to manually edit the existing grub.cfg and getting rid of all UUID references. If the config file is not faulty it should boot all my systems.
I had trouble generating a correct grub.cfg anyway. The presence of the Kubuntu files caused the generator to go haywire. All the generated entries were incorrect, except for the one that said "Kubuntu ....." which booted OpenSUSE using the OpenSUSE kernel/initrd and filesystem.
grub2-install finished correctly. Does anyone know where the errors come from?.
Regards, Bart.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 28 Aug 2015, Andrei Borzenkov wrote:
Отправлено с iPhone
28 авг. 2015 г., в 4:28, Xen <list@xenhideout.nl> написал(а):
Hey,
I am having trouble reinstalling Grub2.
I am in a live session of Kubuntu. I used it to backup my LVM volumes, and then to recreate them using thin volumes. I've done this two times before without thin-provisioned volumes and never got a problem.
Now I get this error:
grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found.
Grub2 does not include support for thin volumes. So it sees reference to LV when scanning devices but cannot really access them.
Someone will need to implement for them ...
All the same it will boot from a thin volume just fine. OpenSUSE's initrd supports it (much to my luck!) and even the tools for thin volume manipulation is included in the distribution (thin_check and all that). I have just hand-crafted a grub.cfg (for grub2) which is perfect imo. Grub2-install installs it without issue. The boot partition is not on LVM, so grub really doesn't have to deal with it I guess. It passes the root that I want to the kernel and the kernel has no issue with loading it. Here I thought this would be such a fine solution ;-). But actually OpenSUSE is the only thing that works on my computer right now ;-). Kubuntu won't run (due to thin volumes) and I can't even chroot into it (due to weird errors) and Windows likes to install updates for such a long time that the insistment of "Don't turn off your computer" readily falls on deaf ears with me. Which of course renders the whole thing unusable as safe mode won't even boot any more and now... Yeah. Here I thought thin volumes was a very much supported thing, but I only looked at Red Hat documentation. Anyway, auto-generating a grub.cfg is the least of my concerns right now. It seems such a nice solution to the "fixed volume size" problem. I don't want to use btrfs because of the added complexity and I can do much of the same things btrfs does. I can create a thin-snapshot of a thin-volume out of the thin-pool and although it seems a bit of a headache to do 'volume creation' as a form of doing backups it means you can snapshot without needing extra space apart from the space that is already available in the thin pool. It will do copy-on-write (I think) and copy the changed files (their original versions) (more like blocks) into the snapshot volume to keep the snapshot (at time of creation) intact while not changing the original volume in any way. Then it's easy backup and then you discard the snapshot volume. The only downside is that you do need to watch the available space in the thin-pool if you are really thin-provisioning (which I am doing, a bit, just to make better use of free space). This is my volume list for what it's worth, if it interests anyone: LV VG Attr LSize Pool Origin Data% home linux Vwi-aotz- 32.00g hpthin 2.80 hpthin linux twi-a-tz- 51.43g 32.38 kubuntu linux Vwi-aotz- 8.00g hpthin 51.95 squid linux Vwi-aotz- 1.00g hpthin 28.16 suse linux Vwi-aotz- 16.00g hpthin 70.77 swap linux -wc-ao--- 4.00g The virtual size in total is 57G which is ~5.5G more than what's really there. As long as "suse" doesn't fill up, "home" has more leeway, and as long as "home" doesn't fill up, everything else has more leeway. I think it's pretty nice, maybe not perfect, but it's what I love right now. Kudos, Bart
Отправлено с iPhone
28 авг. 2015 г., в 10:50, Xen <list@xenhideout.nl> написал(а):
On Fri, 28 Aug 2015, Andrei Borzenkov wrote:
Отправлено с iPhone
28 авг. 2015 г., в 4:28, Xen <list@xenhideout.nl> написал(а):
Hey,
I am having trouble reinstalling Grub2.
I am in a live session of Kubuntu. I used it to backup my LVM volumes, and then to recreate them using thin volumes. I've done this two times before without thin-provisioned volumes and never got a problem.
Now I get this error:
grub2-probe: error: disk `lvmid/URtZA3-OgVA-rFoA-xjlw-BOsX-iVMd-U5iWJy/2fa6lw-4f4q-c20g-0Ry8-t02S-CMry-iI6jed' not found.
Grub2 does not include support for thin volumes. So it sees reference to LV when scanning devices but cannot really access them.
Someone will need to implement for them ...
All the same it will boot from a thin volume just fine. OpenSUSE's initrd supports it (much to my luck!) and even the tools for thin volume manipulation is included in the distribution (thin_check and all that). I have just hand-crafted a grub.cfg (for grub2) which is perfect imo. Grub2-install installs it without issue.
Grub-install never ever touched grub.cfg.
The boot partition is not on LVM, so grub really doesn't have to deal with it I guess.
The messages /probably/ come from os-prober. To verify you can disable probing for foreign OS. Could you open bug report about this problem?
It passes the root that I want to the kernel and the kernel has no issue with loading it.
Here I thought this would be such a fine solution ;-). But actually OpenSUSE is the only thing that works on my computer right now ;-).
Kubuntu won't run (due to thin volumes) and I can't even chroot into it (due to weird errors) and Windows likes to install updates for such a long time that the insistment of "Don't turn off your computer" readily falls on deaf ears with me. Which of course renders the whole thing unusable as safe mode won't even boot any more and now... Yeah.
Here I thought thin volumes was a very much supported thing, but I only looked at Red Hat documentation. Anyway, auto-generating a grub.cfg is the least of my concerns right now.
It seems such a nice solution to the "fixed volume size" problem. I don't want to use btrfs because of the added complexity and I can do much of the same things btrfs does. I can create a thin-snapshot of a thin-volume out of the thin-pool and although it seems a bit of a headache to do 'volume creation' as a form of doing backups it means you can snapshot without needing extra space apart from the space that is already available in the thin pool.
It will do copy-on-write (I think) and copy the changed files (their original versions) (more like blocks) into the snapshot volume to keep the snapshot (at time of creation) intact while not changing the original volume in any way. Then it's easy backup and then you discard the snapshot volume. The only downside is that you do need to watch the available space in the thin-pool if you are really thin-provisioning (which I am doing, a bit, just to make better use of free space).
This is my volume list for what it's worth, if it interests anyone:
LV VG Attr LSize Pool Origin Data% home linux Vwi-aotz- 32.00g hpthin 2.80 hpthin linux twi-a-tz- 51.43g 32.38 kubuntu linux Vwi-aotz- 8.00g hpthin 51.95 squid linux Vwi-aotz- 1.00g hpthin 28.16 suse linux Vwi-aotz- 16.00g hpthin 70.77 swap linux -wc-ao--- 4.00g
The virtual size in total is 57G which is ~5.5G more than what's really there. As long as "suse" doesn't fill up, "home" has more leeway, and as long as "home" doesn't fill up, everything else has more leeway. I think it's pretty nice, maybe not perfect, but it's what I love right now.
Kudos,
Bart -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 28 Aug 2015, Andrei Borzenkov wrote:
Отправлено с iPhone
Grub-install never ever touched grub.cfg.
Right. So that means I can change grub.cfg at will and Grub2 will automatically know and include?. I was always under the impression recently that a form of 'install' was necessary.
The messages /probably/ come from os-prober. To verify you can disable probing for foreign OS. Could you open bug report about this problem?
Where do you want me to file it? I will check into it later.
participants (2)
-
Andrei Borzenkov
-
Xen