2) Following Chris's advice to do more with snapshots, I
   played with his cron-triggered snapshot routine:
   http://blogs.sun.com/chrisg/entry/snapping_every_minute

   Now, after a couple of days, zpool history shows almost
   100,000 lines of output (from all the snapshots and
   deletions...)

   How can I purge or truncate this log (which has got to be
   taking up several Mb of space, not to mention the ever
   increasing sluggishness of the command...)



You can check out the comment at the head of spa_history.c:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/ common/fs/zfs/spa_history.c

The history is implemented as a ring buffer (where the size is MIN (32MB, 1 %of your capacity)): http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/ common/fs/zfs/spa_history.c#105

We specifically didn't allow the admin the ability to truncate/prune the log as then it becomes unreliable - ooops i made a mistake, i better clear the log and file the bug against zfs ....

eric

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to