Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-17-2011, 12:13 PM   #1
Registered: Jan 2010
Location: Velveeta, USA
Distribution: Xen, Gentoo,Ubuntu,openSUSE,Debian,pfSense
Posts: 98

Rep: Reputation: 8
why is a new xfs filesystem fragmented?

It's hard enough trying to guess the size for physical and logical extents but then....

My controller is old, a 3ware 9650SE 8 port, with 8x2TB drives

I have one 10TB volume group, with PE Size 32MB.
Several logical volumes, music, photos, tv, dvd, bluray, source, and scratch. Since each is different size, with different avg file size, and growing at a different rate.

I bought a new LSI 9260-8i and essentially mirrored the previous layout, making the new PE size larger 64MB.

I then copied all data from old to new using rsync --archive

Just for kicks I check the new Bluray, where avg file size is 40GB and fragmentation is exactly the same as it was on the old controller.

xfs_db -c frag -r /dev/mapper/mainvg-bluray
actual 557, ideal 107, fragmentation factor 80.79%

The old school perfect defrag was to backup a fs to tape and then restore from tape, leaving a perfectly contiguous fs.

Why did that not happen in my case?


fragmentation, linux, lvm, xfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I undelete files on an XFS filesystem felbvts Linux - Software 17 07-02-2012 07:53 AM
XFS Filesystem not mounting pbrunnen Linux - Server 5 09-14-2010 11:37 AM
What is the best filesystem? (mainly xfs vs ext3) calimer Linux - Software 16 03-02-2005 12:07 AM
XFS Filesystem on RH 9.0 Necessary? GATTACA Red Hat 7 12-29-2003 04:42 AM
XFS 64-bit filesystem sneeze Linux - Newbie 3 07-14-2003 05:15 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration