[zfs-auto-snapshot] Logging changes needed?
Niall Power
Niall.Power at Sun.COM
Thu Sep 18 20:29:34 PDT 2008
Hi Tim,
There are a number of reserved UIDs (< 100) such as gdm, xvm. I think we
need to have a UID slot reserved with ON as Darren Moffat pointed out.
Usually these accounts have "/" as a home directory though so we will
still be stuck with the same problem. How about using the local mail box?
That's where cron redirects standard output/errors to from cron jobs anyway.
Syslog is also a good option, although we would need to be careful about
being
too verbose when logging to syslog. Probably best to keep it to summary type
info or significant errors. For more detailed info we could direct users to
zfssnap's mailbox
Cheers,
Niall.
Tim Foster wrote:
> Hi all,
>
> I've a quick question you guys might be able to help with.
>
> SXCE doesn't automatically create an /export/home directory, which means
> that the current method of logging to files in /export/home/zfssnap is
> going to be awkward when we go into nv_100.
>
> We could do something bad, and create that directory, but it would seem
> to be adding a mostly unnecessary directory to the machine.
>
> Logging to SMF would be the best solution, but because we're running
> from a cron job, we can't do that either (the SMF log files aren't
> writable by the zfssnap user)
>
> We can't write into /var/log either - owned by root.
>
> So, the alternative (and my suggestion), is to not bother logging to
> files at all, and just emit syslog messages via logger(1) - this means
> zfssnap wouldn't need a home directory, we'd just rely on syslog to do
> the right thing.
>
> How does that sound ?
>
> cheers,
> tim
>
>
>
> _______________________________________________
> zfs-auto-snapshot mailing list
> zfs-auto-snapshot at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-auto-snapshot
>
More information about the zfs-auto-snapshot
mailing list