tomh0665 at gmail.com
Wed Apr 10 23:09:37 UTC 2013
On Wed, Apr 10, 2013 at 3:40 PM, Alan McKay <alan.mckay at gmail.com> wrote:
> So I wanted to resize my root LVM which requires a reboot into a LIve CD.
> All went well - and while I was in there I wanted to rename it too
> since now that I've decided to use this machine for virtualization it
> makes sense to have the LV's named with the name of the domX in the
> name. So I renamed it from LogVol01 to Dom0LV01
> And I followed these instructions to update grub :
> sudo mount --bind /dev /mnt/dev
> sudo mount --bind /sys /mnt/sys
> sudo mount --bind /proc /mnt/proc
> sudo mount /dev/sdaX /mnt/boot
> sudo chroot /mnt
> sudo update-grub
> In my case it is not sdaX it is an mdadm RAID1. No biggie. It
> worked. I verified that /mnt/dom0root/boot/grub/grub.cfg had all
> references to the new names. Great. Reboot and grub complains about
> the old names. Can't boot.
> So I boot the Live CD again and verify it all and the new names are
> there! WTF?
> The only thing I can think of is that grub still has the old info on
> one or both of the physical drives in the RAID1 in addition to on the
> md device or something like that.
> Any other ideas?
> I know I could always just go rename my LVs back to what they were but
> I want to figure this out.
Rebuild the initramfs.
More information about the ubuntu-users