Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We've got a Centos 5.5 server with 2 array's. One is standard ext3 mounted as /, the other is an SSD array that we are attempting to format as XFS before moving our MySQL database to it.

I've partitioned the SSD array as /dev/sdb1, but when attempting to run mkfs.xfs, I get:

mkfs.xfs -f /dev/sdb1
size 0 of data subvolume is too small, minimum 100 blocks

When running with the minimum 100 blocks:

mkfs.xfs -d size=100b /dev/sdb1 -f
size 100b specified for data subvolume is too large, maximum is 0 blocks

I've installed all the required XFS modules, including the kernel mod and xfsprogs. Running mkfs.xfs with just about any option results in the above behavior.

share|improve this question
    
What does fdisk -l /dev/sdb say? –  SvW Mar 20 '12 at 19:55

1 Answer 1

In your original attempt, you created only an extended partition. This is not enough, as this partition type is only a container for more logical partitions. This was made necessary by the limit of 4 partitions the DOS MBR orginally had.

After creating the extended partition, fdisk will offer to create logical partitions inside it, starting with a number of 5 when you choose n again.

For more infos, see Wikipedia.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.