Restore from Backup
Re: Restore from Backup
OK, I modified the /boot/grub/grub.confi file like you suggested. saved and rebooted. I got this first screen. I choose the zimbra option from the boot menu... Then got the error...
- Attachments
-
- Brub_boot_screen.jpg (113.98 KiB) Viewed 18227 times
- JDunphy
- Outstanding Member
- Posts: 901
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: Restore from Backup
I was thinking that because the old default was the 2.6 kernel you would add that also... so you would have 3 entries in your /boot/grub/grub.conf:
To recap... we have 1 disk with 2 partitions. The 2nd partition was created at the file copy level and is the concatenation of various partitions and was previously another computer. We commented out 3 lines form /home/etc/fstab as those partitions appear to be included in /home (the second partition) in this VM. Next we added 2 kernels to the /boot/grub/grub.conf and specified the disk to use is the second partition and where our root is for this computer. Note: we are using the /boot/grub/grub.conf from the first partition to make this work. That is why we are changing /boot/grub/grub.conf and not /home/boot/grub/grub.conf
Code: Select all
# resecue kernel and default
title CentOS 6 (2.6.32-504.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg_zimbra-lv_root rd_NO_LUKS rd_LVM_LV=vg_zimbra/lv_root LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_zimbra/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-504.el6.x86_64.img
# first choice for the zimbra disk (old default configuration on other computer)
title Zimbra CentOS (2.6.32-504.12.2.el6.centos.plus.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.32-504.12.2.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-504.12.2.el6.centos.plus.x86_64.img
# Second choice for the zimbra disk
title Zimbra-2 CentOS (3.19.0-1.el6.elrepo.x86_64)
root (hd0,1)
kernel /vmlinuz-3.19.0-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.19.0-1.el6.elrepo.x86_64.img
- JDunphy
- Outstanding Member
- Posts: 901
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: Restore from Backup
Cool... getting closer. First read the other post I just sent about using the default kernel you previously had. I will double check the settings and you double check you cut/paste and didn't truncate or create partial lines. Those are 4 lines per entry for kernel in grub.conf
Re: Restore from Backup
Hello Jim, Hope you had a great weekend.... OK, so picking up where we left off... we added two kernels lines from the /home/boot/grub/grub.conf on the second partition to the /boot/grub/grub.conf on the first partition of the virtual machine. since that failed. you wanted me to add more kernal lines.. correct? Here is the entire grub.config from the /home/boot/grub/grub.conf. shall I add all the kernels shown in RED ?
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_mail-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS (2.6.32-504.12.2.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.12.2.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-504.12.2.el6.centos.plus.x86_64.img
title CentOS (3.19.0-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.19.0-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.19.0-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-504.8.1.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.8.1.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-504.8.1.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.29.2.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.29.2.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.29.2.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.23.3.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.23.3.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.23.3.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.5.1.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.5.1.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.5.1.el6.centos.plus.x86_64.img
title CentOS (3.13.1-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.13.1-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.13.1-1.el6.elrepo.x86_64.img
title CentOS (3.12.5-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.12.5-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.12.5-1.el6.elrepo.x86_64.img
title CentOS (3.10.10-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.10.10-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.10.10-1.el6.elrepo.x86_64.img
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_mail-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS (2.6.32-504.12.2.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.12.2.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-504.12.2.el6.centos.plus.x86_64.img
title CentOS (3.19.0-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.19.0-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.19.0-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-504.8.1.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.8.1.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-504.8.1.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.29.2.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.29.2.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.29.2.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.23.3.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.23.3.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.23.3.el6.centos.plus.x86_64.img
title CentOS (2.6.32-431.5.1.el6.centos.plus.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.5.1.el6.centos.plus.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.5.1.el6.centos.plus.x86_64.img
title CentOS (3.13.1-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.13.1-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.13.1-1.el6.elrepo.x86_64.img
title CentOS (3.12.5-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.12.5-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.12.5-1.el6.elrepo.x86_64.img
title CentOS (3.10.10-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.10.10-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_mail2-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mail2/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.10.10-1.el6.elrepo.x86_64.img
Re: Restore from Backup
anymore advise? am I just out of luck with this restore?