On Sat, Mar 28, 2009 at 5:40 PM, Fajar A. Nugraha <fa...@fajar.net> wrote: > On Sun, Mar 29, 2009 at 3:40 AM, Brent Jones <br...@servuhome.net> wrote: >> I have since modified some scripts out there, and rolled them into my >> own, you can see it here at pastebin.com: >> >> http://pastebin.com/m3871e478 > > Thanks Brent. > > Your script seems to handle failed replication and locking pretty well. > It doesn't seem to log WHY the replication failed though, so I think > there should be something that captures stderr on line 91. > > One more question, is there anything on that script that requires ksh? > A quick glance seems to indicate that it will work with bash as well. > > Regards, > > Fajar >
I'll see about capturing from stderr, something I should've added anyways. It would probably work under bash too, but some of the case checking came from the original Sun scripts, which were in KSH. I looked it up, and bash has -z string checking, so, everything 'should' work under bash. I'll test on Monday I'd love to see others improve on the original Sun ones, or parts of mine... I only say that because the "dependency" checking, and the "locking" were something that I didn't see in any one elses scripts. I did it a pretty lame way I'm sure, hopefully someone can find a better way :) CC:ing opensolaris-discuss, as others are probably asking similar questions about snapshot replication. -- Brent Jones br...@servuhome.net _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss