disaster (my fault...)

4 views
Skip to first unread message

Stefano Z.

unread,
Feb 17, 2010, 3:42:33 AM2/17/10
to zfs-...@googlegroups.com
hello

i've made an fsck on the wrong partition (before was ext2 and now
zfs-fuse) before i discover the error
the damage was made :-/.
Fortunately the partition is visible and imported but after a scrub
(and MANY files corrupted) i see a message like this:

root ~ # zpool status -v
pool: zhome
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://www.sun.com/msg/ZFS-8000-8A
scrub: scrub completed after 0h4m with 13 errors on Wed Feb 17 09:11:06 2010
config:

NAME STATE READ WRITE CKSUM
zhome ONLINE 0 0 20
sda2 ONLINE 0 0 42 1K repaired

errors: Permanent errors have been detected in the following files:

zhome/homezfs:<0xdf05>
zhome/homezfs:<0x9>
zhome/homezfs:<0xc>
zhome/homezfs:<0x320e>
zhome/homezfs:<0x401e>
zhome/homezfs:<0x92c>
zhome/homezfs:<0xa335>
zhome/homezfs:<0x4a45>
zhome/homezfs:<0xcd4e>
zhome/homezfs:<0xdfc2>
zhome/homezfs:<0xc7c3>
zhome/homezfs:<0xc9c4>
zhome/homezfs:<0xcee0>
---

i have deleted all corrupted files but the one you can see just above
like <0xcee0> etc, what i can do ?

thanks.

Stefano Z.

unread,
Feb 17, 2010, 4:17:08 AM2/17/10
to zfs-...@googlegroups.com
what i have to do to make linux does not recognize 'old' partition
format existing before zfs-fuse filesytem ?

sgheeren

unread,
Feb 17, 2010, 5:21:17 AM2/17/10
to zfs-...@googlegroups.com
You should restore from backup (as there is noredundancy to self-heal. A
mirror or any type of raidz would have helped you out no problem.

All a single (or striped) vdev can do for you is detect what corruptions
there are.

# zpool scrub zhome

To make sure you hit every corner of the fs/pool

Good luck

sgheeren

unread,
Feb 17, 2010, 5:22:32 AM2/17/10
to zfs-...@googlegroups.com
Stefano Z. wrote:
> what i have to do to make linux does not recognize 'old' partition
> format existing before zfs-fuse filesytem ?
>
>
I have no answer to that. The reverse also happens: I hate that I cannot
even 'zpool destroy' on a former zpool that has been overwritten

Will Ashford

unread,
Feb 17, 2010, 1:11:26 PM2/17/10
to zfs-...@googlegroups.com
On Wed, Feb 17, 2010 at 12:42 AM, Stefano Z.
<stefano....@gmail.com> wrote:
> i have deleted all corrupted files but the one you can see just above
> like <0xcee0> etc, what i can do ?

Run another scrub, that will clear the list of resolved data errors.

Will

sgheeren

unread,
Feb 17, 2010, 2:37:26 PM2/17/10
to zfs-...@googlegroups.com
If simply clearing the flags is the objective, why don't you simply
'zpool clear'?

$0.02
> Will
>
>

Will Ashford

unread,
Feb 17, 2010, 5:38:30 PM2/17/10
to zfs-...@googlegroups.com
Because, for me at least, zpool clear doesn't clear data error
warnings even if the damaged file has since been deleted.

Will

> --
> To post to this group, send email to zfs-...@googlegroups.com
> To visit our Web site, click on http://zfs-fuse.net/

Stefano Z.

unread,
Feb 18, 2010, 3:38:38 AM2/18/10
to zfs-...@googlegroups.com
after i've delete all corrupted files and re-run scrub, all errors
gone, my home is usable again and i've cleared al error (zpool clear)
:)
GREAT zfs-fuse!!!
Reply all
Reply to author
Forward
0 new messages