Hi,
You are doing nothing wrong. XFS is using an extra ioctl to set the block
size of the device, it is not implemented for this device. However, a
recent review of the code seems to show that we do not need actually
need the ioctl anymore. Since the filesystem was made anyway, this is a
message you should be able to ignore.
Try mounting the filesystem and see what happens.
Steve
> Hi,
>
> Firstly, my apologies if this has been covered before, but I'm new to
> XFS and couldn't see anything about this in the FAQ or the last couple
> of months of the mailing list archive - but I may have just missed it.
>
> I have just upgraded my Linux machine to RedHat 7.1, and installed a
> 2.4.6 kernel, which (yay!) has support for my Promise 20265 RAID
> controller. I have used the "snapshot" 2.4.6 kernel patch, and made
> sure that in the Filesystems section of the kernel, both "Page Buffer
> support" and "SGI XFS filesystem support" are selected.
>
> This seems to go okay, and the kernel boots without any apparent
> problem, including the 2 RAID devices on the Prmoise controller being
> available as /dev/hde and /dev/hdf (I am booting of a normal IDE drive.)
>
> I have then installed the following RPMs:
>
> acl-1.0.7-0.i386.rpm
> acl-devel-1.0.7-0.i386.rpm
> attr-1.0.3-0.i386.rpm
> attr-devel-1.0.3-0.i386.rpm
> dmapi-0.1.1-0.i386.rpm
> dmapi-devel-0.1.1-0.i386.rpm
> xfsdump-1.0.9-0.i386.rpm
> xfsprogs-1.2.8-0.i386.rpm
> xfsprogs-devel-1.2.8-0.i386.rpm
>
> So, I think that I should now be ready to create an XFS filesystem.
>
> I use fdisk to create a normal primary partition on /dev/hde, of type
> 83. This is fine. I can also test that the drive seems to be okay by
> creating an e2fs on this partition:
>
> ----
>
> [root@slave-i /root]# mke2fs /dev/hde1
> mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 4889248 inodes, 9770662 blocks
> 488533 blocks (5.00%) reserved for the super user
> First data block=0
> 299 block groups
> 32768 blocks per group, 32768 fragments per group
> 16352 inodes per group
> Superblock backups stored on blocks:
> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
> 4096000, 7962624
>
> Writing inode tables: done
> Writing superblocks and filesystem accounting information: done
>
> ----
>
> However, when I try to create an XFS on the partition, I get the
> following error:
>
> ----
>
> [root@slave-i /root]# mkfs -t xfs -f /dev/hde1
> mkfs.xfs: warning - cannot set blocksize on block device /dev/hde1:
> Input/output error
> meta-data=/dev/hde1 isize=256 agcount=38, agsize=262144 blks
> data = bsize=4096 blocks=9770662, imaxpct=25
> = sunit=0 swidth=0 blks, unwritten=0
> naming =version 2 bsize=4096
> log =internal log bsize=4096 blocks=1200
> realtime =none extsz=65536 blocks=0, rtextents=0
>
> ----
>
> If anyone has any ideas ahout what I am doing wrong/is going wrong, it
> would be greatly appreciated.
>
> Cheers,
>
> Andrew
|