summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-01-12 12:55:01 +0000
committercryx <cryx@h3q.com>2010-01-12 12:55:01 +0000
commit22aa36af20d28c65abe9c5ef96b45e643c27b19f (patch)
tree13ad6db44114d726d2b1b22adfec5be8afbc76ea
parent9eeb4ed216b0eede48eadb03dc8d84de597652e2 (diff)
Allow the user to continue with ZFS operations if the pool is in a DEGRADED state, but warn about it.
-rwxr-xr-xezjail-admin3
1 files changed, 2 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 599c82c..417eb0e 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -384,7 +384,8 @@ check_for_zpool () {
384 # check for the ZFS zpool to be online 384 # check for the ZFS zpool to be online
385 check_for_zfs 385 check_for_zfs
386 _zpoolstatus=`/sbin/zpool list -H -o health ${ezjail_jailzfs%%/*} 2> /dev/null` 386 _zpoolstatus=`/sbin/zpool list -H -o health ${ezjail_jailzfs%%/*} 2> /dev/null`
387 [ "${_zpoolstatus}" = "ONLINE" ] || exerr "Error: Your zpool does not exist or is not online." 387 [ "${_zpoolstatus}" = "DEGRADED" ] && echo "Warning: Your zpool is in a DEGRADED state."
388 [ "${_zpoolstatus}" = "ONLINE" -o "${_zpoolstatus}" = "DEGRADED" ] || exerr "Error: Your zpool does not exist or is not online."
388} 389}
389 390
390############################# 391#############################