You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Monitoring

Free Disk Space

Evert server runs a daily cron job that obtains the free disk space of a server. These values are written to files in nfs and
an trscrontab job creates the webpage with the current free disk space

Cron job that collects the disk space info

The cronjob, running in crontab on each xrootd data server, is

/opt/xrootd/admin/mon_diskspace.sh

It collects the total and free diskspcae as well as the inode usage for ufs file systems (zfs has no inode restriction).

The disk usage is stored in files:
.bq /nfs/farm/g/glast/u15/xrootd/diskspace/df_server_YYYYMM
where server is the server name and YYYYMM is the year and month the values were collected. For example
/nfs/farm/g/glast/u15/xrootd/diskspace/df_wain020_200806 contains all disk usage values for wain021 for Juni, 2008.
These files contain one line per collection with:

DF <date> server totalSpace freeSpace %Used [inodesFree %inodesFree]

  • No labels