Re: Make ZFS auto-destroy snapshots when the out of space?

看板FB_stable作者時間15年前 (2010/05/31 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串16/23 (看更多)
On Sun, May 30, 2010 at 08:33:40PM -0400, David Magda wrote: > On May 29, 2010, at 16:07, Kirk Strauser wrote: > > >I'd propose standardizing on an attribute like > >org.freebsd:allowautodestroy. Modify ZFS's disk full behavior [...] > >Also run a daily periodic script to ensure that the free space stays > >below a configurable threshold each day so that ZFS isn't constantly > >butting up against completely full drives. > > > Why not simply have a script that runs and checks for pool usage and > then deletes snapshots with that attribute if necessary? Why do you > need to have have it built into ZFS? Suggestion: zfs can have settings that trigger an event to be delivered to devd when a filesystem hits a certain percentage full (or under a certain percentage free space left). That way you can have the event triggered at the filesystem level, which I believe is the correct thing to do (so you're not polling), and also delivers the level of control you want. Regards, Gary _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1C0mfF7o (FB_stable)
討論串 (同標題文章)
完整討論串 (本文為第 16 之 23 篇):
文章代碼(AID): #1C0mfF7o (FB_stable)