2012-11-29 22:58:15 +00:00
|
|
|
<!-- $o = ORM::factory('NODE') -->
|
2011-05-23 15:04:40 +00:00
|
|
|
<table width="100%">
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmdatatypes as $btype => $ctype) { ?>
|
2011-05-23 15:04:40 +00:00
|
|
|
<tr>
|
|
|
|
<td style="width: 100%; vertical-align: top;">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
2012-11-28 02:34:39 +00:00
|
|
|
<td class="head" colspan="2"><?php echo $ctype.' '._('Volumes'); ?></td>
|
2011-05-23 15:04:40 +00:00
|
|
|
</tr>
|
2012-12-06 05:19:30 +00:00
|
|
|
<?php if ($o->vols_byctype($ctype)) { ?>
|
2011-05-23 15:04:40 +00:00
|
|
|
<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>
|
2011-05-27 11:08:44 +00:00
|
|
|
<td class="right">Errors R/W</td>
|
|
|
|
<td class="right">Util %</td>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="right">Recl %</td>
|
2011-05-27 11:08:44 +00:00
|
|
|
<td class="right">Other FS</td>
|
|
|
|
<td class="right">Other Node</td>
|
2011-05-23 15:04:40 +00:00
|
|
|
</tr>
|
2012-12-06 05:19:30 +00:00
|
|
|
<?php $i=0; foreach ($o->stgpools_bybtype($btype) as $spo) { ?>
|
|
|
|
<tr class="subhead">
|
|
|
|
<td colspan="10">
|
|
|
|
<?php
|
|
|
|
if ($spo->DEVCLASS == 'DISK')
|
2012-12-07 03:33:16 +00:00
|
|
|
printf('%s: Utilised: %s%%, Device Type: %s',$spo->STGPOOL_NAME,$spo->PCT_MIGR,$spo->DEVCLASS);
|
2012-12-06 05:19:30 +00:00
|
|
|
else
|
|
|
|
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>
|
2012-12-07 03:33:16 +00:00
|
|
|
<?php foreach ($o->vols_bypoolbyctype($spo->STGPOOL_NAME,$ctype) as $vo) { ?>
|
2011-05-23 15:04:40 +00:00
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
2012-12-06 03:50:06 +00:00
|
|
|
<td class="data"><?php echo HTML::anchor('volume/detail/'.base64_encode($vo->VOLUME_NAME),$vo->display('VOLUME_NAME')); ?></td>
|
2011-06-23 07:03:41 +00:00
|
|
|
<td class="data"><?php echo $vo->display('LAST_READ_DATE'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('LAST_WRITE_DATE'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('ACCESS'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('STATUS'); ?></td>
|
|
|
|
<td class="data-right"><?php printf('%s/%s',$vo->READ_ERRORS,$vo->WRITE_ERRORS); ?></td>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="data-right"><?php echo $vo->display('PCT_UTILIZED'); ?></td>
|
2011-06-23 07:03:41 +00:00
|
|
|
<td class="data-right"><?php echo $vo->display('PCT_RECLAIM'); ?></td>
|
2012-12-06 05:19:30 +00:00
|
|
|
<td class="data-right"><?php echo count($vo->fs_byctype($ctype))-1; ?></td>
|
|
|
|
<td class="data-right"><?php echo count($vo->nodes_byctype($ctype))-1; ?></td>
|
2011-05-23 15:04:40 +00:00
|
|
|
</tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php } ?>
|
2011-05-23 15:04:40 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php } else { ?>
|
2012-11-28 02:34:39 +00:00
|
|
|
<tr><td><?php echo _('There are NO volumes for this Node.'); ?></td></tr>
|
2011-05-23 15:04:40 +00:00
|
|
|
<?php } ?>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2011-05-28 09:46:46 +00:00
|
|
|
<?php } ?>
|
2011-05-23 15:04:40 +00:00
|
|
|
</table>
|