Problem in booting OpenVZ kernel in Fedora 9

Discussion in 'Kernel Questions' started by anoopprasad, Aug 14, 2008.

  1. anoopprasad

    anoopprasad New Member

    Hi,

    I am trying to install OpenVZ in Fedora 9 with the help of "Installing And Using OpenVZ On Fedora 9" published in How to Forge article section.

    Everything went ok except, the system is showing error as
    "Unable to access resume device (/dev/VolGroup00/LogVol01)
    Could not find filesystem '/dev/root' ", while booting and system don't get booted.

    However the system is booting with original kernel.

    Please help me to resolve this problem


    Anoop Prasad
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post your /boot/grub/menu.lst and /etc/fstab?
     
  3. anoopprasad

    anoopprasad New Member

    Thanks for Reply
    Following is my /boot/grub/menu.lst and /etc/fstab files.

    # grub.conf generated by anaconda
    #



    [root@ringserver grub]# vi /etc/fstab
    /dev/VolGroup00/LogVol00 / ext3 defaults 1 1
    UUID=d57c2416-ec95-4f9e-bbe9-8f9e0b10eef8 /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/VolGroup00/LogVol01 swap swap defaults 0 0





    Thank you once again.

    Anoop Prasad
     
  4. falko

    falko Super Moderator ISPConfig Developer

    The menu.lst is missing...
     
  5. anoopprasad

    anoopprasad New Member

    Thanks for reply.

    [root@ringserver ~]# vi /boot/grub/menu.lst
    # 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/VolGroup00/LogVol00
    # initrd /initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora OpenVZ-2(2.6.18-92.1.1.el5.028stab057.2)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-92.1.1.el5.028stab057.2 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.18-92.1.1.el5.028stab057.2.img
    title Fedora (2.6.25-14.fc9.i686)
    root (hd0,0)
    kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=f76efca2-601c-491b-bec2-dbce4cff5a90 rhgb quiet
    initrd /initrd-2.6.25-14.fc9.i686.img




    Anoop Prasad
     
  6. falko

    falko Super Moderator ISPConfig Developer

    I'm not sure why it says LogVol01.

    What are the outputs of
    Code:
    pvdisplay
    vgdisplay
    lvdisplay
    ?
     
  7. hardy123

    hardy123 New Member

    Thnks for the reply.
     
  8. anoopprasad

    anoopprasad New Member

    Thanking You for being with me for so long.

    Following is vgdisplay, pvdisplay and lvdisplay


    [root@ringserver ~]# pvdisplay
    --- Physical volume ---
    PV Name /dev/sda2
    VG Name VolGroup00
    PV Size 74.34 GB / not usable 340.50 KB
    Allocatable yes
    PE Size (KByte) 32768
    Total PE 2379
    Free PE 1
    Allocated PE 2378
    PV UUID aBeWug-eP6V-QMMr-XL4C-IfVQ-ecfq-4tIElU


    [root@ringserver ~]# vgdisplay
    --- Volume group ---
    VG Name VolGroup00
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 3
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 74.34 GB
    PE Size 32.00 MB
    Total PE 2379
    Alloc PE / Size 2378 / 74.31 GB
    Free PE / Size 1 / 32.00 MB
    VG UUID 0UCZxW-G211-CXbw-O1uR-0V5Y-VDqV-CXUSDw

    [root@ringserver ~]# lvdisplay

    --- Logical volume ---
    LV Name /dev/VolGroup00/LogVol00
    VG Name VolGroup00
    LV UUID iVEiYe-irBA-MGsz-qIXC-lh77-oNqx-KGKeQx
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 73.34 GB
    Current LE 2347
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Name /dev/VolGroup00/LogVol01
    VG Name VolGroup00
    LV UUID irxfgk-cEIe-yng1-eO0R-FTbY-59NF-anG12Q
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 992.00 MB
    Current LE 31
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1





    Anoop Prasad
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Ok there you have /dev/VolGroup00/LogVol01. What partition do you have on that volume?
    What's the output of
    Code:
    mount
    , and what's in /etc/mtab?
     
  10. eager

    eager New Member

    Similar problem

    I was having a similar problem with the error about the resume device. I resolved this problem by unpacking the initrd file and editing the init file to remove the reference. Instructions for unpacking/repacking the initird are here: http://forums.fedoraforum.org/showthread.php?t=111565

    I also converted all UUID references in /etc/fstab to /dev/sda references.

    I still get the error "could not find filesystem '/dev/root'".

    The grub/menu.lst entry is this:
    title Fedora OpenVZ (2.6.18-92.1.1.el5.028stab057.2)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-92.1.1.el5.028stab057.2 ro root=/dev/sda2 rhgb quiet
    initrd /initrd-2.6.18-92.1.1.el5.028stab057.2.img

    /etc/fstab:
    /dev/sda2 / ext3 defaults 1 1
    /dev/sda5 /home ext3 defaults 1 2
    /dev/sda1 /boot ext3 defaults 1 2

    /etc/mtab:
    /dev/sda2 / ext3 rw 0 0
    proc /proc proc rw 0 0
    sysfs /sys sysfs rw 0 0
    devpts /dev/pts devpts rw,gid=5,mode=620 0 0
    /dev/sda5 /home ext3 rw 0 0
    /dev/sda1 /boot ext3 rw 0 0

    output from mount is similar.
     

Share This Page