Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G'day Guys,
- In episode 139 you had a couple of questions I thought I would respond to.
- For John - Destroying zfs datasets
- While Allen's suggestion of keeping everything under a parent dataset
- is a good idea, you may not always want to destroy every child set.
- For an example take the poudriere layout, say I have
- /usr/local/poudriere/jails/101amd64
- /usr/local/poudriere/jails/101i386
- /usr/local/poudriere/jails/102amd64
- /usr/local/poudriere/jails/102i386
- /usr/local/poudriere/jails/103amd64
- /usr/local/poudriere/jails/103i386
- and I want to get rid of all the 10.1 and 10.2 filesystems - destroying
- poudriere/jails will also destroy the 10.3 filesystems I want to keep.
- To handle this situation I would use -
- zfs list -o name | awk '/poudriere/ && (/101/ || /102/)' | xargs -L1 zfs destroy -R
- For Thomas - question 2 - missing port messages
- You can get the message of an installed port with
- pkg info -D security/tor
- or
- pkg info -D tor-0.2.7.6_1
- Which can be expanded to go through all installed ports messages with
- pkg info -qa | xargs pkg info -D | more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement