Hi, I''m running xen-2.0 with linux-2.4.27 on my laptop. The domain0 runs a mixed debian woody/sarge system, the testdomain is running on debian/sarge. When I try to create a reiserfs filesystem on a block device in the test domain I get an I/O error. Creating an XFS filsystem seems to work, except for an unsupported ioctl, however xfs_check fails. Creating and checking ext3 filesystems works properly. /dev/hda2 in the test domain is mapped to a logical volume on domain0. Running the same commands in domain0 on the LV works fine. Any ideas? thanks: Gabor Output of the programs: kandur2:~# mkfs.xfs /dev/hda2 meta-data=/dev/hda2 isize=256 agcount=8, agsize=6400 blks = sectsz=512 data = bsize=4096 blocks=51200, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=1200, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 ioctl 00001261 not supported by XL blkif kandur2:~# xfs_check /dev/hda2 xfs_check: read failed: Input/output error xfs_check: data size check failed kandur2:~# mkfs.reiserfs -f /dev/hda2 mkfs.reiserfs 3.6.19 (2003 www.namesys.com) A pair of credits: Elena Gryaznova performed testing and benchmarking. Vitaly Fertman wrote fsck for V3 and maintains the reiserfsprogs package now. He wrote librepair, userspace plugins repair code, fsck for V4, and worked on developing libreiser4 and userspace plugins with Umka. Guessing about desired format.. Kernel 2.4.27-xen0 is running. Format 3.6 with standard journal Count of blocks on the device: 51200 Number of blocks consumed by mkreiserfs formatting process: 8213 Blocksize: 4096 Hash function used to sort names: "r5" Journal Size 8193 blocks (first block 18) Journal Max transaction length 1024 inode generation number: 0 UUID: 92ffa0c0-7577-4a26-86eb-1f651a744640 Initializing journal - 0%....20%....40%....60%....80%....100% The problem has occurred looks like a hardware problem. If you have bad blocks, we advise you to get a new hard drive, because once you get one bad block that the disk drive internals cannot hide from your sight,the chances of getting more are generally said to become much higher (precise statistics are unknown to us), and this disk drive is probably not expensive enough for you to you to risk your time and data on it. If you don''t want to follow that follow that advice then if you have just a few bad blocks, try writing to the bad blocks and see if the drive remaps the bad blocks (that means it takes a block it has in reserve and allocates it for use for of that block number). If it cannot remap the block, use badblock option (-B) with reiserfs utils to handle this block correctly. bread: Cannot read the block (51199): (Input/output error). Aborted ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Mon, Nov 15, 2004 at 02:31:21PM +0100, Vitez Gabor wrote:> kandur2:~# mkfs.xfs /dev/hda2[...]> ioctl 00001261 not supported by XL blkifhow old is your mkfs here? there were issues a long time ago with the ioctls to get the device size (64-bit size request not being supported or being quirky and needing work... i forget the details now)> bread: Cannot read the block (51199): (Input/output error).write over those blocks and hope the drive remaps the bad sectors safely and it doesn''t get worse this usually works but not always ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Hi,> > kandur2:~# mkfs.xfs /dev/hda2 > [...] > > ioctl 00001261 not supported by XL blkif > > how old is your mkfs here? there were issues a long time ago with the > ioctls to get the device size (64-bit size request not being supported > or being quirky and needing work... i forget the details now)This is xfsprogs 2.6.20-1 from debian/sarge. SGI has 2.6.25 I will try that, and report back.> > bread: Cannot read the block (51199): (Input/output error). > > write over those blocks and hope the drive remaps the bad sectors > safely and it doesn''t get worse > > this usually works but not alwaysThis is definetly not a badblock problem, consider this setup: /dev/rootvg/dom2xfslv in domain0 gets exported to the domain "dom2" as hda2. creating and checking xfs/reiserfs filesystems in domain0 on /dev/rootvg/dom2xfslv works fine creating and checking xfs/reiserfs filesystems in dom2 on /dev/hda2 fails. The disk blocks under domain0:/dev/rootvg/dom2xfslv and dom2:/dev/hda2 are the same. mkfs/fsck versions are the same in both domains. Gabor ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > > kandur2:~# mkfs.xfs /dev/hda2 > > [...] > > > ioctl 00001261 not supported by XL blkif > > > > how old is your mkfs here? there were issues a long time ago with the > > ioctls to get the device size (64-bit size request not being supported > > or being quirky and needing work... i forget the details now) > > This is xfsprogs 2.6.20-1 from debian/sarge. SGI has 2.6.25 I will try that, > and report back.xfsprogs 2.6.25 w/ xen 2.0.1 has the same problem. Somebody, please test mkfs.xfs, xfs_check, mkfs.reiserfs and fsck.reiserfs for me with a block device exported from Domain-0. Interestingly the commands work fine on simple files, even in domains other than Domain-0. I suspect this is a problem with block-device exporting in linux-xen. Gabor sorry for the broken english :) ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Christian Limpach
2004-Nov-19 14:18 UTC
Re: [Xen-devel] reiserfs/xfs creation/check problem
On Fri, Nov 19, 2004 at 11:45:54AM +0100, Vitez Gabor wrote:> > > > kandur2:~# mkfs.xfs /dev/hda2 > > > [...] > > > > ioctl 00001261 not supported by XL blkif > > > > > > how old is your mkfs here? there were issues a long time ago with the > > > ioctls to get the device size (64-bit size request not being supported > > > or being quirky and needing work... i forget the details now) > > > > This is xfsprogs 2.6.20-1 from debian/sarge. SGI has 2.6.25 I will try that, > > and report back. > > xfsprogs 2.6.25 w/ xen 2.0.1 has the same problem. Somebody, please test > mkfs.xfs, xfs_check, mkfs.reiserfs and fsck.reiserfs for me with a block > device exported from Domain-0.mkreiserfs and reiserfsck work for me on block devices imported from other domains. christian ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Fri, Nov 19, 2004 at 02:18:37PM +0000, Christian Limpach wrote:> mkreiserfs and reiserfsck work for me on block devices imported from > other domains.Thanks a lot. I have no idea why it does not work for me. Do you use Xen with 2.4 or 2.6 kernels? Gabor ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Christian Limpach
2004-Nov-19 18:56 UTC
Re: [Xen-devel] reiserfs/xfs creation/check problem
On Fri, Nov 19, 2004 at 06:46:16PM +0100, Vitez Gabor wrote:> On Fri, Nov 19, 2004 at 02:18:37PM +0000, Christian Limpach wrote: > > mkreiserfs and reiserfsck work for me on block devices imported from > > other domains. > > Thanks a lot. I have no idea why it does not work for me. Do you use Xen > with 2.4 or 2.6 kernels?I checked 2.6 now but I''ve also used reiserfs on 2.4 before... christian ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Mon, Nov 15, 2004 at 02:31:21PM +0100, Vitez Gabor wrote:> /dev/hda2 in the test domain is mapped to a logical volume on domain0. > Running the same commands in domain0 on the LV works fine. > > Any ideas?It does work when the block devices are imported az scsi disks/partitions, so problem solved :) Gabor ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel