RedHat5 Colume group "VolGroup01" not found
Hi everyone,
i am trying to virtualize my client's RedHat 5 server; physical to virtual. i used CloneZilla, to clone the disk. once cloned, i restored it to a virtualbox VM to test; afterwards it will be restored to an ESXi server. i hit a snag, the VM is not booting. i need some guidance on how to proceed. i'm getting: Volume group "VolGroup01" not found unable to access resume device (/dev/volgroup01/logvol01) mount: could not find filesystem '/dev/root' setuproot: moving /dev failed: no such file or directory setuproot: error mounting /proc: no such file or directory setuproot: error mounting /sys: no such file or directory switchroot: mount failed: no such file or directory kernel panic - not syncing: attempting to kill init! |
Most likely is that the physical disks are being presented in a different manner, for example in Citrix XenServer the disk devices nodes appear as /dev/xvd* instead of /dev/sd*
For a physical server the disk may even be further abstracted, for example if it's a hardware RAID controller with specific device drivers. So from the limited information you've given, it's impossible to say exactly what the problem is. |
Well it booted ok (in the strict sense), but looks your initrd isn't setting things up properly. Simple attempt for a resolution would be to boot a liveCD/rescue system in the vm then chroot into the cloned system. Make sure everything needed is there (especially pv's, vgs, lvs), then rebuild the initrd.
|
3 Attachment(s)
i ran the Boot-repair tool and it created the log below.
hope it helps. i have also included some screen shots. --------------------------------------------------------------------------------- Boot Info Script 8f991e4 + Boot-Repair extra info [Boot-Info 25oct2017] ============================= Boot Info Summary: =============================== => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the same drive in partition #1 for /grub/stage2 and /grub/grub.conf. sda1: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Boot files: /grub/menu.lst /grub/grub.conf sda2: __________________________________________________________________________ File system: LVM2_member Boot sector type: - Boot sector info: VolGroup01-LogVol00: ___________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Red Hat Enterprise Linux Server release 5.4 (Tikanga) Boot files: /etc/fstab VolGroup01-LogVol01: ___________________________________________________________ File system: swap Boot sector type: - Boot sector info: ============================ Drive/Partition Info: ============================= Drive: sda _____________________________________________________________________ Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Partition Boot Start Sector End Sector # of Sectors Id System /dev/sda1 * 63 208,844 208,782 83 Linux /dev/sda2 208,845 570,307,499 570,098,655 8e Linux LVM "blkid" output: ________________________________________________________________ Device UUID TYPE LABEL /dev/loop0 squashfs /dev/mapper/VolGroup01-LogVol00 d8a8d119-e451-4495-b381-99a894cbc3c0 ext3 /dev/mapper/VolGroup01-LogVol01 2a2d11d0-39ca-4b0e-9f53-496596138728 swap /dev/sda1 4dc091be-30c4-4843-8a52-d50d6ee93eea ext3 /boot /dev/sda2 R1AYQI-xxzv-AVQp-vKk4-Px8e-KYJC-vcsLnS LVM2_member /dev/sr0 2017-10-29-00-56-18-00 iso9660 Boot-Repair-Disk 64bit /dev/zram0 e289bdaa-6edc-4ef3-94f8-4f910ce5bcc9 swap ========================= "ls -l /dev/disk/by-id" output: ====================== total 0 lrwxrwxrwx 1 root root 9 Jan 9 03:17 ata-VBOX_CD-ROM_VB2-01700376 -> ../../sr0 lrwxrwxrwx 1 root root 9 Jan 9 03:17 ata-VBOX_HARDDISK_VB78455694-e136b7ec -> ../../sda lrwxrwxrwx 1 root root 10 Jan 9 03:17 ata-VBOX_HARDDISK_VB78455694-e136b7ec-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 9 03:17 ata-VBOX_HARDDISK_VB78455694-e136b7ec-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 9 03:17 dm-name-VolGroup01-LogVol00 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jan 9 03:17 dm-name-VolGroup01-LogVol01 -> ../../dm-1 lrwxrwxrwx 1 root root 10 Jan 9 03:17 dm-uuid-LVM-e5pQoaE1afgdeUx0bvTUbR1g4efgLmPtDDUXWlOPCt3qhpJ0fD0a2hLXU3CHEshx -> ../../dm-1 lrwxrwxrwx 1 root root 10 Jan 9 03:17 dm-uuid-LVM-e5pQoaE1afgdeUx0bvTUbR1g4efgLmPtmExwaxftW0ikh01eEsJG90ZnbnY4K38y -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jan 9 03:17 lvm-pv-uuid-R1AYQI-xxzv-AVQp-vKk4-Px8e-KYJC-vcsLnS -> ../../sda2 ========================= "ls -R /dev/mapper/" output: ========================= /dev/mapper: VolGroup01-LogVol00 VolGroup01-LogVol01 control ================================ Mount points: ================================= Device Mount_Point Type Options /dev/loop0 /rofs squashfs (ro,noatime) /dev/sr0 /cdrom iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048) ============================= sda1/grub/grub.conf: ============================= -------------------------------------------------------------------------------- # 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/VolGroup01/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-164.el5) root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup01/LogVol00 rhgb quiet initrd /initrd-2.6.18-164.el5.img -------------------------------------------------------------------------------- =================== sda1: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) 0.023989201 = 0.025758208 grub/menu.lst 1 0.023989201 = 0.025758208 grub/grub.conf 1 0.027390003 = 0.029409792 grub/stage2 4 0.009043217 = 0.009710080 vmlinuz-2.6.18-164.el5 10 0.012238026 = 0.013140480 initrd-2.6.18-164.el5.img 15 ======================== VolGroup01-LogVol00/etc/fstab: ======================== -------------------------------------------------------------------------------- /dev/VolGroup01/LogVol00 / ext3 defaults 1 1 #LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup01/LogVol01 swap swap defaults 0 0 /dev/sdb1 /backup ext3 defaults 0 0 UUID=4dc091be-30c4-4843-8a52-d50d6ee93eea /boot ext3 defaults 0 2 -------------------------------------------------------------------------------- =============================== StdErr Messages: =============================== File descriptor 8 (/proc/13614/mountinfo) leaked on lvs invocation. Parent PID 21227: bash File descriptor 63 (pipe:[99385]) leaked on lvs invocation. Parent PID 21227: bash File descriptor 8 (/proc/13614/mountinfo) leaked on lvchange invocation. Parent PID 21518: bash File descriptor 63 (pipe:[99385]) leaked on lvchange invocation. Parent PID 21518: bash File descriptor 8 (/proc/13614/mountinfo) leaked on lvchange invocation. Parent PID 21518: bash File descriptor 63 (pipe:[99385]) leaked on lvchange invocation. Parent PID 21518: bash ADDITIONAL INFORMATION : =================== log of boot-info 20180109_0317 =================== boot-info version : 4ppa65 boot-sav version : 4ppa65 boot-sav-extra version : 4ppa65 glade2script version : 3.2.3~ppa4 BLKID BEFORE LVM ACTIVATION: /dev/sda1: LABEL="/boot" UUID="4dc091be-30c4-4843-8a52-d50d6ee93eea" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="0004fde0-01" /dev/sr0: UUID="2017-10-29-00-56-18-00" LABEL="Boot-Repair-Disk 64bit" TYPE="iso9660" PTUUID="6b8b4567" PTTYPE="dos" /dev/loop0: TYPE="squashfs" /dev/sda2: UUID="R1AYQI-xxzv-AVQp-vKk4-Px8e-KYJC-vcsLnS" TYPE="LVM2_member" PARTUUID="0004fde0-02" /dev/zram0: UUID="e289bdaa-6edc-4ef3-94f8-4f910ce5bcc9" TYPE="swap" /dev/mapper/VolGroup01-LogVol00: UUID="d8a8d119-e451-4495-b381-99a894cbc3c0" SEC_TYPE="ext2" TYPE="ext3" /dev/mapper/VolGroup01-LogVol01: UUID="2a2d11d0-39ca-4b0e-9f53-496596138728" TYPE="swap" MODPROBE VGSCAN File descriptor 8 (/proc/13614/mountinfo) leaked on vgscan invocation. Parent PID 13625: /bin/bash Reading volume groups from cache. Found volume group "VolGroup01" using metadata type lvm2 VGCHANGE File descriptor 8 (/proc/13614/mountinfo) leaked on vgchange invocation. Parent PID 13625: /bin/bash 2 logical volume(s) in volume group "VolGroup01" now active File descriptor 8 (/proc/13614/mountinfo) leaked on lvscan invocation. Parent PID 13625: /bin/bash LVSCAN: ACTIVE '/dev/VolGroup01/LogVol00' [262.09 GiB] inherit ACTIVE '/dev/VolGroup01/LogVol01' [9.72 GiB] inherit ** (zenity:14962): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. Is there RAID on this computer? no File descriptor 8 (/proc/13614/mountinfo) leaked on lvs invocation. Parent PID 15290: /bin/sh File descriptor 8 (/proc/13614/mountinfo) leaked on vgs invocation. Parent PID 15389: grub-probe File descriptor 8 (/proc/13614/mountinfo) leaked on vgs invocation. Parent PID 15389: grub-probe Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only. Error: Invalid partition table - recursive partition on /dev/sr0. boot-info is executed in live-session (Boot-Repair-Disk 64bit 1oct2017, zesty, Ubuntu, x86_64) CPU op-mode(s): 32-bit, 64-bit file=/cdrom/preseed/lubuntu.seed boot=casper initrd=/casper/initrd.lz noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal -- ls: cannot access '/home/usr/.config': No such file or directory Set sda as corresponding disk of mapper/VolGroup01-LogVol00 =================== os-prober: /dev/mapper/VolGroup01-LogVol00:Red Hat Enterprise Linux Server release 5.4 (Tikanga):RedHat:linux =================== blkid: /dev/sda1: LABEL="/boot" UUID="4dc091be-30c4-4843-8a52-d50d6ee93eea" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="0004fde0-01" /dev/sr0: UUID="2017-10-29-00-56-18-00" LABEL="Boot-Repair-Disk 64bit" TYPE="iso9660" PTUUID="6b8b4567" PTTYPE="dos" /dev/loop0: TYPE="squashfs" /dev/sda2: UUID="R1AYQI-xxzv-AVQp-vKk4-Px8e-KYJC-vcsLnS" TYPE="LVM2_member" PARTUUID="0004fde0-02" /dev/zram0: UUID="e289bdaa-6edc-4ef3-94f8-4f910ce5bcc9" TYPE="swap" /dev/mapper/VolGroup01-LogVol00: UUID="d8a8d119-e451-4495-b381-99a894cbc3c0" SEC_TYPE="ext2" TYPE="ext3" /dev/mapper/VolGroup01-LogVol01: UUID="2a2d11d0-39ca-4b0e-9f53-496596138728" TYPE="swap" Set sda as corresponding disk of mapper/VolGroup01-LogVol00 1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS. /mnt/boot-sav/sda1/grub/menu.lst detected /boot detected in the fstab of mapper/VolGroup01-LogVol00: UUID=4dc091be-30c4-4843-8a52-d50d6ee93eea (sda1) =================== UEFI/Legacy mode: This live-session is not in EFI-mode. SecureBoot maybe enabled. =================== PARTITIONS & DISKS: sda1 : sda, is-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda1. mapper/VolGroup01-LogVol00 : sda, not-sepboot, no-grubenv grub1, grub1 , no-update-grub, 64, no-boot, is-os, not--efi--part, fstab-has-goodBOOT, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, yum, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/mapper/VolGroup01-LogVol00. sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, not-mmc, has-os, 63 sectors * 512 bytes =================== parted -lm: BYT; /dev/sda:322GB:scsi:512:512:msdos:ATA VBOX HARDDISK:; 1:32.3kB:107MB:107MB:ext3::boot; 2:107MB:292GB:292GB:::lvm; BYT; /dev/mapper/VolGroup01-LogVol01:10.4GB:dm:512:512:loop:Linux device-mapper (linear):; 1:0.00B:10.4GB:10.4GB:linux-swap(v1)::; BYT; /dev/mapper/VolGroup01-LogVol00:281GB:dm:512:512:loop:Linux device-mapper (linear):; 1:0.00B:281GB:281GB:ext3::; BYT; /dev/sr0:742MB:scsi:2048:2048:unknown:VBOX CD-ROM:; BYT; /dev/zram0:1034MB:unknown:4096:4096:loop:Unknown:; 1:0.00B:1034MB:1034MB:linux-swap(v1)::; =================== lsblk: KNAME TYPE FSTYPE SIZE LABEL loop0 loop squashfs 629.3M sda disk 300G sda1 part ext3 102M /boot sda2 part LVM2_member 271.9G sr0 rom iso9660 708M Boot-Repair-Disk 64bit zram0 disk 986.4M dm-0 lvm ext3 262.1G dm-1 lvm swap 9.7G KNAME ROTA RO RM STATE MOUNTPOINT loop0 1 1 0 /rofs sda 1 0 0 running sda1 1 0 0 /mnt/boot-sav/sda1 sda2 1 0 0 sr0 1 0 1 running /cdrom zram0 0 0 0 [SWAP] dm-0 1 0 0 running /mnt/boot-sav/mapper/VolGroup01-LogVol00 dm-1 1 0 0 running =================== mount: sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=982860k,nr_inodes=245715,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=202012k,mode=755) /dev/sr0 on /cdrom type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048) /dev/loop0 on /rofs type squashfs (ro,noatime) /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) debugfs on /sys/kernel/debug type debugfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12424) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime) tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=202008k,mode=700,uid=999,gid=999) gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999) /dev/sda1 on /mnt/boot-sav/sda1 type ext3 (rw,relatime,data=ordered) /dev/mapper/VolGroup01-LogVol00 on /mnt/boot-sav/mapper/VolGroup01-LogVol00 type ext3 (rw,relatime,data=ordered) =================== ls: /sys/block/dm-0 (filtered): alignment_offset bdi capability dev discard_alignment dm ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent /sys/block/dm-1 (filtered): alignment_offset bdi capability dev discard_alignment dm ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent /sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sda1 sda2 size slaves stat subsystem trace uevent /sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard |
Been there.
Copy /etc/modprobe.conf from RH5 running on VmWare and rebuild initrd. An existing initrd has no modules to see harddisk, therefore a problem. |
thanks everyone,
I ended up using the VMware P2V converter, conversion went through and worked fine right away. |
All times are GMT -5. The time now is 03:55 AM. |