Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Error in /usr/local/share/lpreserver/backend/zfsmon.sh #1528

Open
maurizio-emmex opened this issue Feb 17, 2018 · 0 comments
Open

Error in /usr/local/share/lpreserver/backend/zfsmon.sh #1528

maurizio-emmex opened this issue Feb 17, 2018 · 0 comments

Comments

@maurizio-emmex
Copy link

In my laptop I have:
$ zpool status -v
pool: tank
state: ONLINE
scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM                                                                                                                                                  
    tank        ONLINE       0     0     0                                                                                                                                                  
      ada0p6    ONLINE       0     0     0                                                                                                                                                  

errors: No known data errors

pool: tank1
state: UNAVAIL
status: One or more devices could not be opened. There are insufficient
replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-3C
scan: none requested
config:

    NAME                  STATE     READ WRITE CKSUM                                                                                                                                        
    tank1                 UNAVAIL      0     0     0                                                                                                                                        
      617680955993110993  UNAVAIL      0     0     0  was /dev/da0p2

The zfsmon.sh script send a mail with this body:
[: -: bad number
[: -: bad number

This patch solves the problem:
$ diff /usr/local/share/lpreserver/backend/zfsmon.sh /usr/local/share/lpreserver/backend/zfsmon.sh.orig
46,49d45
< if [ "$poolCap" = "-" ] ; then
< continue
< fi
<

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant