Usual commit
This commit is contained in:
25
2021/ZFS cheatsheet.md
Normal file
25
2021/ZFS cheatsheet.md
Normal 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>`
|
||||
Reference in New Issue
Block a user