This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:zfsreminders [2022/08/07 01:44] – oemb1905 | computing:zfsreminders [2022/11/13 04:25] – oemb1905 | ||
---|---|---|---|
Line 46: | Line 46: | ||
zfs load-key pool/ | zfs load-key pool/ | ||
zfs mount pool/ | zfs mount pool/ | ||
+ | | ||
+ | If you need to delete a snapshot, do the following: | ||
+ | |||
+ | zfs destroy -r -n pool/ | ||
| | ||
To create snapshots, here is a reasonable template: | To create snapshots, here is a reasonable template: | ||
Line 56: | Line 60: | ||
zfs list -H -o name -t snapshot | xargs -n1 zfs destroy | zfs list -H -o name -t snapshot | xargs -n1 zfs destroy | ||
| | ||
- | To add a zfs cache hard drive to your pool, do the following: | + | To add a zfs cache or slog hard drive to your pool, do the following: |
zpool add pool cache / | zpool add pool cache / | ||
+ | zpool add pool log / | ||
To view current snapshots, do the following: | To view current snapshots, do the following: | ||
Line 80: | Line 85: | ||
zpool list | zpool list | ||
| | ||
- | Also, .... | + | Also, to see whether cache volume is necessary, run and look at cache hit/miss ratio: |
+ | |||
+ | arc_summary | ||
+ | |||
+ | Change location of the keys for your encrypted datasets: | ||
+ | |||
+ | sudo zfs set keylocation=file:/// | ||
- | --- // | + | --- // |