Ruslan Sivak
2007-Nov-12 22:15 UTC
[CentOS] mounting filesystems with blocks larger then 4k over a loop device
So I'm playing around with S3 and elasticdrive, and I create a filesystem on it with a block size larger then 4k. mkfs.xfs -b size=8k /mnt/ed5/ed0 -f This completes fine and sets up the proper filesystem. When I try to mount it, however, I get: mount /mnt/ed5/ed0 /mnt/eds35/ -o loop mount: Function not implemented looking at dmesg I get: XFS: Attempted to mount file system with blocksize 8192 bytes XFS: Only page-sized (4096) or less blocksizes currently work. XFS: SB validate failed I had similar issues with reiserFS. Is there a way to get a filesystem with larger then 4k blocks in CentOS 5? Russ
Ruslan Sivak
2007-Nov-12 23:07 UTC
[CentOS] mounting filesystems with blocks larger then 4k over a loop device
Ruslan Sivak wrote:> So I'm playing around with S3 and elasticdrive, and I create a > filesystem on it with a block size larger then 4k. > mkfs.xfs -b size=8k /mnt/ed5/ed0 -f > > This completes fine and sets up the proper filesystem. When I try to > mount it, however, I get: > > mount /mnt/ed5/ed0 /mnt/eds35/ -o loop > > > mount: Function not implemented > > looking at dmesg I get: > > XFS: Attempted to mount file system with blocksize 8192 bytes > XFS: Only page-sized (4096) or less blocksizes currently work. > XFS: SB validate failed > > > I had similar issues with reiserFS. Is there a way to get a > filesystem with larger then 4k blocks in CentOS 5? > > Russ >Looks like I would need something like this: http://lwn.net/Articles/249169/ does anyone know wh ether this is part of CentOS yet, or if there is some sort of binary available? Russ
Flaherty, Patrick
2007-Nov-12 23:52 UTC
[CentOS] mounting filesystems with blocks larger then 4k over aloop device
> mount: Function not implemented > > looking at dmesg I get: > > XFS: Attempted to mount file system with blocksize 8192 bytes > XFS: Only page-sized (4096) or less blocksizes currently work. > XFS: SB validate failed > > > I had similar issues with reiserFS. Is there a way to get a > filesystem with larger then 4k blocks in CentOS 5?maybe you need to specify block size (bs= see the mount manpage) when mounting or... the man page says it can only be as big as pagesize. Check your page size `$ getconf PAGE_SIZE`, maybe that's the problem. See also: http://lwn.net/Articles/249169/ http://www.uwsg.iu.edu/hypermail/linux/kernel/0706.2/1960.html: Commit seems to show after linux-2.6.22 you should be able to ignore page size when mounting XFS volumes. Good luck Patrick