problem with xen, partition gets read-only

Discussion in 'Server Operation' started by weezul, Sep 10, 2008.

  1. weezul

    weezul New Member

    Hello there,

    i've xen running and the domU which runs apache and the other stuff worked fine for 3 weeks now, but yesterday i got those "warning file system is read only" message again, and yeah.. the filesystem turns read-only and i'm getting errors.

    my partition table on the domU looks like that:


    Code:
    /dev/sda1     /     ext3     errors=remount-ro,usrquota,grpquota   0     1
    proc          /proc proc     rw,nodev,nosuid,noexec              0     0
    /dev/sda2     none  swap     sw                    0     0
    
    errors=remount-ro - that tells me it remounts the partition in read-only mode, but WHY does he remount the partiton?

    which errors could have forced that, and is it advised to change that errors=remount-ro to remount-rw or could that f**** up my whole filesystem and everything goes BOOM? :confused:
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you restart the VM and then immediately go to its console (
    Code:
    xm console <name of vm>
    ) so that you see the boot process? Do you see any errors?

    Any errors in the output of
    Code:
    dmesg
    in the vm?
     
  3. weezul

    weezul New Member

    hello,


    i'm getting this after rebooting the domU:

    Code:
    md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
    md: bitmap version 4.39
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    processor: Unknown symbol pm_idle
    WARNING: Error inserting processor (/lib/modules/2.6.18-6-xen-amd64/kernel/drive                                                                                                                               rs/acpi/processor.ko): Unknown symbol in module, or unknown parameter (see dmesg                                                                                                                               )
    FATAL: Error inserting thermal (/lib/modules/2.6.18-6-xen-amd64/kernel/drivers/a                                                                                                                               cpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    Done.
    Begin: Mounting root file system... ...
    Begin: Running /scripts/local-top ...
    Begin: Loading MD modules ...
    Success: loaded module raid1.
    Done.
    Begin: Assembling all MD arrays ...
    md: md0 stopped.
    mdadm: no devices found for /dev/md0
    md: md1 stopped.
    mdadm: no devices found for /dev/md1
    md: md2 stopped.
    mdadm: no devices found for /dev/md2
    md: md3 stopped.
    mdadm: no devices found for /dev/md3
    Failure: failed to assemble all arrays.
    Done.
    
    and my dmesg output on the domU:



    okay i think there is something wrong with my partition or raidconfig or whatever.. i don't realy know but that md errors scare me :eek:

    the dom0 has an raid1 filesystem, lvm is on md3, its nearly the whole disc, except the dom0, and every domU creates an new lvm partition.
    do i have to change the partion table in the domU to fit the raid on the dom0 or anything?

    greetings
     
    Last edited: Sep 11, 2008
  4. weezul

    weezul New Member

    and that is my xen config file

    #
    # Disk device(s).
    #
    root = '/dev/sda1 ro'

    disk = [ 'phy:lvmxen/webhost-disk,sda1,w', 'phy:lvmxen/webhost-swap,sda2,w' ]
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Did you maybe set up software RAID inside the vm?
     
  6. weezul

    weezul New Member

    uhhm no not that i can remember, i just did an deboostrap install and installed ispconfig on it, no raid or any other stuff.

    how can i check if swraid is enabled?

    /cat/proc mdstat doesnt return anything and md commands arent known.

    ( in the vm )
     
  7. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/mdadm/mdadm.conf in the vm?
     
  8. weezul

    weezul New Member

    hi again falko, thx for helping me out

    in the vm there's no mdadm config file

    cat: /etc/mdadm/mdadm.conf: No such file or directory
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Ok, then the problem seems to be something else, but I'm not sure what it could be... :(
     

Share This Page