linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] online scrub for ext4
@ 2017-07-22  0:26 Darrick J. Wong
  2017-07-22  0:29 ` [RFC 1/3] scripts to create and fsck a snapshot Darrick J. Wong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Darrick J. Wong @ 2017-07-22  0:26 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4

Hi all,

On this week's conference call, we discussed polishing e2croncheck into
something resembling a workable package, and I mentioned that some time
ago I'd adapted the script into a more general utility.  I've cleaned up
the scripts somewhat, so we can use them as a basis for discussion.

The first mail contains the base script to create the lvm snapshot, fsck
the snapshot, remove the snapshot, and fstrim the original filesystem.
It also contains a udev script to discourage it from making symlinks in
/dev/disk.

The second mail contains a script to identify eligible lvs containing
ext4 filesystms and call the actual invoker script.

The third mail contains systemd units to manage invocation and
containment of the scripts.

Note that despite my earlier outline, I don't actually have a boot time
script that cleans out any leftover fsck snapshots, though it wouldn't
be difficult to write.

Note also the lack of distro installer/partitioner support -- your ext4
filesystems /must/ be managed by lvm, and you /must/ have at least 256M
free in each volume group.  There's no daemon to watch for snapshots
filling up in order to kill the fsck and snapshot.

--D

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

end of thread, other threads:[~2017-07-22  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-22  0:26 [RFC] online scrub for ext4 Darrick J. Wong
2017-07-22  0:29 ` [RFC 1/3] scripts to create and fsck a snapshot Darrick J. Wong
2017-07-22  0:30 ` [RFC 2/3] scripts to find eligible lv ext4 filesystems Darrick J. Wong
2017-07-22  0:33 ` [RFC 3/3] systemd integration scripts Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).