I renamed my volume with vgrename however I didn't complete the other steps. Mainly update fstab and intiramfs. Once I booted, I was dropped on the Dracut shell. From here I can see the newly rename VG and I can lvm lvscan as well as activate it, lvm vgchange -ay. However I can't figure out what to do next, I'm assuming I need to regenerate the initramfs and then boot to change grub? Could someone point me in the right direction to recovering a FS from Dracut, or other means, once the volume group name was changed. TIA, Paul
> I renamed my volume with vgrename however I didn't complete the other > steps. > Mainly update fstab and intiramfs. Once I booted, I was dropped on the > Dracut shell. From here I can see the newly rename VG and I can lvm lvscan > as well as activate it, lvm vgchange -ay.IIRC this could all be done before rebooting. I know I did it in the past but don't remember exactly and also don't remember the exact CentOS versions used. What I'd try is to rename the VG back to its original name and try to get a bootable system again. Then I think you can make all the changes to fstab and grub and rename again and reboot. Regards, Simon
Get a CentOS Install media , boot from it and select troubleshoot.Then mount your root LV, boot lv , /proc/, /sys, /dev & /run (last 4 with "bind" mount option).Then chroot into the root LV's mount point and then change grub menu and run "dracut -f --regenerate-all" last step is to reboot and test. Best Regards,Strahil Nikolov ? ??????????, 6 ?????? 2020 ?., 17:05:54 ?. ???????-5, Paul Amaral via CentOS <centos at centos.org> ??????: I renamed my volume with vgrename however I didn't complete the other steps. Mainly update fstab and intiramfs. Once I booted, I was dropped on the Dracut shell. From here I can see the newly rename VG and I can lvm lvscan as well as activate it, lvm vgchange -ay. However I can't figure out what to do next, I'm assuming I need to regenerate the initramfs and then boot to change grub? Could someone point me in the right direction to recovering a FS from Dracut, or other means, once the volume group name was changed. TIA, Paul _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
Strahil, thanks for your reply, I ended up getting the server to boot under Dracut only, it?s still not booting from the boot menu. It goes to Dracut where it complaints it can?t find any of the lvms. However, when I do lvm vgchange -ay it boots upon exit from Dracut. I did notice that the UUIDs from lvm lvdisplay and blkid are different. Could this be the cause of the problem? I did generate the intiramfs img various times. My volume is named volume-group-1 and I think having the the ?-? on the name is making things worse. Thank you for your reply. Paul From: Strahil Nikolov <hunter86_bg at yahoo.com> Sent: Tuesday, January 07, 2020 3:58 AM To: centos at centos.org; Paul Amaral <razor at meganet.net> Subject: Re: [CentOS] can't boot after volume rename Get a CentOS Install media , boot from it and select troubleshoot. Then mount your root LV, boot lv , /proc/, /sys, /dev & /run (last 4 with "bind" mount option). Then chroot into the root LV's mount point and then change grub menu and run "dracut -f --regenerate-all" last step is to reboot and test. Best Regards, Strahil Nikolov ? ??????????, 6 ?????? 2020 ?., 17:05:54 ?. ???????-5, Paul Amaral via CentOS <centos at centos.org <mailto:centos at centos.org> > ??????: I renamed my volume with vgrename however I didn't complete the other steps. Mainly update fstab and intiramfs. Once I booted, I was dropped on the Dracut shell. From here I can see the newly rename VG and I can lvm lvscan as well as activate it, lvm vgchange -ay. However I can't figure out what to do next, I'm assuming I need to regenerate the initramfs and then boot to change grub? Could someone point me in the right direction to recovering a FS from Dracut, or other means, once the volume group name was changed. TIA, Paul _______________________________________________ CentOS mailing list CentOS at centos.org <mailto:CentOS at centos.org> https://lists.centos.org/mailman/listinfo/centos
I actually renamed it back to the original vg name after I passed Dracut and regenerated the initramfa img and it did the trick. I guess it doesn?t like ?-? on volume group names. Thank you, Paul From: Paul Amaral <razor at meganet.net> Sent: Tuesday, January 07, 2020 12:45 PM To: 'Strahil Nikolov' <hunter86_bg at yahoo.com>; 'centos at centos.org' <centos at centos.org> Subject: RE: [CentOS] can't boot after volume rename Strahil, thanks for your reply, I ended up getting the server to boot under Dracut only, it?s still not booting from the boot menu. It goes to Dracut where it complaints it can?t find any of the lvms. However, when I do lvm vgchange -ay it boots upon exit from Dracut. I did notice that the UUIDs from lvm lvdisplay and blkid are different. Could this be the cause of the problem? I did generate the intiramfs img various times. My volume is named volume-group-1 and I think having the the ?-? on the name is making things worse. Thank you for your reply. Paul From: Strahil Nikolov <hunter86_bg at yahoo.com <mailto:hunter86_bg at yahoo.com> > Sent: Tuesday, January 07, 2020 3:58 AM To: centos at centos.org <mailto:centos at centos.org> ; Paul Amaral <razor at meganet.net <mailto:razor at meganet.net> > Subject: Re: [CentOS] can't boot after volume rename Get a CentOS Install media , boot from it and select troubleshoot. Then mount your root LV, boot lv , /proc/, /sys, /dev & /run (last 4 with "bind" mount option). Then chroot into the root LV's mount point and then change grub menu and run "dracut -f --regenerate-all" last step is to reboot and test. Best Regards, Strahil Nikolov ? ??????????, 6 ?????? 2020 ?., 17:05:54 ?. ???????-5, Paul Amaral via CentOS <centos at centos.org <mailto:centos at centos.org> > ??????: I renamed my volume with vgrename however I didn't complete the other steps. Mainly update fstab and intiramfs. Once I booted, I was dropped on the Dracut shell. From here I can see the newly rename VG and I can lvm lvscan as well as activate it, lvm vgchange -ay. However I can't figure out what to do next, I'm assuming I need to regenerate the initramfs and then boot to change grub? Could someone point me in the right direction to recovering a FS from Dracut, or other means, once the volume group name was changed. TIA, Paul _______________________________________________ CentOS mailing list CentOS at centos.org <mailto:CentOS at centos.org> https://lists.centos.org/mailman/listinfo/centos