Check_disk and DRBD


#1

Maybe I’m just dumb but I can’t figure this out. I’m root and do a df then try to check the 3 mounts to see what space is avaliale. I want / /boot and /var/lib/mysql Background - drbd is basically netowork raid1. I’m trying this on the primary as the secondary doesn’t get mounted till the first goes down.

[root@mysql-1b ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p3 10317860 2405388 7388352 25% /
/dev/cciss/c0d0p1 101086 20181 75686 22%
* /boot**
none 2020268 0 2020268 0% /dev/shm
/dev/drbd0 92368656 19834760 67841840 23% /var/lib/mysql*

So you would think the command would be -
[root@mysql-1b ~]# /usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /dev/cciss/c0d0p1 /dev/cciss/c0d0p3 -p /dev/drbd0
Results
DISK OK - free space: /boot 73 MB (78% inode=99%); / 7215 MB (75% inode=92%);| /boot=19MB;83;88;0;98 /=2349MB;83;88;0;10076

So lets try with the actaull path.
root@mysql-1b ~]# /usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /dev/cciss/c0d0p1 /dev/cciss/c0d0p3 -p /dev/cciss/c0d0p2
Results
DISK OK - free space: /boot 73 MB (78% inode=99%); / 7215 MB (75% inode=92%);| /boot=19MB;83;88;0;98 /=2349MB;83;88;0;10076

In both cases I don’t get the drbd mount. Any thoughts.