Hi All,

I've been using ZFS for a while now - and everything's been going well. I use it under FreeBSD - but this question almost certainly should be the same answer, whether it's FreeBSD or Solaris (I think/hope :)...


Imagine if I have a zpool with 2 disks in it, that are mirrored:

"
NAME         STATE     READ WRITE CKSUM
vol          ONLINE       0     0     0
  mirror    ONLINE       0     0     0
    ad1     ONLINE       0     0     0
    ad2     ONLINE       0     0     0
"

(The device names are FreeBSD disks)

If I offline 'ad2' - and then did:

"
dd if=/dev/ad1 of=/dev/ad2
"

(i.e. make a mirror copy of ad1 to ad2 - on a *running* system).


What would happen when I tried to 'online' ad2 again?


I fully expect it might not be pleasant... I'm just curious as to what's going to happen.


When I 'online' ad2 will ZFS look at it, and be clever enough to figure out the disk is obviously corrupt/unusable/has bad meta data on it - and resilver accordingly?

Or is it going to see what it thinks is another 'ad1' and get a little upset?


I'm trying to setup something here so I can test what happens - I just thought I'd ask around a bit to see if anyone knows what'll happen from past experience.


Thanks,

-Karl

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to