Proxmox upgrade from 2 to 3 grub issues

c0mputerking

Renowned Member
Oct 5, 2011
174
5
83
Hello all i did the upgrade using the upgrade script ... however on a not standard install as i originally installed from Debian 6 so i could use raid 1 ... everything worked well and i had one successful reboot but after running the script in purge mode it seemed to delete a bunch of important packages including grub

I think i have managed to put most of the necessary packages back but GRUB only boots to the "grub>" promt

Also there is some odd behavior with apt kept removing things like mdadm kvm2 the latest pve-29 kernel, and wanting to autoremove important things like below

Reading state information... DoneThe following packages will be REMOVED:
dtach efibootmgr gdisk grub-efi-amd64-bin hdparm libanyevent-http-perl
libanyevent-perl libicu48 librados2-perl libuuid-perl powermgmt-base
pve-manager spiceterm
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
Remv pve-manager [3.2-4]
Remv dtach [0.8-2.1]
Remv grub-efi-amd64-bin [1.99-27+deb7u2]
Remv efibootmgr [0.5.4-3]
Remv gdisk [0.8.5-1]
Remv hdparm [9.39-1+b1]
Remv libanyevent-http-perl [2.14-1]
Remv libanyevent-perl [7.010-1]
Remv libicu48 [4.8.1.1-12+deb7u1]
Remv librados2-perl [1.0-1]
Remv libuuid-perl [0.02-5]
Remv powermgmt-base [1.31]
Remv spiceterm [1.0-2]

Anyways now each time i reboot this machine i get the grub prompt and have to manually load the kernel like below

grub>set root=(md/1)
grub>linux /vmlinux-2.6.32.29-pve root=/dev/mapper/pve1-root ro
grub>initrd /initrd.img-2.6.32.29-pve
grub>configfile /config-2.6.32.29-pve root=/dev/mapper/pve1-root
grub>boot

I have tried several times to reinstall grub grub-update etc but nothing is working for me yet ... this machine is remote and i have to drive across town and take a keyboard and monitor with me each reboot arrg
 
hmmm i guess nobody else is having this issue?

Hello all i did the upgrade using the upgrade script ... however on a not standard install as i originally installed from Debian 6 so i could use raid 1 ... everything worked well and i had one successful reboot but after running the script in purge mode it seemed to delete a bunch of important packages including grub

I think i have managed to put most of the necessary packages back but GRUB only boots to the "grub>" promt

Also there is some odd behavior with apt kept removing things like mdadm kvm2 the latest pve-29 kernel, and wanting to autoremove important things like below

Reading state information... DoneThe following packages will be REMOVED:
dtach efibootmgr gdisk grub-efi-amd64-bin hdparm libanyevent-http-perl
libanyevent-perl libicu48 librados2-perl libuuid-perl powermgmt-base
pve-manager spiceterm
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
Remv pve-manager [3.2-4]
Remv dtach [0.8-2.1]
Remv grub-efi-amd64-bin [1.99-27+deb7u2]
Remv efibootmgr [0.5.4-3]
Remv gdisk [0.8.5-1]
Remv hdparm [9.39-1+b1]
Remv libanyevent-http-perl [2.14-1]
Remv libanyevent-perl [7.010-1]
Remv libicu48 [4.8.1.1-12+deb7u1]
Remv librados2-perl [1.0-1]
Remv libuuid-perl [0.02-5]
Remv powermgmt-base [1.31]
Remv spiceterm [1.0-2]

Anyways now each time i reboot this machine i get the grub prompt and have to manually load the kernel like below

grub>set root=(md/1)
grub>linux /vmlinux-2.6.32.29-pve root=/dev/mapper/pve1-root ro
grub>initrd /initrd.img-2.6.32.29-pve
grub>configfile /config-2.6.32.29-pve root=/dev/mapper/pve1-root
grub>boot

I have tried several times to reinstall grub grub-update etc but nothing is working for me yet ... this machine is remote and i have to drive across town and take a keyboard and monitor with me each reboot arrg
 
hmmm i guess nobody else is having this issue?

No. But I guess you should try to reinstall grub.
I noticed you have /boot on raid. Please do the following next time you onsite:


~# vim /etc/fstab
comment out UIID /boot

Code:
[/FONT][/COLOR][COLOR=#808080][FONT=Menlo]~# echo 'GRUB_DISABLE_LINUX_UUID=true' >> /etc/default/grub
[/FONT][/COLOR][COLOR=#808080][FONT=Menlo]~# echo 'GRUB_PRELOAD_MODULES="[COLOR=#222222]raid[/COLOR] dmraid"' >> /etc/default/grub
[/FONT][/COLOR][COLOR=#808080][FONT=Menlo]~# echo 'GRUB_TERMINAL=console' >> /etc/default/grub
[/FONT][/COLOR][COLOR=#808080][FONT=Menlo]~# echo raid1 >> /etc/modules
[/FONT][/COLOR][COLOR=#808080][FONT=Menlo]~# echo raid1 >> /etc/initramfs-tools/modules
[/FONT][/COLOR]


Reinstall grub:

Code:
# grub-install /dev/sda --recheck
Installation finished. No error reported.

# grub-install /dev/sdb --recheck
Installation finished. No error reported.

# update-grubGenerating grub.cfg 
...Found linux image: /boot/vmlinuz-2.6.32-29-pve
Found initrd image: /boot/initrd.img-2.6.32-29-pve
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
[COLOR=#4D7386]done

[/COLOR]# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-29-pve


Good luck.

PS:
http://www.lantronix.com/it-management/kvm-over-ip/spiderduo.html --Remote KVM $300


 
Last edited: