Closed AceSlash closed 3 years ago
Currently the vdev number of READ WRITE and CKSUM failure is taken from the output of the zpool status command.
zpool status
This is fine until you get a number high enough (>1000) and get the human readable output like "2K", which breaks the item.
Solution is simply to modify the template and use the -p flag which exists for this purpose.
-p
The "-p" flag was introduced between ZFS 0.8.0-rc1 and -rc2. As a result, it cannot be used everywhere.
To avoid issue, I will use numfmt --from=si instead.
numfmt --from=si
Currently the vdev number of READ WRITE and CKSUM failure is taken from the output of the
zpool status
command.This is fine until you get a number high enough (>1000) and get the human readable output like "2K", which breaks the item.
Solution is simply to modify the template and use the
-p
flag which exists for this purpose.