58ddb97d87
Added schedules Added management classes for a node Added clientopts to nodes Added schedule and event information
52 lines
2.0 KiB
PHP
52 lines
2.0 KiB
PHP
<table width="100%">
|
|
<?php foreach (array('BACKUP','ARCHIVE') as $dtype) { ?>
|
|
<tr>
|
|
<td style="width: 100%; vertical-align: top;">
|
|
<table class="box-full">
|
|
<tr>
|
|
<td class="head" colspan="2"><?php echo $dtype=='BACKUP' ? _('Backup Volumes') : _('Archive Volumes'); ?></td>
|
|
</tr>
|
|
<?php if ($node->volumes($dtype)) { ?>
|
|
<tr>
|
|
<td class="spacer"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Volume</td>
|
|
<td>Last Read Date</td>
|
|
<td>Last Write Date</td>
|
|
<td>Access</td>
|
|
<td>Status</td>
|
|
<td>Errors R/W</td>
|
|
<td>Utilisation</td>
|
|
<td>Reclaim</td>
|
|
<td>Nodes on Vol</td>
|
|
</tr>
|
|
<?php $i=0; foreach ($node->volumes($dtype) as $stgpool => $vols) {
|
|
$spo = ORM::factory('STGPOOL',$stgpool); ?>
|
|
<tr class="subhead"><td colspan="9"><?php printf('%s: Reclaim: %s%%, Scratch Usage: %s/%s, Device Type: %s',$spo->STGPOOL_NAME,$spo->RECLAIM,$spo->NUMSCRATCHUSED,$spo->MAXSCRATCH,$spo->DEVCLASSES->DEVTYPE); ?></td></tr>
|
|
<?php foreach ($vols as $vol) { ?>
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
<td class="head"><?php echo $vol->VOLUME_NAME; ?></td>
|
|
<td class="head"><?php echo $vol->display('LAST_READ_DATE'); ?></td>
|
|
<td class="head"><?php echo $vol->display('LAST_WRITE_DATE'); ?></td>
|
|
<td class="head"><?php echo $vol->display('ACCESS'); ?></td>
|
|
<td class="head"><?php echo $vol->display('STATUS'); ?></td>
|
|
<td class="head"><?php printf('%s/%s',$vol->READ_ERRORS,$vol->WRITE_ERRORS); ?></td>
|
|
<td class="head"><?php echo $vol->display('EST_CAPACITY_MB'); ?></td>
|
|
<td class="head"><?php echo $vol->display('PCT_RECLAIM'); ?></td>
|
|
<td class="head"><?php echo $vol->getNodesOnVol($dtype); ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
<?php } else { ?>
|
|
<tr><td><?php echo $dtype=='BACKUP' ? _('There are NO Backup Volumes for this Node.') : _('There are NO Archive Volumes for this Node.'); ?></td></tr>
|
|
<?php } ?>
|
|
</table>
|
|
</td>
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
</td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|