[OpenIndiana-discuss] auto-snapshot replicate problems
John McEntee
jmcentee at stirling-dynamics.com
Mon Mar 26 14:37:14 UTC 2012
Just reply just in-case someone else comes across this post.
Altering the time-slider daemon would be tricky, but writing my own with a
crontab would still take some time to replicate all the features I would
like (clearing up old snapshots etc.)
As the auto-replicate script is use ( any other script would be the same)
needs to know the last destination snapshot and the current sending
snapshot. I have implemented a simple zfs hold and zfs release to lock the
last snapshot sent (tag of destination hostname) and release the previous
one.
John
-----Original Message-----
From: Milan Jurik [mailto:milan.jurik at xylab.cz]
Sent: 14 March 2012 11:01
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] auto-snapshot replicate problems
Hi,
I think time-slider daemon is in JDS consolidation. But the question is
- why do you want to hack it and maintain own hack? Why not to create zfs
snapshots by own crontab entry?
Best regards,
Milan
On 14.03.2012 12:38, John McEntee wrote:
> I have a problem trying to keep a second fileserver in sync with the
> primary one.
>
>
>
> I have a script (auto-replicate) that I have slightly altered that
> basically
> checks the latest snapshot of the both master server and the dr
> server. It
> then does a send -I if there is a difference. This used to work fine
> in the
> old versions of the time-slider service.
>
>
>
> The problem I have is the later version of the time-slider service in
> OpenIndiana cleans up old snapshots of zero size, which means the
> latest
> snapshot on the dr server no longer exists on the master server so
> the send
> -I fails.
>
>
>
> My fix would be to hack the time-slider service to not clean up the
> zero
> size snapshots. Please can anyone point me in the right direction? I
> cannot
> even find the code at the moment. I would also be interested in any
> other
> solutions
>
>
>
> Thanks
>
>
>
> John
>
>
>
>
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________________________________
The contents of this e-mail and any attachment(s) are strictly confidential and are solely for the person(s) at the e-mail address(es) above. If you are not an addressee, you may not disclose, distribute, copy or use this e-mail, and we request that you send an e-mail to admin at stirling-dynamics.com and delete this e-mail. Stirling Dynamics Ltd. accepts no legal liability for the contents of this e-mail including any errors, interception or interference, as internet communications are not secure. Any views or opinions presented are solely those of the author and do not necessarily represent those of Stirling Dynamics Ltd. Registered In England No. 2092114 Registered Office: 26 Regent Street, Clifton, Bristol. BS8 4HG
VAT no. GB 464 6551 29
_______________________________________________________________________
This e-mail has been scanned for all viruses MessageLabs.
More information about the OpenIndiana-discuss
mailing list