PDA

View Full Version : problem with xen, partition gets read-only


weezul
10th September 2008, 12:18
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:



/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:

falko
11th September 2008, 15:06
Can you restart the VM and then immediately go to its console (xm console <name of vm>) so that you see the boot process? Do you see any errors?

Any errors in the output of dmesg in the vm?

weezul
11th September 2008, 17:34
hello,


i'm getting this after rebooting the domU:


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:



Bootdata ok (command line is root=/dev/sda1 ro)
Memory: 492800k/532480k available (1949k kernel code, 30764k reserved, 878k data, 148k init)
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
powernow_k8: Unknown symbol acpi_processor_notify_smm
powernow_k8: Unknown symbol acpi_processor_unregister_performance
powernow_k8: Unknown symbol acpi_processor_register_performance
processor: Unknown symbol pm_idle
thermal: Unknown symbol acpi_processor_set_thermal_limit
md: md0 stopped.
md: md1 stopped.
md: md2 stopped.
md: md3 stopped.
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
Adding 1048568k swap on /dev/sda2. Priority:-1 extents:1 across:1048568k
EXT3 FS on sda1, internal journal



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

weezul
11th September 2008, 18:02
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' ]

falko
12th September 2008, 18:59
Did you maybe set up software RAID inside the vm?

weezul
12th September 2008, 19:08
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 )

falko
13th September 2008, 12:16
What's in /etc/mdadm/mdadm.conf in the vm?

weezul
13th September 2008, 14:38
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

falko
14th September 2008, 19:14
Ok, then the problem seems to be something else, but I'm not sure what it could be... :(