Advertisement
grahamperrin

check that all ZFS snapshots within a pool are without holds

Oct 29th, 2017
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% sh
  2. $ zfs get -Ht snapshot userrefs | grep -v $'\t'0 | cut -d $'\t' -f 1 | tr '\n' '\0' | xargs -0 zfs holds
  3. NAME TAG TIMESTAMP
  4. hpelitebook8570p/an example@20171017-1331 Yeah baby, I see you shaking that class Sat Oct 7 13:33 2017
  5. $ date ; uname -v
  6. Sun 29 Oct 2017 18:07:10 GMT
  7. FreeBSD 12.0-CURRENT #0 r320869: Mon Jul 10 13:57:55 UTC 2017 [email protected]:/usr/obj/usr/src/sys/GENERIC
  8. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement