From 22aa36af20d28c65abe9c5ef96b45e643c27b19f Mon Sep 17 00:00:00 2001 From: cryx Date: Tue, 12 Jan 2010 12:55:01 +0000 Subject: Allow the user to continue with ZFS operations if the pool is in a DEGRADED state, but warn about it. --- ezjail-admin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ezjail-admin') 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 () { # check for the ZFS zpool to be online check_for_zfs _zpoolstatus=`/sbin/zpool list -H -o health ${ezjail_jailzfs%%/*} 2> /dev/null` - [ "${_zpoolstatus}" = "ONLINE" ] || exerr "Error: Your zpool does not exist or is not online." + [ "${_zpoolstatus}" = "DEGRADED" ] && echo "Warning: Your zpool is in a DEGRADED state." + [ "${_zpoolstatus}" = "ONLINE" -o "${_zpoolstatus}" = "DEGRADED" ] || exerr "Error: Your zpool does not exist or is not online." } ############################# -- cgit v1.2.3