Table of Contents | ||||||
---|---|---|---|---|---|---|
|
The xrootd data server disk space is obtained twice a day and written to a nfs log directory. From these values a simple table with the last usage values is created:
...
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. Wiki Markup
DF
...
<date>
...
<server>
...
<totalSpace>
...
<freeSpace>
...
<%Used>
...
[<inodesFree>
...
<%inodesFree>
...
]
The foramt format 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.
Loading the disk space values to Oracle is performed by ScaLoadDiskusage which runs as a cronjob on fermilnx-v06 (but check ~glastdat/config/crontab) under the glastdat user.