Created
December 23, 2022 08:17
-
-
Save kilfu0701/39d1ccc6178cc8a16bd5edf8f678456a to your computer and use it in GitHub Desktop.
ZFS related command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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