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

Compare with Current View Page History

« Previous Version 3 Next »

Server Disk Usage

Twice a day a cron job runs on each xrootd data server and obtains the disk usage of that server. These values are written to files in nfs and a trscrontab job creates the webpage with the current
free diskspace

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 restrictions).

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
.bq /nfs/farm/g/glast/u15/xrootd/diskspace/df_wain020_200806
contains all disk usage values for wain021 for Juni, 2008.

Each line in these files shows the disk usage for a particular date. The format is:

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

The foramt of date is YYYYMMDDTHHMMSS, e.g. 20080712T123258. The totalSpace and freeSpace are in GB. The inode info is only shown for serves that use the ufs file system (all sulkies) but not for the servers that employ zfs.
In order to calculate the free disk and total disk space of the xrootd cluster the values, taken around the same time , for all data servers have to be summed.

----

  • No labels