What is status of metadata_csum
What is metadata_csum status?
i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Signature · 2 lines
Regards, Oleksij
Quoted 4 lines · Oleksij Rempel
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
--D
Quoted 7 lines
Signature · 6 lines
Regards, Oleksij -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
Signature · 2 lines
Regards, Oleksij
Am 17.01.2014 09:18, schrieb Oleksij Rempel:
Quoted 10 lines
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
Quoted 8 lines
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
I was playing with metadata_csum trying to kill my system and now i have some questions:
first the test:
#find block number
sudo ./debugfs/debugfs -R "imap <3991825>" /dev/sdf1
#copy block
sudo dd if=/dev/sdf1 bs=4K count=1 skip=15958163 of=corrupt_block.bin
#change one byte
ghex corrupt_block.bin
#kill inode
sudo dd of=/dev/sdf1 bs=4K count=1 seek=15958163 if=corrupt_block.bin
sudo ./debugfs/debugfs -R "stat <3991825>" /dev/sdf1
#stat: Inode checksum does not match inode while reading inode 3991825
so, inode is corrupt:
- ext4 can detect inode corruption. Great work! I like it :)
- in this case file will not be shown by Nautilus.
- ls will show some thing like this:
4130898 drwx------ 8 oleksij oleksij 4096 Jan 17 09:31 Bilder
? -????????? ? ? ? ? ?
ich-einfach_unverbesserlich_2.mkv
3991826 -rw-rw-r-- 1 oleksij oleksij 622038707 Jan 17 11:12 igor.mkv
3989506 drwxr-xr-x 26 oleksij oleksij 4096 Okt 9 23:11 linux
it means, i know there is some thing wrong, but i do not know which inode
- If fs is not fixed, file is lost? are blocks still allocated to this inode?
- debufs will not allow me to edit inode corrupt inode.
- If i run fsck -y file is lost. Most user wont be able to recover it.
- how can i sync it with back up software?
Signature · 2 lines
Regards, Oleksij
Quoted 44 lines · Oleksij Rempel
Am 17.01.2014 09:18, schrieb Oleksij Rempel:
Quoted 10 lines
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
Quoted 8 lines
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
I was playing with
metadata_csumtrying to kill my system and now i have some questions:first the test:
#find block number
sudo ./debugfs/debugfs -R "imap <3991825>"/dev/sdf1#copy block
sudo dd if=/dev/sdf1 bs=4K count=1 skip=15958163 of=corrupt_block.bin#change one byte
ghex corrupt_block.bin#kill inode
sudo dd of=/dev/sdf1 bs=4K count=1 seek=15958163 if=corrupt_block.binsudo ./debugfs/debugfs -R "stat <3991825>"
/dev/sdf1
#stat: Inode checksum does not match inode while reading inode 3991825so, inode is corrupt:
- ext4 can detect inode corruption. Great work! I like it :)
- in this case file will not be shown by Nautilus.
- ls will show some thing like this:
Quoted 7 lines
4130898 drwx------ 8 oleksij oleksij 4096 Jan 17 09:31 Bilder
? -????????? ? ? ? ? ?ich-einfach_unverbesserlich_2.mkv
3991826 -rw-rw-r-- 1 oleksij oleksij 622038707 Jan 17 11:12 igor.mkv
3989506 drwxr-xr-x 26 oleksij oleksij 4096 Okt 9 23:11 linuxit means, i know there is some thing wrong, but i do not know which inode
Unfortunately, either the whole stat call succeeds or it doesn't. Your best bet to find the inode is:
debugfs -n -R 'stat /path/within/fs' /dev/sdXXX
Quoted 2 lines
- If fs is not fixed, file is lost? are blocks still allocated to this inode?
Yes, the blocks are still allocated.
Quoted 1 line
- debufs will not allow me to edit inode corrupt inode.
debugfs -n (disables checksum verification)
Quoted 1 line
- If i run fsck -y file is lost. Most user wont be able to recover it.
If you answer 'n' to the first prompt about the checksum failure, e2fsck will check the rest of the inode. If no other problems are found, it'll ask to correct the checksum.
I've wondered if perhaps e2fsck ought to do something like this when there's a checksum problem:
1. If the user didn't prohibit clearing the inode as the first potential action, ask if e2fsck should just clear the inode.
2. If not, run the regular checks.
3. If there's still a checksum error, ask to fix the checksum.
4. If the user doesn't want to fix it, ask to clear the inode.
iow, e2fsck --verify-checksums-last /dev/sdXX
Quoted 1 line
- how can i sync it with back up software?
fsck -y to clear the bad inode, then restore from backup.
--D
Am 17.01.2014 20:21, schrieb Darrick J. Wong:
Quoted 51 lines · Oleksij Rempel
Quoted 50 lines
Am 17.01.2014 09:18, schrieb Oleksij Rempel:
Quoted 10 lines
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
Quoted 8 lines
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
I was playing with
metadata_csumtrying to kill my system and now i have some questions:first the test:
#find block number
sudo ./debugfs/debugfs -R "imap <3991825>"/dev/sdf1#copy block
sudo dd if=/dev/sdf1 bs=4K count=1 skip=15958163 of=corrupt_block.bin#change one byte
ghex corrupt_block.bin#kill inode
sudo dd of=/dev/sdf1 bs=4K count=1 seek=15958163 if=corrupt_block.binsudo ./debugfs/debugfs -R "stat <3991825>"
/dev/sdf1
#stat: Inode checksum does not match inode while reading inode 3991825so, inode is corrupt:
- ext4 can detect inode corruption. Great work! I like it :)
- in this case file will not be shown by Nautilus.
- ls will show some thing like this:4130898 drwx------ 8 oleksij oleksij 4096 Jan 17 09:31 Bilder
? -????????? ? ? ? ? ?ich-einfach_unverbesserlich_2.mkv
3991826 -rw-rw-r-- 1 oleksij oleksij 622038707 Jan 17 11:12 igor.mkv
3989506 drwxr-xr-x 26 oleksij oleksij 4096 Okt 9 23:11 linux
Quoted 5 lines
Quoted 1 line
it means, i know there is some thing wrong, but i do not know which inode
Unfortunately, either the whole stat call succeeds or it doesn't. Your best bet to find the inode is:
debugfs -n -R 'stat /path/within/fs'/dev/sdXXX
Ok, looks like user space apps should handle errors in different whey. I mean some thing like, show notification about probable FS errors and so on.
Quoted 15 lines
Quoted 2 lines
- If fs is not fixed, file is lost? are blocks still allocated to this inode?
Yes, the blocks are still allocated.
Quoted 1 line
- debufs will not allow me to edit inode corrupt inode.
debugfs -n (disables checksum verification)
Quoted 1 line
- If i run fsck -y file is lost. Most user wont be able to recover it.
If you answer 'n' to the first prompt about the checksum failure, e2fsck will check the rest of the inode. If no other problems are found, it'll ask to correct the checksum.
Quoted 8 lines
I've wondered if perhaps e2fsck ought to do something like this when there's a checksum problem:
1. If the user didn't prohibit clearing the inode as the first potential action, ask if e2fsck should just clear the inode.
2. If not, run the regular checks.
3. If there's still a checksum error, ask to fix the checksum.
4. If the user doesn't want to fix it, ask to clear the inode.
sounds good.
Quoted 1 line
iow, e2fsck --verify-checksums-last
/dev/sdXX
this mean?
PS: More testing results from today. GRUB fails to install if metadata_csum enabled. Should it be reported to GRUB devs?
Signature · 2 lines
Regards, Oleksij
Quoted 52 lines · Oleksij Rempel
Am 17.01.2014 20:21, schrieb Darrick J. Wong:
Quoted 51 lines · Oleksij Rempel
Quoted 50 lines
Am 17.01.2014 09:18, schrieb Oleksij Rempel:
Quoted 10 lines
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
Quoted 8 lines
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
I was playing with
metadata_csumtrying to kill my system and now i have some questions:first the test:
#find block number
sudo ./debugfs/debugfs -R "imap <3991825>"/dev/sdf1#copy block
sudo dd if=/dev/sdf1 bs=4K count=1 skip=15958163 of=corrupt_block.bin#change one byte
ghex corrupt_block.bin#kill inode
sudo dd of=/dev/sdf1 bs=4K count=1 seek=15958163 if=corrupt_block.binsudo ./debugfs/debugfs -R "stat <3991825>"
/dev/sdf1
#stat: Inode checksum does not match inode while reading inode 3991825so, inode is corrupt:
- ext4 can detect inode corruption. Great work! I like it :)
- in this case file will not be shown by Nautilus.
- ls will show some thing like this:4130898 drwx------ 8 oleksij oleksij 4096 Jan 17 09:31 Bilder
? -????????? ? ? ? ? ?ich-einfach_unverbesserlich_2.mkv
3991826 -rw-rw-r-- 1 oleksij oleksij 622038707 Jan 17 11:12 igor.mkv
3989506 drwxr-xr-x 26 oleksij oleksij 4096 Okt 9 23:11 linux
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
it means, i know there is some thing wrong, but i do not know which inode
Unfortunately, either the whole stat call succeeds or it doesn't. Your best bet to find the inode is:
debugfs -n -R 'stat /path/within/fs'/dev/sdXXXOk, looks like user space apps should handle errors in different whey. I mean some thing like, show notification about probable FS errors and so on.
AIX has ECORRUPT; maybe we should define that for the kernel/glibc?
Quoted 24 lines
Quoted 15 lines
Quoted 2 lines
- If fs is not fixed, file is lost? are blocks still allocated to this inode?
Yes, the blocks are still allocated.
Quoted 1 line
- debufs will not allow me to edit inode corrupt inode.
debugfs -n (disables checksum verification)
Quoted 1 line
- If i run fsck -y file is lost. Most user wont be able to recover it.
If you answer 'n' to the first prompt about the checksum failure, e2fsck will check the rest of the inode. If no other problems are found, it'll ask to correct the checksum.
Quoted 8 lines
I've wondered if perhaps e2fsck ought to do something like this when there's a checksum problem:
1. If the user didn't prohibit clearing the inode as the first potential action, ask if e2fsck should just clear the inode.
2. If not, run the regular checks.
3. If there's still a checksum error, ask to fix the checksum.
4. If the user doesn't want to fix it, ask to clear the inode.
Quoted 5 lines
sounds good.
Quoted 1 line
iow, e2fsck --verify-checksums-last
/dev/sdXXthis mean?
It would be a new flag to change the fsck behavior.
Quoted 2 lines
PS: More testing results from today. GRUB fails to install if
metadata_csumenabled. Should it be reported to GRUB devs?
Yes, please report the bug to them. metadata_csum is a ROCOMPAT feature, which means that grub will need to learn about checksums if it wants to do anything other than rewrites of existing file blocks.
--D
Am 17.01.2014 21:58, schrieb Darrick J. Wong:
Quoted 55 lines · Oleksij Rempel
Quoted 54 lines
Am 17.01.2014 20:21, schrieb Darrick J. Wong:
Quoted 53 lines · Oleksij Rempel
Quoted 51 lines
Am 17.01.2014 09:18, schrieb Oleksij Rempel:
Quoted 10 lines
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 8 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
Quoted 8 lines
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
I was playing with
metadata_csumtrying to kill my system and now i have some questions:first the test:
#find block number
sudo ./debugfs/debugfs -R "imap <3991825>"/dev/sdf1#copy block
sudo dd if=/dev/sdf1 bs=4K count=1 skip=15958163 of=corrupt_block.bin#change one byte
ghex corrupt_block.bin#kill inode
sudo dd of=/dev/sdf1 bs=4K count=1 seek=15958163 if=corrupt_block.binsudo ./debugfs/debugfs -R "stat <3991825>"
/dev/sdf1
#stat: Inode checksum does not match inode while reading inode 3991825so, inode is corrupt:
- ext4 can detect inode corruption. Great work! I like it :)
- in this case file will not be shown by Nautilus.
- ls will show some thing like this:4130898 drwx------ 8 oleksij oleksij 4096 Jan 17 09:31 Bilder
? -????????? ? ? ? ? ?ich-einfach_unverbesserlich_2.mkv
3991826 -rw-rw-r-- 1 oleksij oleksij 622038707 Jan 17 11:12 igor.mkv
3989506 drwxr-xr-x 26 oleksij oleksij 4096 Okt 9 23:11 linuxit means, i know there is some thing wrong, but i do not know which inode
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Unfortunately, either the whole stat call succeeds or it doesn't. Your best bet to find the inode is:
debugfs -n -R 'stat /path/within/fs'/dev/sdXXXOk, looks like user space apps should handle errors in different whey. I mean some thing like, show notification about probable FS errors and so on.
AIX has ECORRUPT; maybe we should define that for the kernel/glibc?
It would be awesome! :)
And some return code on mount if FS is not clean. Fsck is done automatically on interal drives, but never on hotplug devices.
Signature · 2 lines
Regards, Oleksij
Quoted 7 lines · Oleksij Rempel
Am 17.01.2014 03:00, schrieb Darrick J. Wong:
Quoted 6 lines · Oleksij Rempel
Quoted 4 lines
What is
metadata_csumstatus?i see there are benchmark updates on wiki page, but no updates for e2fsprogs. 1.43-WIP seems to be really old.
Quoted 7 lines
Quoted 2 lines
Still waiting for 1.43. I don't know if there are early adopters running 1.43-WIP without complaint, or if simply nobody's using it at all. :/
I didn't tested current master.git - my bad. It is not outdated :)
Beside, the wiki should be corrected. If you enable 64bit, it will need extents too.
I updated the howto. mke2fs (as of 1.42.9) should no longer allow extents,64bit on a filesystem.
--D
Quoted 7 lines
Are there any existing tools for error injection for file systems? Random read error from libata or silent data corruptions?
Signature · 2 lines
Regards, Oleksij