|David Kuntz on 12 Jun 2013 15:29:55 -0700|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: [PLUG] XFS on CentOS-5.9|
Short version: what, if anything, is going to bit me for using a 26TB XFS filesystem on CentOS-5.9?
I recently had a problem trying to format a partition larger than 16TB on CentOS-5.9 on a Dell PE720 with 8x4TB drives in a PERC H710 hardware RAID5. ÂNeither ext3 nor ext4 would work, even though in theory, and possibly with newer 'e4fsprogs', ext4 should work (after 'yum install e4fsprogs' since that's not in the stock install). ÂI had a multitude of problems, all of which boiled down to:
Â Â Â Â 1) CentOS-5.9 is *old*
Â Â Â Â 2) 32-bits is not enough
I am running x86_64, but with CentOS-5 at least, there are still far too many i386 tools and libs installed and I was hitting:
Â Â Â Â mked4fs 1.41.12 (17-May-2010)
Â Â Â Â mkfs.ext4: size of device /dev/sdb1 too big to be expressed in 32 bits using a blocksize of 4096
Interestingly, I was hitting that at 17.6TB, *not* the "16TB limit" that everyone else talks about (yes, I know the meaning of "TB" is fuzzy . As far as I can tell, using 8k block sizes on i386 or x86_64 is not allowed, attempts to remove the 32-bit libs failed for dependencies, and "-O 64bit" also failed as above.
Â Â Â Â mkfs.ext4 -O 64bit,has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize Â-m2 -L /data /dev/sdb1
On the other hand, XFS was backported into the CentOS stock repos, and that Just Worked, so far at least:
Â Â Â Â yum install xfsprogs
Â Â Â Â parted -s /dev/sdb mklabel gpt
Â Â Â Â parted -s -- /dev/sdb mkpart primary xfs 0 -1
Â Â Â Â Â # -s = script mode, no prompts
Â Â Â Â Â # -- = end of options, rest are arguments
Â Â Â Â Â # Start at 0 and end at '-1' = whole disk, no matter what size
Â Â Â Â mkfs.xfs -fL /data /dev/sdb1
Â Â Â Â Â # -f Â= Force
Â Â Â Â Â # -L Â= Set new volume label
That worked and was *far* faster, seconds to format 26TB as opposed to 20-30 minutes for ext4 to format 17.6TB on pretty fast hardware.
So...what, if anything, is going to bit me for using this?
JP Vossen, CISSP Â Â Â Â Â Â|:::======| Â Â Âhttp://bashcookbook.com/
My Account, My Opinions Â Â |=========| Â Â Âhttp://www.jpsdomain.org/
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
Philadelphia Linux Users Group Â Â Â Â -- Â Â Â Âhttp://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion Â-- Â http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug