Skip to content

Instantly share code, notes, and snippets.

@kilfu0701
Created December 23, 2022 08:17
Show Gist options
  • Save kilfu0701/39d1ccc6178cc8a16bd5edf8f678456a to your computer and use it in GitHub Desktop.
Save kilfu0701/39d1ccc6178cc8a16bd5edf8f678456a to your computer and use it in GitHub Desktop.
ZFS related command
## show pool configs
zfs get all zfs10
## print arc summary
arc_summary
## watch arc stats every 2 sec
watch -n 2 grep arc /proc/spl/kstat/zfs/arcstats
## test write speed
sudo dd if=/dev/zero of=/mnt/zfs10/test1.img bs=1GB count=1 oflag=direct
## zfs parameters file path
ls -al /sys/module/zfs/parameters/
## zfs.conf related, should be auto apply on reboot
sudo vim /etc/modprobe.d/zfs.conf
>>>>> conf contents sample <<<<<
options zfs zfs_arc_max=53687091200
options zfs zfs_arc_meta_limit=188239090960
options zfs zfs_arc_prune_task_threads=16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment