All of lore.kernel.org
 help / color / mirror / Atom feed
* safe to defrag XFS on live system?
@ 2012-09-14 15:51 Travis Rhoden
  2012-09-14 17:06 ` Tommi Virtanen
  0 siblings, 1 reply; 10+ messages in thread
From: Travis Rhoden @ 2012-09-14 15:51 UTC (permalink / raw)
  To: ceph-devel

Hello folks,

On a running Ceph cluster using XFS for the OSD's, is it safe to
defrag the OSD devices while the system is live?

I did a quick check of one device:

xfs_db -c frag -r /dev/sdd
actual 637596, ideal 144935, fragmentation factor 77.27%

I've only been running on these particular machines for a couple of
weeks.  I am thinking of putting in a cron task that defrags disks
every week or as needed (on a rolling schedule).

While I'm talking about XFS...  I know that RBD's use a default object
size of 4MB.  I've stuck with that so far..  Would it be beneficial to
mount XFS with -o allocsize=4M ?  What is the object size that gets
used for non-RBD cases -- i.e. just dumping objects into data pool?

Thanks,

 - Travis

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-09-14 20:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 15:51 safe to defrag XFS on live system? Travis Rhoden
2012-09-14 17:06 ` Tommi Virtanen
2012-09-14 17:15   ` Josh Durgin
2012-09-14 17:15   ` Nick Couchman
2012-09-14 17:22     ` Travis Rhoden
2012-09-14 18:49     ` Mark Nelson
2012-09-14 18:56       ` Nick Couchman
2012-09-14 19:50         ` Mark Nelson
2012-09-14 20:01           ` Nick Couchman
2012-09-14 18:56       ` Travis Rhoden

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.