Pools

The Pools Object is a container for the Pool Object for the associated Filesystem.

Description

There are no user facing methods in this Object.

class arcapix.fs.gpfs.pools.Pools(deviceName)

Represents a collection of Storage pools which are defined for a given filesystem.

Parameters:deviceName (str) – Name of the filesystem in which the pools are defined
data()

Returns pools which contain disks which can hold data

Note - returned pools may also include disks which can hold metadata

Return type:dict
dataOnly()

Returns pools which contain only disks which can hold data only

Return type:dict
metadata()

Returns pools which contain disks which can hold metadata

Note - returned pools may also include disks which can hold data

Return type:dict
metadataOnly()

Returns pools which contain only disks which can hold metadata only

Return type:dict
descriptors()

Returns pools which contain descriptor disks

Note - returned pools may also include disks which can hold data or metadata

Return type:dict

Examples

Utilising Pool from the Cluster Object

>>> from arcapix.fs.gpfs import Cluster
>>>
>>> # Load the cluster
... mycluster = Cluster()
>>>
>>> for stgpool in mycluster.filesystems['mmfs1'].storagepools.values():
...     print(stgpool.name)
...
system
sas1
sata1
sata2

Utilising Pools directly

>>> from arcapix.fs.gpfs import Pools
>>>
>>> # print a list of names of pools in filesystem 'mmfs1'
... print(Pools(deviceName='mmfs1').keys())
['system', 'sas1', 'sata1', 'sata2']