This has been solved on zfs-discuss. If someone finds this thread in the future, in summary:
On Tue, Oct 2, 2012 at 3:36 AM, Thorsten Heit <[email protected]> wrote: >> B) Is there a way to have "zpool status -x" only give output when the >> pool is actually exhibiting errors or is otherwise unavailable? (i.e. >> suppress the upgrade notice) > > Sorry, don't know... On Thu, Oct 4, 2012 at 10:14 AM, Richard Elling <[email protected]> wrote: > The return code for zpool is ambiguous. Do not rely upon it to determine > if the pool is healthy. You should check the health property instead. On Thu, Oct 4, 2012 at 10:36 AM, Freddie Cash <[email protected]> wrote: > You just simplified my "pool > health check" script immensely. Thank you! > > pstatus=$( zpool get health storage | grep "health" | awk '{ print $3 }' ) > if [ "${pstatus}" != "ONLINE" ]; then On Thu, Oct 4, 2012 at 10:45 AM, Jim Klimov <[email protected]> wrote: > Simplify that too with "zpool list": > > # zpool list -H -o health rpool > ONLINE Thank you all for your help, Jan _______________________________________________ OpenIndiana-discuss mailing list [email protected] http://openindiana.org/mailman/listinfo/openindiana-discuss
