Documentation
¶
Overview ¶
Package arrayhds drives a Hitachi array through the HiCommand Device Manager command line interface.
It is a port of the v2 agent driver, and answers to the same commands with the same options, because the collector drives an array by running them. The collector calls this driver for its hds, hm700 and r700 models alike: they are one array type, named three ways.
Index ¶
- func NewDriver() array.Driver
- type Array
- func (t *Array) Actions() []array.Action
- func (t *Array) AddDisk(ctx context.Context, opt OptAddDisk) (any, error)
- func (t *Array) AddMap(ctx context.Context, opt OptAddMap) (any, error)
- func (t *Array) DelDisk(ctx context.Context, devNum string) (any, error)
- func (t *Array) DelMap(ctx context.Context, devNum string, mappings []string) (any, error)
- func (t *Array) ListLogicalUnits(ctx context.Context, devNum string) (any, error)
- func (t *Array) RenameDisk(ctx context.Context, devNum, name string) (any, error)
- func (t *Array) Reports() []array.Report
- func (t *Array) ResizeDisk(ctx context.Context, devNum, size string) (any, error)
- func (t *Array) Run(args []string) error
- type OptAddDisk
- type OptAddMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
Array is one Hitachi array, as the node or cluster configuration declares it.
func (*Array) AddMap ¶
AddMap exports a volume to the domains the named initiators reach it through.
func (*Array) DelMap ¶
DelMap unexports a volume.
Naming the mappings unexports those. Naming none unexports every path to the volume, which is what deleting it does on the way.
func (*Array) ListLogicalUnits ¶
ListLogicalUnits returns the volumes of the array.
func (*Array) RenameDisk ¶
RenameDisk gives a volume a label.
func (*Array) Reports ¶
Reports returns the sections of its configuration this array pushes to the collector.
The section names are the ones v2 pushes for an hds array, because the collector reads them to know what it was handed.
func (*Array) ResizeDisk ¶
ResizeDisk grows a volume. A size beginning with a plus is added to the size the volume has.
type OptAddDisk ¶
OptAddDisk is what "add disk" was asked for.