Bug 148490 - [zfs]: zpool attach - resilver bidirectionally, and reports incorrect time
Summary: [zfs]: zpool attach - resilver bidirectionally, and reports incorrect time
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-11 06:10 UTC by com"@FreeBSD.org
Modified: 2025-01-19 06:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description com"@FreeBSD.org freebsd_committer freebsd_triage 2010-07-11 06:10:06 UTC
I just attached an unused ZFS (version 14) disk to another (version 13) to form a mirror, supposedly destroying the old disk.  However, zpool resilver went bidirectionally, and reported incorrect time both during and after completion:

$ zpool status
  pool: mypool
 state: ONLINE
 scrub: resilver completed after 307445734561825858h7m with 0 errors on Sun Jul 11 05:44:51 2010
config:

        NAME        STATE     READ WRITE CKSUM
        mypool      ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            ad4     ONLINE       0     0     0  528M resilvered
            ad6     ONLINE       0     0     0  1.11T resilvered

errors: No known data errors
$


1. Resilver time should not be 307445734561825858h7m
2. zpool resilver should be unidirectional (from "master" to "slave"), why did it resilvered both ways (528M and 1.11T)?
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2010-07-11 09:18:55 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

reassign to zfs team
Comment 2 Martin Matuska freebsd_committer freebsd_triage 2010-07-11 22:11:20 UTC
The fix for this problem is part of the upcoming upgrade of ZFS to v15.
A patch for 8-STABLE and 8.1-RELEASE users will be provided.
Comment 3 Alvin Poon 2010-07-14 16:41:24 UTC
Thanks Martin for the info.

I'm just wondering... does this problem affect the integrity of the data =
on the mirror at all?  I mean... did it actually perform a =
bi-directional resilvering?  Could it have corrupted my data?

Alvin

On 12 Jul 2010, at 5:11 AM, Martin Matuska wrote:

> The fix for this problem is part of the upcoming upgrade of ZFS to =
v15.
> A patch for 8-STABLE and 8.1-RELEASE users will be provided.

Alvin Poon
aspoon@gmail.com
Comment 4 Martin Matuska freebsd_committer freebsd_triage 2010-07-14 22:33:28 UTC
No, there is no data corruption.
Just some data is read from the source drive and then written to both
drives instead only to the resilvering drive (this is actually a waste
of resources).

DÅa 14. 7. 2010 17:41, Alvin Poon wrote / napísal(a):
> Thanks Martin for the info.
>
> I'm just wondering... does this problem affect the integrity of the data on the mirror at all?  I mean... did it actually perform a bi-directional resilvering?  Could it have corrupted my data?
>
> Alvin
>
> On 12 Jul 2010, at 5:11 AM, Martin Matuska wrote:
>
>   
>> The fix for this problem is part of the upcoming upgrade of ZFS to v15.
>> A patch for 8-STABLE and 8.1-RELEASE users will be provided.
>>     
> Alvin Poon
> aspoon@gmail.com
>
>
>
>
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:25 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 6 Piotr Pawel Stefaniak freebsd_committer freebsd_triage 2021-10-07 16:01:54 UTC
I don't know how to test this easily, but given Martin's comment, the problem has been fixed long time ago.
Comment 7 Mark Linimon freebsd_committer freebsd_triage 2025-01-19 06:07:14 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
As well, many newer versions of ZFS have been imported.

Please re-open if it is still a problem on a supported version.