online fsck
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Jure Peèar
Hi all,
Is it theoretically posible?
Like, does it need a drastic redesing of reiserfs or just sufficient $$ directed to the team to be implemented?
Because i think that reiserfsck --check in 12h + --rebuild-tree in 18h is still waaay too much downtime for a 500gb mail server...
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot. Online rebuild tree would be impossible by definition (since it throws out everything above the leaf level and rebuilds).
-chris
Quoted 4 lines · On Thu, 22 Apr 2004 09:34:14 -0400 Chris Mason <[email protected]> wrote:
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot. Online rebuild tree would be impossible by definition (since it throws out everything above the leaf level and rebuilds).
Well yes, one can do --check on ro mounted fs.
I was thinking about fixing things up on an active rw filesystem ... where if something is found that does not look right, it is reported and fixed on the fly.
What happened here last week ... power went out just for our disk enclosures ... when it came back, everything looked ok and we went back into action ... however, a couple hours later the box started filling the logs with reiserfs errors (PAP-5660, PAP-12350, vs-5150, vs-5350, vs-5355, vs-13050, vs-13060, ...) and crashed after about 25min.
So is it theoretically posible to fix stuff like these on the fly?
Signature · 1 line
Jure Pečar
Quoted 8 lines · Jure Pe??ar
Quoted 4 lines · On Thu, 22 Apr 2004 09:34:14 -0400 Chris Mason <[email protected]> wrote:
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot. Online rebuild tree would be impossible by definition (since it throws out everything above the leaf level and rebuilds).
Quoted 6 lines
Well yes, one can do --check on ro mounted fs.
I was thinking about fixing things up on an active rw filesystem ... where if something is found that does not look right, it is reported and fixed on the fly.
It is worth mentioning that FreeBSD supposedly has an online in the background fsck for UFS2.
I don't know the implementation details as I am busy fighting XF86 4.4 on FreeBSD.
Quoted 1 line
So is it theoretically posible to fix stuff like these on the fly?
Signature · 2 lines
Chris Dukes Been there, done that, got the slightly-charred t-shirt. -- Crowder
Quoted 11 lines · Chris Dukes
Quoted 10 lines · Jure Pe??ar
Quoted 4 lines · On Thu, 22 Apr 2004 09:34:14 -0400 Chris Mason <[email protected]> wrote:
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot. Online rebuild tree would be impossible by definition (since it throws out everything above the leaf level and rebuilds).
Well yes, one can do --check on ro mounted fs.
Quoted 7 lines
Quoted 4 lines
I was thinking about fixing things up on an active rw filesystem ... where if something is found that does not look right, it is reported and fixed on the fly.
It is worth mentioning that FreeBSD supposedly has an online in the background fsck for UFS2.
Wait a second. Assuming that kernel code has no bugs, the only corruption that may happen when soft-updates are used is leaked disk space. As I understand it, FreeBSD's background fsck fixes this problem and only it.
But, under the same assumption, journalled file system needs _no_ fsck at all.
Quoted 7 lines
I don't know the implementation details as I am busy fighting XF86 4.4 on FreeBSD.
Quoted 1 line
So is it theoretically posible to fix stuff like these on the fly?
Signature · 2 lines
Chris Dukes Been there, done that, got the slightly-charred t-shirt. -- Crowder
Nikita.
Quoted 30 lines · Nikita Danilov
Quoted 9 lines · Chris Dukes
Quoted 8 lines · Jure Pe??ar
On Thu, 22 Apr 2004 09:34:14 -0400
Quoted 4 lines · Chris Mason
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot. Online rebuild tree would be impossible by definition (since it throws out everything above the leaf level and rebuilds).
Quoted 8 lines
Quoted 5 lines
Well yes, one can do --check on ro mounted fs.
I was thinking about fixing things up on an active rw filesystem ... where if something is found that does not look right, it is reported and fixed on the fly.
It is worth mentioning that FreeBSD supposedly has an online in the background fsck for UFS2.
Wait a second. Assuming that kernel code has no bugs, the only corruption that may happen when soft-updates are used is leaked disk space. As I understand it, FreeBSD's background fsck fixes this problem and only it.
But, under the same assumption, journalled file system needs _no_ fsck at all.
Quoted 3 lines
I don't know the implementation details as I am busy fighting XF86 4.4 on FreeBSD.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
So is it theoretically posible to fix stuff like these on the fly?
--
Chris Dukes
Been there, done that, got the slightly-charred t-shirt. -- CrowderNikita.
That's exactly my thought. Wasn't write cache enabled on those disks ? That certainly would defeat any journaling filesystem.
Marcelo Pacheco
Quoted 9 lines · Nikita Danilov
Quoted 3 lines · Chris Dukes
It is worth mentioning that FreeBSD supposedly has an online in the background fsck for UFS2.
Wait a second. Assuming that kernel code has no bugs, the only corruption that may happen when soft-updates are used is leaked disk space. As I understand it, FreeBSD's background fsck fixes this problem and only it.
Reading through
http://www.shiningsilence.com/dbsdlog/archives/000212.html
That would appear to be the case.
And current experience indicates that UFS2 does not recover gracefully when used on a disk that has been in service beyond its life expectancy.
Quoted 3 lines
But, under the same assumption, journalled file system needs _no_ fsck at all.
In this age of hot plugging, rough environments, drives that have write caching turned on no matter how hard folks try to turn it off, petabytes of spinning storage, and the continuing misunderstanding of MTBF, that is becoming an increasingly poor assumption. Measures to verify that the metadata are sane without making all of the data unavailable are needed.
Oh well back to fighting X for a project where things don't die when some important metadata is corrupted, they just cough and sputter a bit before continuing.
Signature · 2 lines
Chris Dukes Been there, done that, got the slightly-charred t-shirt. -- Crowder
Quoted 11 lines · Chris Mason
Quoted 8 lines · Jure Peèar
Hi all,
Is it theoretically posible?
Like, does it need a drastic redesing of reiserfs or just sufficient $$ directed to the team to be implemented?
Quoted 8 lines
Quoted 4 lines
Because i think that reiserfsck --check in 12h + --rebuild-tree in 18h is still waaay too much downtime for a 500gb mail server...
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot.
Requires that users use lvm before discovering the need for fsck, but, yes. What would be ideal would be some support for finding the inconsistency on the snapshot, and then fixing it on the real fs using the information learned from the snapshot fsck.
Quoted 11 lines
Online rebuild tree would be impossible by
definition (since it throws out everything above the leaf level and rebuilds).-chris
Quoted 18 lines · Hans Reiser
Quoted 16 lines · Chris Mason
Quoted 12 lines · Jure Peèar
Hi all,
Is it theoretically posible?
Like, does it need a drastic redesing of reiserfs or just sufficient $$ directed to the team to be implemented?
Because i think that reiserfsck --check in 12h + --rebuild-tree in 18h is still waaay too much downtime for a 500gb mail server...
Quoted 7 lines
Quoted 3 lines
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot.
Requires that users use lvm before discovering the need for fsck, but, yes. What would be ideal would be some support for finding the inconsistency on the snapshot, and then fixing it on the real fs using the information learned from the snapshot fsck.
Which should be possible, espeically for corruptions at the leaf levels. Things like incorrect i_size, pointers to files that don't exist, etc. Corruptions that require a full blow rebuild-tree will be much harder.
I was wrong to say that an online rebuild-tree would be impossible, but it certainly does seem tricky. Basically you could freeze the old tree, using it for readonly lookups. Rebuild to new tree in the background, and verify things you find in the old tree in the new tree (to catch a file that has been deleted while the FS was mounted but is present in the old tree).
-chris
Quoted 40 lines · Chris Mason
Quoted 23 lines · Hans Reiser
Quoted 19 lines · Chris Mason
Quoted 14 lines · Jure Peèar
Hi all,
Is it theoretically posible?
Like, does it need a drastic redesing of reiserfs or just sufficient $$ directed to the team to be implemented?
Because i think that reiserfsck --check in 12h + --rebuild-tree in 18h is still waaay too much downtime for a 500gb mail server...
Quoted 8 lines
Quoted 5 lines
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot.
Requires that users use lvm before discovering the need for fsck, but, yes. What would be ideal would be some support for finding the inconsistency on the snapshot, and then fixing it on the real fs using the information learned from the snapshot fsck.
Which should be possible, espeically for corruptions at the leaf levels. Things like incorrect
i_size, pointers to files that don't exist, etc. Corruptions that require a full blow rebuild-tree will be much harder.
Quoted 14 lines
I was wrong to say that an online rebuild-tree would be impossible, but it certainly does seem tricky. Basically you could freeze the old tree, using it for readonly lookups. Rebuild to new tree in the background, and verify things you find in the old tree in the new tree (to catch a file that has been deleted while the FS was mounted but is present in the old tree).
-chris
rebuild-tree would likely be a major engineering effort which would require funding from someone who cared enough to pay for it....., finding inconsistencies on a snapshot and applying them to a live system would be less difficult but still substantive work.
Quoted 9 lines · Hans Reiser
Quoted 4 lines · Chris Mason
Online check is easy, just use lvm or evms to make a snapshot and then check the snapshot.
Requires that users use lvm before discovering the need for fsck, but, yes. What would be ideal would be some support for finding the inconsistency on the snapshot, and then fixing it on the real fs using the information learned from the snapshot fsck.
Taking a snapshot of the entire FS to fix metadata seems somewhat expensive. Any thoughts on intercepting FS activity to locate metadata that needs to be checked now rather than during the next moment the fs or disk is idle?
Snapshotting 40G has a pretty small additional cost. Snapshotting 1TB is somewhat more expensive.
Quoted 4 lines
Quoted 4 lines
Online rebuild tree would be impossible by
definition (since it throws out everything above the leaf level and rebuilds).
Build a new tree and keep the old tree until the new tree is finished?
Signature · 2 lines
Chris Dukes Been there, done that, got the slightly-charred t-shirt. -- Crowder
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chris Dukes wrote:
| Snapshotting 40G has a pretty small additional cost. Snapshotting 1TB | is somewhat more expensive.
A snapshot has only the size of the block changed to the main volume. Snapshotting a 1 TB volume and rebuild the meta data will not need 1 TB, i think 40 GB would be enough, maybe less.
regards
~ Daniel
- --
nihil me cirumdat
.. . .. ... . . .. . ... . .. . ... . . .
pgp key @ http://files.poelzi.org/pgp.txt
ED80 E53D 5269 4BB1 1E73 3A53 CBF9 A421 0A7B 003D -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFAi8a5y/mkIQp7AD0RAmhUAKC8xYaOnBaXQRhpAUiOFuAu1f0K3ACg1aPG cagnLeHh411DHSIKLwyuE+Y=
=ZiYy
-----END PGP SIGNATURE-----
Quoted 1 line · Jure Pe??ar
Is it theoretically posible?
It is actually implemented in the BSD kernels, for UFS. Look for "softdep" or "softupdates".
As for other file systems, when crashing while the write cache is enabled (unfortunately, it is in FreeBSD for instance), it can royally screw up your file system. Beyond repair, to a "use your backup" state.
Signature · 3 lines
Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95