Skip to content

zpool-set 1.1.0

Choose a tag to compare

@olgeni olgeni released this 01 Sep 20:07
· 11 commits to master since this release
  • Vdev properties (vdevprops(7)): v opens the vdev tree of the pool (type, state, size, errors, comment) and enter shows a vdev's properties with the same editor: the fault thresholds zfsd/zed read (checksum_n/t, io_n/t, slow_io_n/t, slow_io_events), failfast, allocating, sit_out/autosit on raidz/draid, comment, path, the statistics and the vdev's user properties. Pool and vdev edits apply together (zpool set io_n=10 tank mirror-0).
  • Pre-flight for vdevs follows the kernel: bootsize is read-only despite the man page, path only on leaves and only under /dev/, allocating only on top-level vdevs, sit_out/autosit only on raidz/draid, the root vdev needs feature@vdev_zaps_v2; a threshold on a leaf is lost when the leaf is replaced, and goes back to the daemon's default by being set to 2^64-1.
  • CLI: -vdev VDEV (repeatable; root, a leaf's path, or all) scopes -list, -get, -set and -reset; -vdevs prints the tree; -catalogue and -describe cover both catalogues; -dump/-restore include the vdev properties.
  • Configuration file ~/.config/zpool-set/config (ZPOOLSET_CONFIG, XDG) with mouse, features and color, and the matching -mouse, -features=false and -color=false flags.
  • Mouse support (m toggles): click a row to select it, click again to open it, the wheel scrolls; works in the editor too.
  • The pool comment is checked against the kernel's 32-character limit.