public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* get filename->inode mappings in bulk for a live fs?
@ 2012-10-04 15:30 Linda Walsh
  2012-10-04 18:01 ` Greg Freemyer
  2012-10-04 22:49 ` get filename->inode mappings in bulk for a live fs? Dave Chinner
  0 siblings, 2 replies; 9+ messages in thread
From: Linda Walsh @ 2012-10-04 15:30 UTC (permalink / raw)
  To: xfs-oss

I notice that attempts to use utils to get name->inode mappings
(xfs_ncheck) seem to have no option to operate on a mounted filesystem.

Is it practical to xfs_freeze such a file system and then ncheck it? or would
freezing it simply freeze the fact that it is open and provide no benefit?

So how can I get an inode->block mapping on a live fs.

I'm not worried about some smallish number of cases that might be inaccurate.

Out of ~5M files on my most populous volume, having even 1000 files w/wrong
info would be less than .02% -- which would be bad if I wanted an exact backup,
but for purposes a quick-fuzzy look at files that have changed and are finished
being changed (vs. the ones being changed right now),

The man page for xfs_freeze mentions using it to make snapshots -- how long
does such a snapshot usually take?  I.e. how long would a file system be frozen?
Is it something that would take a few ms, few seconds, or multiple minutes?

This may be a weird idea, but I seem to remember when lvm takes a snapshot
it moves the live volume aside and begins to use COW segments to hold changes.

Is it possible to xfs-freeze a COW copy so access to the original FS isn't
suspended thus making the time period of an xfs_freeze/dump_names less
critical?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2012-10-05  0:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 15:30 get filename->inode mappings in bulk for a live fs? Linda Walsh
2012-10-04 18:01 ` Greg Freemyer
2012-10-04 18:29   ` Linda Walsh
2012-10-04 18:59     ` Greg Freemyer
2012-10-04 22:39   ` xfs_freeze same as umount? How is that helpful? Linda Walsh
2012-10-04 23:32     ` Dave Chinner
2012-10-05  0:10       ` Linda Walsh
2012-10-05  0:36         ` Dave Chinner
2012-10-04 22:49 ` get filename->inode mappings in bulk for a live fs? Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox