[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <46A86C42-E47C-43F7-A688-E15607CCF4A3@dilger.ca>
Date: Fri, 20 Jan 2012 21:37:17 -0700
From: Andreas Dilger <adilger@...ger.ca>
To: Theodore Tso <tytso@....EDU>
Cc: Robin Dong <hao.bigrat@...il.com>, Theodore Tso <tytso@....edu>,
"amir73il@...il.com" <amir73il@...il.com>,
Tao Ma <taoma.tm@...il.com>, coly <colyli@...il.com>,
Ext4 Developers List <linux-ext4@...r.kernel.org>
Subject: Re: Question about writable ext4-snapshot
On Jan 20, 2012, at 9:45 PM, Robin Dong wrote:
> Hello, Amir
>
> I am evaluating ext4-snapshot (on github) for TAOBAO recently. The
> snapshot of an ext4 fs is READONLY now, but we do need to write data
> into snapshot. We also want using ext4-snapshot to do online-fsck on
> Hadoop clusters, but our hadoop clusters are using no-journal ext4
> now.
When you write about online e2fsck, what do you mean exactly? It is already possible with LVM to create a read-only snapshot of a device and run read-only e2fsck. This works because the LVM snapshot is hooked to ext4 to freeze the filesystem and flush the journal before the snapshot is done.
At this point, if the fsck is clean then the original filesystem is clean also. This is the most common case. In the uncommon case of errors detected on the snapshot, then the filesystem would need to be taken offline to fix any problems.
By running the online fsck on the snapshot, one can be certain that the filesystem is clean, and reset the automatic checking date/mount counters.
If you are thinking about online repair, that would be much more complex, but may still be possible for some cases.
Cheers, Andreas
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists