SLES VMware VM fail to bootup after restored from Veritas NetBackup
This document (7018082) is provided subject to the disclaimer at the end of this document.
Warning: /dev/disk/by-uuid/df820f18-f922-477a-b6c8-1e69e8139d95 does not exist
Warning: Boot has failed. To debug this issue add "rd.shell rd.debug" to the kernel command line.
This is a Veritas NetBackup issue. A workaround is to boot the restored VM in Rescue Mode and reconfigure the swap partition.
The following is an outline of the workaround.
Perform a Chroot Installed System (CIS) Procedure to find out the UUID of the swap partition in "/etc/fstab" so that we can reconfigure the swap partition.
1. Boot the VM from the SLES installation DVD.
2. Select Rescue System.
Type "root" at the Rescue login prompt.
3. Determine the device that contains the root / partition so that we can see "/etc/fstab".
Use "cat /proc/partitions" or "parted -l" commands to help you list all the devices.
For example, to check whether the root partition is in "/dev/sda2":
# mount /dev/sda2 /mnt
# ls -l /mnt
If the directories "/mnt/etc" and "/mnt/root" are listed, then "/dev/sda2" is the root partition.
If it is not the root partition, then unmount it:
# umount /mnt
Repeat these steps for each partition until you found the root.
4. Mount the root partition to "/mnt":
# mount /dev/sda2 /mnt
5. Rebind the "/proc", "/sys" and "/dev" filesystems:
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# mount --rbind /dev /mnt/dev
6. Chroot to the mounted root file system and mount all the remaining file systems:
# chroot /mnt
# mount -a
7. Find out the UUID of the swap partition using "more /etc/fstab" command.
UUID=df820f18-f922-477a-b6c8-1e69e8139d95 swap swap defaults 0 0
6. Determine the swap partition from "fdisk -l" or "parted -l" command:
Note that a swap partition has type Id of 82.
For example, lets assume the swap partition is in "/dev/sda1".
7. Setup swap partition using the same swap partition UUID as in "/etc/fstab":
# mkswap -U df820f18-f922-477a-b6c8-1e69e8139d95 /dev/sda1
8. Enable swap on the swap partition:
# swapon /dev/sda1
9. Unmount and exit:
# umount -a
10. Restart the VM.
The restored VM should be able to bootup successfully.
This is a known issue as documented in the following Veritas article "Linux swap partition is disabled after VMware Virtual Machine restore":
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018082
- Creation Date: 20-Sep-2016
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com