- edited description
filesystem statistics error -- cannot parse device '/dev/mirror/gm0p2'
Issue #672
resolved
I have monit 5.24 and FreeBSD 11.1 and get this:
Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p2' Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p4' Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p5' Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p6' Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p7' Oct 4 10:37:12 server4 monit[90215]: filesystem statistics error -- cannot parse device '/dev/mirror/gm0p8'
I think the issue started with monit 5.24 and possible related to https://bitbucket.org/tildeslash/monit/issues/666
Comments (6)
-
reporter -
repo owner Unable to reproduce the problem, configuration on our lab system:
# gmirror status Name Status Components mirror/gm0 COMPLETE ada4 (ACTIVE) ada3 (ACTIVE) # sysctl kern.geom.conftxt kern.geom.conftxt: 0 DISK ada4 106954752 512 hd 15 sc 63 1 MIRROR mirror/gm0 106954240 512 2 PART mirror/gm0s1 106946560 512 i 1 o 4096 ty freebsd xs MBR xt 165 3 PART mirror/gm0s1a 106942464 512 i 1 o 0 ty freebsd-ufs xs BSD xt 7 0 DISK ada3 106954752 512 hd 15 sc 63 1 MIRROR mirror/gm0 106954240 512 2 PART mirror/gm0s1 106946560 512 i 1 o 4096 ty freebsd xs MBR xt 165 3 PART mirror/gm0s1a 106942464 512 i 1 o 0 ty freebsd-ufs xs BSD xt 7 ...
Monit 5.24.0 finds the PART and parent disk with no problem.
Please can you send output of
sysctl kern.geom.conftxt
from your system? -
reporter monitrc:
check device root with path / if SPACE usage > 80% then alert check device tmp with path /tmp if SPACE usage > 80% then alert check device var with path /var if SPACE usage > 80% then alert check device usr with path /usr if SPACE usage > 80% then alert check device home with path /home if SPACE usage > 80% then alert check device home2 with path /home2 if SPACE usage > 80% then alert check device tmpfs with path /tmpfs if SPACE usage > 80% then alert
sysctl kern.geom.conftxt
kern.geom.conftxt: 0 DISK ada1 2000398934016 512 hd 16 sc 63 1 PART ada1p8 1274549313024 512 i 8 o 725849604096 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p8 1274549312512 512 1 PART ada1p7 549755813888 512 i 7 o 176093790208 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p7 549755813376 512 1 PART ada1p6 17179869184 512 i 6 o 158913921024 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p6 17179868672 512 1 PART ada1p5 68719476736 512 i 5 o 90194444288 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p5 68719476224 512 1 PART ada1p4 17179869184 512 i 4 o 73014575104 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p4 17179868672 512 1 PART ada1p3 68719476736 512 i 3 o 4295098368 ty freebsd-swap xs GPT xt 516e7cb5-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p3 68719476224 512 1 PART ada1p2 4294967296 512 i 2 o 131072 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p2 4294966784 512 1 PART ada1p1 65536 512 i 1 o 65536 ty freebsd-boot xs GPT xt 83bd6b9d-7f41-11dc-be0b-001560b84f0f 2 LABEL gptid/aa25f2b9-e19e-11e3-9792-d43d7ef8f8ef 65536 512 i 0 o 0 0 DISK ada0 2000398934016 512 hd 16 sc 63 1 PART ada0p8 1274549313024 512 i 8 o 725849604096 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p8 1274549312512 512 1 PART ada0p7 549755813888 512 i 7 o 176093790208 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p7 549755813376 512 1 PART ada0p6 17179869184 512 i 6 o 158913921024 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p6 17179868672 512 1 PART ada0p5 68719476736 512 i 5 o 90194444288 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p5 68719476224 512 1 PART ada0p4 17179869184 512 i 4 o 73014575104 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p4 17179868672 512 1 PART ada0p3 68719476736 512 i 3 o 4295098368 ty freebsd-swap xs GPT xt 516e7cb5-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p3 68719476224 512 1 PART ada0p2 4294967296 512 i 2 o 131072 ty freebsd-ufs xs GPT xt 516e7cb6-6ecf-11d6-8ff8-00022d09712b 2 MIRROR mirror/gm0p2 4294966784 512 1 PART ada0p1 65536 512 i 1 o 65536 ty freebsd-boot xs GPT xt 83bd6b9d-7f41-11dc-be0b-001560b84f0f 2 LABEL gptid/a800aa50-7709-11e7-9c81-d43d7ef8f8ef 65536 512 i 0 o 0
gmirror status:
Name Status Components mirror/gm0p2 COMPLETE ada0p2 (ACTIVE) ada1p2 (ACTIVE) mirror/gm0p3 COMPLETE ada0p3 (ACTIVE) ada1p3 (ACTIVE) mirror/gm0p4 COMPLETE ada0p4 (ACTIVE) ada1p4 (ACTIVE) mirror/gm0p5 COMPLETE ada0p5 (ACTIVE) ada1p5 (ACTIVE) mirror/gm0p6 COMPLETE ada0p6 (ACTIVE) ada1p6 (ACTIVE) mirror/gm0p7 COMPLETE ada0p7 (ACTIVE) ada1p7 (ACTIVE) mirror/gm0p8 COMPLETE ada0p8 (ACTIVE) ada1p8 (ACTIVE)
df:
Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/mirror/gm0p2 4053308 662720 3066324 18% / devfs 1 1 0 100% /dev /dev/mirror/gm0p7 520003536 86374060 392029196 18% /home /dev/mirror/gm0p8 1205588356 163323716 945817572 15% /home2 /dev/mirror/gm0p4 16233660 43116 14891852 0% /tmp /dev/mirror/gm0p6 16233660 2920088 12014880 20% /usr /dev/mirror/gm0p5 64995324 9005108 50790592 15% /var tmpfs 8388608 76960 8311648 1% /tmpfs
-
repo owner - changed status to resolved
Fixed: Issue
#672: FreeBSD: Support I/O statistics for mirror partitions.→ <<cset b3ebff6bacb8>>
-
repo owner thanks for data, the problem should be fixed, please can you test the development snapshot?:
wget https://bitbucket.org/tildeslash/monit/get/master.tar.gz tar -xzf master.tar.gz cd tildeslash* ./bootstrap ./configure make
-
reporter Thanks for your help. It works.
As I use freebsd ports I want to avoid custom installation. So I did:
cd /usr/ports/sysutils/monit make deinstall make fetch extract cd work/monit-5.24.0/src/device fetch https://bitbucket.org/tildeslash/monit/raw/b3ebff6bacb8c31c50b671920a8ff96a55a3b5ee/src/device/sysdep_FREEBSD.c cd /usr/ports/sysutils/monit make install
- Log in to comment