Usual commit

This commit is contained in:
FSNotes App
2023-07-14 14:01:23 +02:00
parent a412f19c20
commit 8c27dd39b3
197 changed files with 4139 additions and 0 deletions

25
2021/ZFS cheatsheet.md Normal file
View File

@ -0,0 +1,25 @@
# ZFS cheatsheet
## Scrubbing
Every sunday at 6 in the morning
`0 6 * * 7 /sbin/zpool scrub zroot`
Get status with zpool status
## Mountpoint
`zfs set mountpoint=/myspecialfolder mypool`
## Create pool
`zpool create mypool /dev/ada2`
## Create subvolume
`zfs create zpool/jails`
## SSD Trim
`zpool trim <pool>` and `zpool set autotrim=on <pool>`