Skip to content
Snippets Groups Projects
Commit 6bd12129 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle two ways that zfs can fail.

parent 3e4984df
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,10 @@ trap "rm -f $FILESYSTEMS $ZPOOLS" 0 ...@@ -23,9 +23,10 @@ trap "rm -f $FILESYSTEMS $ZPOOLS" 0
# FIXME: We need a check_zpool command, that checks the status of the pool, # FIXME: We need a check_zpool command, that checks the status of the pool,
# and the capacity of the root zfs of that pool, and maybe also recursively # and the capacity of the root zfs of that pool, and maybe also recursively
# checks all child zfs. # checks all child zfs.
if [ -f /usr/sbin/zpool ] if [ -f /usr/sbin/zpool ] && [ -L /dev/zfs ]
then then
/usr/sbin/zpool list -H -o name \ /usr/sbin/zpool list -H -o name \
| grep -v 'no pools available' \
| tee $ZPOOLS \ | tee $ZPOOLS \
| awk '{ | awk '{
print "command[check-zfs-" $1 "]='$prefix'/libexec/check_zfs " $1 print "command[check-zfs-" $1 "]='$prefix'/libexec/check_zfs " $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment