Hi, guys,

I have add devid support for EFI, (not putback yet) and  test it with a
zfs mirror, now the mirror can recover even a usb harddisk is unplugged
and replugged into a different usb port.

But there is still something need to improve. I'm far from zfs expert,
correct me if I'm wrong.

First, zfs should sense the hotplug event.
I use zfs status to check the status of the pool. But it seems
zfs does not received the hotplugged event so it does not reflect the change of the zpool status until some read/write operation is issues. Specifically, when I unplug a disk, the status is still online, until I tried some write operation
or write some time. And after a replugged the device, the status remained
degraded, until I issues a zpool scrub. This is a little tricky before I figured it out.

Second, zfs should not panic when usb disk is gone.
Zfs will panic for a pool composed on only one usb disk when the disk is unplugged.
It's better to change the status of the pool to something like UNAVAILABLE
when the disk is unplugged and return to ONLINE after it's replugged. This goal
may be hard to achieve because it's a tough decision as to whether or not to
panic when the storage failed. And seems there's no mechanism for zfs to tell if it's a usb harddisk or a fixed disk. Anyway, because the hotpluggable nature of
usb harddisk, unplug it unintentionally should not panic.

my 1c

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

Reply via email to