vCenter Converter failed - code 127 - RAID and LVM

Hello everyone.

We have two physical opensuse leap 42.1 servers with SAP running, and we need to p2v them. These servers uses two 146GB disks in RAID-1, and are configured through LVM, with three partitions plus swap, as listed bellow:

SAP1:/ # df -h
Filesystem         Size  Used Avail Use% Mounted on
devtmpfs           2.0G  8.0K  2.0G   1% /dev
tmpfs              2.0G   12K  2.0G   1% /dev/shm
tmpfs              2.0G  1.9M  2.0G   1% /run
tmpfs              2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/cciss/c0d0p4   59G   15G   43G  26% /
/dev/cciss/c0d0p3   70G   13G   57G  18% /usr
/dev/cciss/c0d0p4   59G   15G   43G  26% /.snapshots
/dev/cciss/c0d0p4   59G   15G   43G  26% /usr/local
/dev/cciss/c0d0p4   59G   15G   43G  26% /tmp
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/tmp
/dev/cciss/c0d0p4   59G   15G   43G  26% /srv
/dev/cciss/c0d0p4   59G   15G   43G  26% /opt
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/spool
/dev/cciss/c0d0p4   59G   15G   43G  26% /home
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/opt
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/log
/dev/cciss/c0d0p2  572M   34M  497M   7% /boot
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/pgsql
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/crash
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/named
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/mysql
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/mariadb
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/mailman
/dev/cciss/c0d0p4   59G   15G   43G  26% /var/lib/libvirt/images
/dev/cciss/c0d0p4   59G   15G   43G  26% /boot/grub2/x86_64-efi
/dev/cciss/c0d0p4   59G   15G   43G  26% /boot/grub2/i386-pc
SAP1:/ #
SAP1:/ # blkid
/dev/cciss/c0d0p1: UUID="a4aba881-1637-4909-9809-6b9f7884960d" TYPE="swap" PARTUUID="000c5da8-01"
/dev/cciss/c0d0p2: UUID="ee41ddf1-dcfd-4520-bdb5-2da5647ab336" TYPE="ext4" PTTYPE="dos" PARTUUID="000c5da8-02"
/dev/cciss/c0d0p3: UUID="873338a7-102f-479b-9c99-b972415bf9f4" UUID_SUB="7414c4d8-b0c8-4f9a-ae7a-8d51112c69cd" TYPE="btrfs" PARTUUID="000c5da8-03"
/dev/cciss/c0d0p4: LABEL="root_partition" UUID="66d9c957-3caa-4a84-8432-a85a3434cfad" UUID_SUB="0d1b8e67-9edc-4f2b-9dbc-9cdc259c93b0" TYPE="btrfs" PARTUUID="000c5da8-04"
/dev/cciss/c0d0: PTUUID="000c5da8" PTTYPE="dos"
SAP1:/ #

Running the converter, it stopped at 97% with the following status:

FAILED: An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 127, and message: FATAL: kernel too old Error running vmware-updateGrub.sh through chroot into /mnt/p2v-src-root /usr/lib/vmware-converter/installGrub.sh: line 147: /mnt/p2v-src-root:
Is a directory ’

Googling about, I found info stating that I should use the install media to rescue the system. I have try it with this article from opensuse docs.
https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.trouble.html#sec.trouble.data.recover.rescue.access

Specifically in the mount points, since I have a partitioning scheme, I have to mount the partitions as follow:
**/dev/sda4 at /mnt
/dev/sda3 at /mnt/usr
/dev/sda2 at /mnt/boot
**
The rest was done as the article with success, except for the mount -a, which return failed mount for the others UUID mounts.

After this, I followed with the next part of the article, the grub restore, and it was done until the command:

**grub2-mkconfig -o /boot/grub2/grub.cfg

**which return the error

/run/lvm/lvmetad.socket: connect failed: No such file or directoryWARNING: Failed to connect to lvmetad. Falling back to internal scanning.

I exited the chroot and umounted everything and reboot. It booted up, but, stuck at the follow screen
https://pdzpfq-dm2305.files.1drv.com/y4myX2VB0JvSGBnf6PqJQ6Pb1RPNIy2nWWMNv9Y1Fk2IeTYblwBqMBb0z603j7uz6_MJk7rLBW8s1IuzsPLbxOeQ0C3veY6SkS6NVbYu6B0OkEIkHYvfr__ZXkyccsR0ywjer4lOROUltyTcgHBR57hLljNaNPQ4bQU6uDt8OcsGEgyph5bjUrVDCndGa92WgGekmBAljZyFdDSTzuX7nQjQA/converter_error.png?psid=1

Any help will be very welcome.
Thanks!

There is no trace of LVM in output you provided. Only physical partitions are shown.

I exited the chroot and umounted everything and reboot. It booted up, but, stuck at the follow screen

You are past bootloader at this stage. Is device with UUID it tells about present? Boot rescue media and run blkid - do you see device with this UUID?

Like arvidjaar said, you need to check the blkid for the new UUID’s that changed when you ran vmware converter on the system.

Then you need to adjust /boot/grub2/grub.cfg and change --set=root to point to the new root FS UUID, as well as adjust /etc/fstab (on the target vm) to match the new UUIDs - or alternatively use sdaX

Hi! Thanks for your answers!

I’m a little rusty on troubleshooting Linux, worked the last two years working with network… About the LVM, my mystake.

This is how I did the rescue:
Right after the rescue login, follows the BLKID, the df -h, the mounts and the chroot.
https://ptzpfq-dm2305.files.1drv.com/y4p0uqSHtwXlAT0CX_YVScwQXIV47jgpw8uEB1J7mUvLgDSt62QTlLXslX2kD24jwUCetLPB0kVkrc6SmPplrVLzTd5n1RJMCmQrpDaEXS3ut1GO1jjbDupBGBsYMuwZgPgMmLFTjWA6NUqoJhTUHdtzZ99-yumGfKdM34Z5a0R6Z-NPS6K0GvUP8JREMvhcZf8mokwZaTjk3XDWaa6B-p0JQ/converter_error1.png?psid=1

Now, after the CHROOT, I ran the BLKID and the df -h again:
https://o9zpfq-dm2305.files.1drv.com/y4p2Wl5hwm_DOOYO2le5KQtW1TolXWk0fU5X2xvWIIdzob2jX9nWTvDhqOLT-oFyzjj94w5yT-BDd6oYHKgsV0tCWB-hOiJj1FY74uadZcfPp5WfNIhr3kjWFmCQbJIeKvti2g9KWduGDeXc-VKQDNjb_3dpkFryq_lljE48EycgskyRt4kC3Sqs2cPDUAtIsRy3vs1A3_zqkkdbp8OuOZs4Q/converter_error2.png?psid=1

Here are the contents of the /etc/fstab
https://pnzpfq-dm2305.files.1drv.com/y4pW-JufdXxZ2tUTFHyqNfylb-JWIrtamlu_MOTzEBnkk9KYnK2umQyTmb-sKBvQOUw7R-7FOenJeouqnG2S5IWtSCCmotA-Fybe9ZE30RLSWd7_-ghrH8UqN7BCdpBgBEqWDRToedLzh660t1KouWnE29hqCIGmtllONFkxJDTGns3mcwJd-ep-8boPrbV30PlBJQQARbKd1FelsLsfTpqtQ/converter_error3.png?psid=1

And here are the results of the grub2-install and grub2-mkconfig
https://sdzpfq-dm2305.files.1drv.com/y4pn4ys5IfEA-T-T155l_DsfykSrsJNpJMY-BH5VG-yI2DgFM5mePMnaKoYg65_uIQ3x9p2dULEVbZBOUC4d_2UfsQRkJvq64-Bp8sKJ78PsYaQ8Gux-1OW2LKGfUG8XEQDU3zHWrjJbvYv4KumTGh3NW8wK2LsQYllZREt3SYoHaBRx4n2BtnWUtoNXwlFWwp6zBpqDZVckK69OGXuIwpmDA/converter_error4.png?psid=1

@Miuku

  • I checked the /boot/grub2/grub.cfg and in there the UUIDs are corrected assigned to the new UUIDs showed in the blkid.
    So, now I must manually change it on the /etc/fstab? Can I just remove them letting only the actual partitions mapped? ? BTW, why this is configured this way, with so many points?

Thank you guys very much.

Recommendation when posting images…

  1. If you’re going to deploy from your own Cloud service, then configure public access (ie no password)
    or
  2. You can upload to another service or even openSUSE.

To upload to openSUSE,

  1. Login to these Forums.
  2. Create a personal Wiki page, you can follow the simple instructions in the link porvided by my Signature
  3. In the far left navigation pane, click on the “upload file” link
  4. Follow the instructions, when complete a thumbnail of your image is displayed with the link to the image
  5. Use the link in your Forum post.

TSU

I did today the same way that I did yesterday, don’t know why it didn’t worked. I’ve tried to edit and correct the post, but it isn’t allowing anymore. So, I’m reposting.

Right after the rescue login, follows the BLKID, the df -h, the mounts and the chroot.


Now, after the CHROOT, I ran the BLKID and the df -h again:

Here are the contents of the /etc/fstab

And here are the results of the grub2-install and grub2-mkconfig

@tsu2
thanks for the tips, I’ll look into it.

@Miuku

  • I checked the /boot/grub2/grub.cfg and in there the UUIDs are corrected assigned to the new UUIDs showed in the blkid.
    So, now I must manually change it on the /etc/fstab? Can I just remove them letting only the actual partitions mapped? ? BTW, why this is configured this way, with so many points?

Thank you guys very much.

[QUOTE=theles;2827965]

I checked the /boot/grub2/grub.cfg and in there the UUIDs are corrected assigned to the new UUIDs showed in the blkid.

Please upload your grub.cfg to http://susepaste.org/ and add link here.

So, now I must manually change it on the /etc/fstab?

You absolutely must change /etc/fstab and run mkinitrd to rebuild initrd after that. Your problem so far is before system tries to use (wrong) fstab, but information from it may be put in initrd and cause problems.

[quote="“arvidjaar,post:7,topic:126339”]

follows the grub.cfg - SUSE Paste

## DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#


### BEGIN /etc/grub.d/00_header ###
if  -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif  -s $prefix/grubenv ]; then
  load_env
fi


if  "${env_block}" ] ; then
  load_env -f "${env_block}"
fi


if  "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if  "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   set boot_once=true
else
   set default="${saved_entry}"
fi


if  x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi


export menuentry_id_option


if  "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi


function savedefault {
  if  -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}


function load_video {
  if  x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}


if  x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos 
insmod ext2
set root='hd0,msdos3'
if  x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  a3b48686-9add-4824-8a70-bfc5fbecb7d4
else
  search --no-floppy --fs-uuid --set=root a3b48686-9add-4824-8a70-bfc5fbecb7d4
fi
    font="/share/grub2/unicode.pf2"
fi


if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=POSIX
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos 
insmod ext2
set root='hd0,msdos2'
if  x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
else
  search --no-floppy --fs-uuid --set=root 16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
fi
insmod gfxmenu
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/grub2/themes/openSUSE/theme.txt
export theme
if  x${boot_once} = xtrue ]; then
  set timeout=0
elif  x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
### END /etc/grub.d/00_header ###


### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###


### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 42.1'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6814a062-66c0-4381-9fe0-ab41a66b4a4c' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos 
    insmod ext2
    set root='hd0,msdos2'
    if  x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
    else
      search --no-floppy --fs-uuid --set=root 16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
    fi
    echo    'Loading Linux 4.1.12-1-default ...'
    linux    /vmlinuz-4.1.12-1-default root=UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c  resume=/dev/cciss/c0d0p1 splash=silent quiet showopts
    echo    'Loading initial ramdisk ...'
    initrd    /initrd-4.1.12-1-default
}
submenu 'Advanced options for openSUSE Leap 42.1' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-6814a062-66c0-4381-9fe0-ab41a66b4a4c' {
    menuentry 'openSUSE Leap 42.1, with Linux 4.1.12-1-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.12-1-default-advanced-6814a062-66c0-4381-9fe0-ab41a66b4a4c' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos 
        insmod ext2
        set root='hd0,msdos2'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
        else
          search --no-floppy --fs-uuid --set=root 16fbb53e-6b84-4b5a-ab2e-71e91bb0704e
        fi
        echo    'Loading Linux 4.1.12-1-default ...'
        linux    /vmlinuz-4.1.12-1-default root=UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c  resume=/dev/cciss/c0d0p1 splash=silent quiet showopts
        echo    'Loading initial ramdisk ...'
        initrd    /initrd-4.1.12-1-default
    }
}


### END /etc/grub.d/10_linux ###


### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###


### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###


### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###


### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###


### BEGIN /etc/grub.d/41_custom ###
if  -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif  -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
### END /etc/grub.d/80_suse_btrfs_snapshot ###


### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###



Here is the output of the blkid command:


/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="squashfs" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: TYPE="squashfs" 
/dev/loop4: TYPE="squashfs" 
/dev/sda1: UUID="59b620ec-fb0d-40ab-a8b8-1951c1ed52b9" TYPE="swap" PARTUUID="1c14d8a9-01" 
/dev/sda2: UUID="16fbb53e-6b84-4b5a-ab2e-71e91bb0704e" TYPE="ext4" PARTUUID="1c14d8a9-02" 
/dev/sda3: UUID="a3b48686-9add-4824-8a70-bfc5fbecb7d4" TYPE="ext4" PARTUUID="1c14d8a9-03" 
/dev/sda4: UUID="6814a062-66c0-4381-9fe0-ab41a66b4a4c" TYPE="ext4" PARTUUID="1c14d8a9-04" 

Also, here’s the actual content of the /etc/fstab, in which I have already updated the UUIDs


UUID=a4aba881-1637-4909-9809-6b9f7884960d swap swap defaults 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad / btrfs defaults 0 0
UUID=ee41ddf1-dcfd-4520-bdb5-2da5647ab336 /boot                ext4       acl,user_xattr        1 2
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /home btrfs subvol=@/home 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /opt btrfs subvol=@/opt 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /srv btrfs subvol=@/srv 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /tmp btrfs subvol=@/tmp 0 0
UUID=873338a7-102f-479b-9c99-b972415bf9f4 /usr                 btrfs      defaults              0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /usr/local btrfs subvol=@/usr/local 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/crash btrfs subvol=@/var/crash 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/log btrfs subvol=@/var/log 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/opt btrfs subvol=@/var/opt 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/spool btrfs subvol=@/var/spool 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /.snapshots btrfs subvol=@/.snapshots 0 0


I have executed the mkinitrd, results follow, I don’t know if this is a problem or not, this is the first time that I run this:



After this, I ran in order:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

  • exited from chroot
    umount -a
    reboot

result:


Thanks!

Sorry, I posted the wrong /etc/fstab, but, the procedures executed before, were made using this file. This is the content of the file that is actually configured on the system:


UUID=59b620ec-fb0d-40ab-a8b8-1951c1ed52b9 swap swap defaults 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c / btrfs defaults 0 0
UUID=16fbb53e-6b84-4b5a-ab2e-71e91bb0704e /boot                ext4       acl,user_xattr        1 2
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /home btrfs subvol=@/home 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /opt btrfs subvol=@/opt 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /srv btrfs subvol=@/srv 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /tmp btrfs subvol=@/tmp 0 0
UUID=a3b48686-9add-4824-8a70-bfc5fbecb7d4 /usr                 btrfs      defaults              0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /usr/local btrfs subvol=@/usr/local 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/crash btrfs subvol=@/var/crash 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/log btrfs subvol=@/var/log 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/opt btrfs subvol=@/var/opt 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/spool btrfs subvol=@/var/spool 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c /.snapshots btrfs subvol=@/.snapshots 0 0

https://p9a0oa-dm2305.files.1drv.com/y4m2juGK3fNzZO5nJe4j76aRhTXQXoSAsa4KPviMJyaQHcVrzJW6FfDQOhjOjeFxuSFsTruXT7S-4qpQ6-e0hn3W1RbJ2WA37GqweV70RdjBLTDeYT9K4LMK-1ZFdv-yAov1jLSla9pcnOfBCPvpF6CESl9eBLB5z3vLjloPUq8T6i4OQlpp7iI_WNItqR-SJLtaVtvpJ_DsQOTeHECUUvtPA/converter_error8-fstab_atual.png?psid=1

resume parameter is likely wrong - as I understand you do not have any SmartArray anymore. For testing edit kernel command line in grub menu and replace “resume=/dev/cciss/c0d0p1” with “noresume”.

First of all, thanks for your time and help.

The value that you mentioned appears in two lines, and I change it on both. It went a little bit more far…but stopped with a different message. BTW, after modify the lines, I executed again the grub2-mkconfig and it restored the lines back to the file. So, after I change the lines again, I just executed the grub2-install /dev/sda

Well… It is working!! YeY!!!

Googling about the message:
Boot has failed. To debug this issue add “rd.shell rd.debug” to the kernel command line.

I found this community topic: http://opensuse.14.x6.nabble.com/system-not-booting-tp5056053p5056056.html

There, the user Stanislav Baiduzhyi-2 mention a situation where he have a corrupted cache and suggested to add clear_cache to mount options. I ran the command:
mount -t btrfs -o clear_cache /dev/sda4 /mnt
And got the following result:
https://pda0oa-dm2305.files.1drv.com/y4mBanlcPEVaOUmORNZCCJJH4PIrZPRuOh9s2iH1ZmoksNZur09ONMCZfsjfer27ZuxnIEv0A_wT6JJHSayrpSlJXmd-gQ6hLz1kFfHGBO9x6A5ao2DLIal8RghGnqwrUs5IDtDAqgO-SCuRZFgp-BzH691sE4l3-DfOwJ38P15ZcdFsCgUA9Bsfjj5JuKS2o4pp2H-qIgCgjcx0XJOAlZgIg/converter_error10.png?psid=1

It looks like some configuration was lingering, pointing to RAID, so, I’ve edited the /etc/fstab again, and replaced all the btrfs entries to ext4, re-executed the mkinitrd, and all the grub commands. Umounted, rebooted, and it worked!

Since I have another server in the same situation, I’ll redo everything in order to certify this, and then I’ll post it.

Thanks guys!

Hi there!

Yesterday, I confirmed that the procedure worked. I was able to virtualize my second server successfully using the same steps.

Just a little background, the virtualization failed at 97%, right after the grub install.

1 - Booted up the VM with the iso in Rescue mode, and logon as root(no pass)
2 - Identify the partitions and mount the root partition " / " on /mnt
3 - Mount the other existing partitions on the subsequent folders, like if /home was mounted in** /dev/sda3**, then, mount /dev/sda3 /mnt/home
4 - Mount the rest and chroot as follow:

mount --rbind /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
chroot /mnt

5 - run blkid and take note the new UUIDs of the partitions.


**Output of blkid**
/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="squashfs" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: TYPE="squashfs" 
/dev/loop4: TYPE="squashfs" 
/dev/sda1: UUID="59b620ec-fb0d-40ab-a8b8-1951c1ed52b9" TYPE="swap" PARTUUID="1c14d8a9-01" 
/dev/sda2: UUID="16fbb53e-6b84-4b5a-ab2e-71e91bb0704e" TYPE="ext4" PARTUUID="1c14d8a9-02" - boot partition
/dev/sda3: UUID="a3b48686-9add-4824-8a70-bfc5fbecb7d4" TYPE="ext4" PARTUUID="1c14d8a9-03" - usr partition
/dev/sda4: UUID="6814a062-66c0-4381-9fe0-ab41a66b4a4c" TYPE="ext4" PARTUUID="1c14d8a9-04" - root partition

6 - Update the /etc/fstab, and, if it was created as btrfs, remove the aditional mount point lines and replace the btrfs with the TYPE detected on the blkid, which in my case was ext4:


**Content of the old /etc/fstab**
UUID=a4aba881-1637-4909-9809-6b9f7884960d swap swap defaults 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad / btrfs defaults 0 0
UUID=ee41ddf1-dcfd-4520-bdb5-2da5647ab336 /boot                ext4       acl,user_xattr        1 2
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /home btrfs subvol=@/home 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /opt btrfs subvol=@/opt 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /srv btrfs subvol=@/srv 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /tmp btrfs subvol=@/tmp 0 0
UUID=873338a7-102f-479b-9c99-b972415bf9f4 /usr                 btrfs      defaults              0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /usr/local btrfs subvol=@/usr/local 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/crash btrfs subvol=@/var/crash 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/log btrfs subvol=@/var/log 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/opt btrfs subvol=@/var/opt 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/spool btrfs subvol=@/var/spool 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=66d9c957-3caa-4a84-8432-a85a3434cfad /.snapshots btrfs subvol=@/.snapshots 0 0

**content of updated /etc/fstab**
UUID=59b620ec-fb0d-40ab-a8b8-1951c1ed52b9 swap swap defaults 0 0
UUID=6814a062-66c0-4381-9fe0-ab41a66b4a4c / ext4 defaults 0 0
UUID=16fbb53e-6b84-4b5a-ab2e-71e91bb0704e /boot                ext4       acl,user_xattr        1 2
UUID=a3b48686-9add-4824-8a70-bfc5fbecb7d4 /usr                 ext4      defaults              0 0

7 - After this, I ran in order:
mkinitrd
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

  • exited from chroot
    umount -a
    reboot
    OBS: If your disk is GPT, after the grub2-install you might get a message informing that it could not install on it, yada yada yada… In this case, you must create a BIOS partition. I use cgdisk in order to do so.
    #cgdisk /dev/sda
  • in my case, I excluded the swap, and created a new partition, of 5MB using the code ef02, my config:
wdprd:~ # cgdisk /dev/sda
                                cgdisk 0.8.8


                            Disk Drive: /dev/sda
                         Size: 286676992, 136.7 GiB


Part. #     Size        Partition Type            Partition Name
----------------------------------------------------------------
            47.0 KiB    free space
   1        5.0 MiB     BIOS boot partition       bios
   5        8.0 GiB     Linux swap                swap
   2        70.0 GiB    Linux filesystem          usr
   3        58.0 GiB    Linux filesystem          raiz
   4        720.0 MiB   Linux filesystem          boot
            943.5 KiB   free space

At this point the machine should boot up successfully. If it stop saying that the boot failed, reboot in rescue mode again, remount everything and double check UUIDs in the fstab.

8 - You also MUST check if the the /home has being copied with full content. In one of the servers, it wasn’t. So, I went back on the physical machine and:
server:confused: # tar -zcvf home.tar.gz /home
copy the file to the vm and unzip it overwriting the /home

That’s all folks! Thanks for all the help!