[OpenIndiana-discuss] dismissing zpool upgrade notice [solved]
Jan Owoc
jsowoc at gmail.com
Thu Oct 4 17:07:52 UTC 2012
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 <thorsten.heit at vkb.de> 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
<richard.elling at gmail.com> 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 <fjwcash at gmail.com> 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 <jimklimov at cos.ru> wrote:
> Simplify that too with "zpool list":
>
> # zpool list -H -o health rpool
> ONLINE
Thank you all for your help,
Jan
More information about the OpenIndiana-discuss
mailing list