[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: lvm & logwatch



On Thu, Jan 27, 2005 at 12:43:03PM +0000, Luciano Miguel Ferreira Rocha wrote:
> I can't believe I'm the only one going through the logwatch email! :)
> 
> With lvm/dm, the Disk Space information is not very useful:
> /dev/mapper/knuth-root
> /dev/hda1              99M   20M   74M  22% /boot
> /dev/mapper/knuth-build
> /dev/mapper/knuth-tmp
> /dev/mapper/knuth-var

Yeah, I just "fixed" this on my system:

/etc/log.d/scripts/services/zz-disk_space

Change:

 df -h | grep '^/dev/'

To:

 df -h | grep -A1 '^/dev/'

It's somewhat of a hack, but it works in my case...

/dev/sda8            1012M  846M  116M  89% /
/dev/sda3              99M   26M   69M  27% /boot
none                 1014M     0 1014M   0% /dev/shm
/dev/sda9            1012M   33M  928M   4% /tmp
/dev/sda5             9.7G  1.9G  7.3G  21% /usr
/dev/mapper/vg01-lv_data
                      111G   24G   81G  23% /var
/dev/sda7             9.7G   97M  9.1G   2% /home
/dev/mapper/vg02-content
                      1.5T  140G  1.3T  10% /srv


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]