HAST + ZFS self healing? Hot spares?

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu May 19 23:26:19 UTC 2011


On Thu, May 19, 2011 at 04:22:57PM -0700, Freddie Cash wrote:
> With HAST, there's only a couple of small changes needed:
>  - zpool offline poolname diskname        <-- removes the /dev/hast node
> from the pool
>  - hastctl role init diskname             <-- removes the /dev/hast node
>  - remove dead disk
>  - insert new disk
>  - partition, label, etc as needed
>  - hastctl role create diskname           <-- creates the hast resource
>  - hastctl role primary diskname          <-- creates the new /dev/hast node
>  - zpool replace poolname olddisk newdisk <-- adds the /dev/hast node to
> pool
>  - wait for resilver to complete
> 
> The downside to this setup is that the data on the disk in the secondary
> node is lost, as the resilver of the disk on the primary node recreates all
> the data on the secondary node.  But, at least then you know the data is
> good on both disks in the HAST resource.

It shouldn't be the case. Primary HAST node should synchronize data from
secondary HAST node, as primary has new disk. This should allow you to
simply 'zpool online poolname disk' instead of replacing it.
It doesn't work that way for you?

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20110519/31dd35aa/attachment.pgp


More information about the freebsd-fs mailing list