Disks¶
The Disks object is a collection of Disk
objects
Description¶
Examples¶
Look-up the size of the disks in the ‘system’ storage pool¶
>>> from __future__ import print_function
>>> from arcapix.fs.gpfs import Pool
>>>
>>> # create a pool object
... p = Pool('system', 'mmfs1')
>>>
>>> # loop over the disks
... for d in p.disks.values():
... print(d.id, d.diskSize)
...
md3200_001_L000 10485760
md3200_001_L001 10485760
Look-up the metadata disks on a Filesystem¶
>>> from arcapix.fs.gpfs import Filesystem
>>>
>>> # create a Filesystem object
... fs = Filesystem('mmfs1')
>>>
>>> # list the metadata disks
... fs.disks.metadata().keys()
['md3200_001_L000', 'md3200_001_L001']
>>>
>>> # check which pool the disks belong to
... for d in fs.disks.metadata().values():
... print(d.id, d.storagepoolName)
...
md3200_001_L000 system
md3200_001_L001 system