How to create xfs in centos6 x86_64 ?

General support questions
Post Reply
lisans
Posts: 6
Joined: 2011/08/29 02:55:37
Location: Taipei, Taiwan

How to create xfs in centos6 x86_64 ?

Post by lisans » 2011/08/29 03:07:09

Hello there,

I have a storage 22TB x 3, and I try 2-3 days fs ext4 and now I know it's not support in this time. My friend tell me try xfs file system. I use modprobe xfs, after yum install xfsprogs-devel, I try mkfs.xfs /dev/md0p1

[code]# mkfs.xfs /dev/md0p1
warning: device is not properly aligned /dev/md0p1
log stripe unit (524288 bytes) is too large (maximum is 256KiB)
log stripe unit adjusted to 32KiB
meta-data=/dev/md0p1 isize=256 agcount=32, agsize=167879936 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=5372157952, imaxpct=5
= sunit=128 swidth=1408 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=8 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0[/code]

Anybody know how to create a xfs file system?
Sorry for my pool English and thank you very much.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

How to create xfs in centos6 x86_64 ?

Post by TrevorH » 2011/08/29 03:21:05

[code]
# rpm -qf `which mkfs.xfs`
xfsprogs-2.9.4-1.el5.centos.x86_64
[/code]

lisans
Posts: 6
Joined: 2011/08/29 02:55:37
Location: Taipei, Taiwan

Re: How to enable centos6 x86_64 support xfs?

Post by lisans » 2011/08/29 03:30:42

after I upgrade xfsprogs-devel, I have mkfs.xfs. But still have some error message.

[code]# mkfs.xfs /dev/md0p1
warning: device is not properly aligned /dev/md0p1
log stripe unit (524288 bytes) is too large (maximum is 256KiB)
log stripe unit adjusted to 32KiB
meta-data=/dev/md0p1 isize=256 agcount=32, agsize=167879936 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=5372157952, imaxpct=5
= sunit=128 swidth=1408 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=8 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0[/code]

There is my md0~md2 disk info:

[code]WARNING: GPT (GUID Partition Table) detected on '/dev/md0'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/md0: 22004.4 GB, 22004369981440 bytes
255 heads, 63 sectors/track, 2675212 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 5767168 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/md0p1 1 267350 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/md1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/md1: 22004.4 GB, 22004369981440 bytes
255 heads, 63 sectors/track, 2675212 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 5767168 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/md1p1 1 267350 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md2: 22004.4 GB, 22004369981440 bytes
2 heads, 4 sectors/track, -1 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 5767168 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table[/code]

Post Reply