From: Markus Hochholdinger Subject: xen 3.0.1, mdadm and DEBUG problem Date: Sat, 25 Mar 2006 19:18:17 +0100 Message-ID: <200603251918.17684.Markus@hochholdinger.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1185103540==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1185103540== Content-Type: multipart/signed; boundary="nextPart190559139.QQd8Vp6h52"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart190559139.QQd8Vp6h52 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi, i've a little problem here with raid1 inside domU. My setup is, two block=20 devices (gnbd) attached to domU (sda1, sdb1) and build raid1 inside domU. All works fine (mdadm --remove, block-detach, resize, block-attach, mdadm=20 =2Dadd) except the part where i want to grow my raid to the new size (mdadm= =20 =2D-grow .. --size=3Dmax). Sometimes (when not much fs load is done in domU= ) it=20 works and i "only" get the kernel message "VFS: busy inodes on changed=20 media.". But all works fine. But if i have fs load in domU and i make the grow i get "EXT3-fs error (dev= ice=20 md0): ext3_readdir: directory #589900 contains a hole at offset 0" and my f= s=20 is switching to ro mode and nothing works until reboot. So i decided to switch on DEBUG for my md to see what's happening. So i=20 recompiled a domU kernel with the only change: # diff linux-2.6.12-xenU/drivers/md/md.c~ linux-2.6.12-xenU/drivers/md/md.c 55c55 < #define DEBUG 0 =2D-- > #define DEBUG 1 With this kernel my domU works fine with a lot of debugging info on my domU= =20 console until i try to mdadm --set-faulty inside domU (which works without= =20 DEBUG like a charm): test:~# mdadm --set-faulty /dev/md0 /dev/sda1 Segmentation fault test:~#=20 Then i see on my domU console: general protection fault: 0000 [#1] SMP=20 Modules linked in: CPU: 1 EIP: 0061:[] Not tainted VLI EFLAGS: 00010246 (2.6.12.6-xenU)=20 EIP is at md_error+0x2f/0x120 eax: ffffffe2 ebx: c1304a80 ecx: 00000000 edx: ffffffed esi: c12d6b80 edi: c1304a80 ebp: c6291ea4 esp: c6291e74 ds: 007b es: 007b ss: 0069 Process mdadm (pid: 1278, threadinfo=3Dc6290000 task=3Dc7ad2020) Stack: c3cea000 c12d9ab4 c1186300 c7ad2020 f578c040 c111b300 00000001 00000= 001=20 00000000 c1304a80 c03ba4ec 00000801 ffffffe2 c024baac c1304a80 c12d6= b80=20 c1304a80 c024bd64 c1304a80 00800001 bfdc30cc c6291ee8 00000060 c6291= f64=20 Call Trace: [] set_disk_faulty+0x3c/0x50 [] md_ioctl+0x2a4/0x5a0 [] cp_new_stat64+0xf8/0x110 [] md_ioctl+0x0/0x5a0 [] blkdev_ioctl+0x8c/0x440 [] do_ioctl+0x70/0xa0 [] vfs_ioctl+0x65/0x1f0 [] sys_ioctl+0x45/0x70 [] syscall_call+0x7/0xb Code: ec 30 89 7d fc 8b 7d 08 89 75 f8 8b 75 0c 85 ff 89 5d f4 0f 84 c6 00 = 00=20 00 85 f6 0f 84 7b 00 00 00 8b 4e 2c 85 c9 75 74 8b 45 00 <8b> 10 8b 02 8b 4= a=20 04 8b 58 04 8b 45 00 8b 40 04 89 44 24 14 8b=20 And my domU can't access any fs anymore but is running. md is not compiled as module but compiled directly into the kernel so i can= =20 configure my raid per boot command line (extra =3D "md=3D0,/dev/sda1,/dev/s= db1"). So my question is, is there any known problem with raid (md) inside a domU?= =20 Why is mdadm working without debugging but prints "Segmentation fault" whil= e=20 debugging is on? Are am i doing something wrong? mdadm growing is working on other machines without xen. The only output on= =20 stock kernel when doing the grow is also "VFS: busy inodes on changed=20 media.". One different thing is that mdadm --grow on stock kernel results i= n=20 a rebuild of the last bits of the raid while making mdadm --grow inside dom= U=20 only the size og the raid goes up but no rebuild. Any help would be appreciated. I'm using xen-3.0.1 with two dell poweredge 1850 with two 3.2 GHz=20 Xeons, 8 GB RAM (pae version of xen) and four Intel(R) PRO/1000 as xen host= s. I build xen with make XEN_TARGET_X86_PAE=3Dy world make XEN_TARGET_X86_PAE=3Dy install only modified the kernel config before for my needs (md inside domU) linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 232c232,242 < # CONFIG_MD is not set =2D-- > CONFIG_MD=3Dy > CONFIG_BLK_DEV_MD=3Dy > CONFIG_MD_LINEAR=3Dm > CONFIG_MD_RAID0=3Dm > CONFIG_MD_RAID1=3Dy > CONFIG_MD_RAID10=3Dm > CONFIG_MD_RAID5=3Dm > CONFIG_MD_RAID6=3Dm > CONFIG_MD_MULTIPATH=3Dm > CONFIG_MD_FAULTY=3Dm > CONFIG_BLK_DEV_DM=3Dn and bonding in dom0 linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_x86_32 600c600 < # CONFIG_BONDING is not set =2D-- > CONFIG_BONDING=3Dm domU config test.cfg: cpus =3D "0-3" vcpus =3D "4" #kernel =3D "/boot/vmlinuz-2.6.12.6-xenU" # md debugging on kernel =3D "/var/tmp/vmlinuz.test" memory =3D 128 name =3D "test" vif =3D [ "mac=3DXX:XX:XX:XX:XX:XX" ] dhcp =3D "off" ip =3D "192.168.1.1" netmask =3D "255.255.255.0" gateway =3D "192.168.1.254" hostname =3D "test" disk =3D [ "phy:gnbd/test-w1,sda1,w", "phy:gnbd/test-w2,sdb1,w" ] root =3D "/dev/md0 ro" extra =3D "md=3D0,/dev/sda1,/dev/sdb1" =2D-=20 greetings eMHa --nextPart190559139.QQd8Vp6h52 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEJYlpXT3LE+AjWCsRAkHGAKCWUBk2wIBw/EFozIj5SB/fCNQa6QCfd6By K7gkv+vsWl8QWAL/6nix42Q= =DXyD -----END PGP SIGNATURE----- --nextPart190559139.QQd8Vp6h52-- --===============1185103540== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1185103540==--