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!