Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type T
- func (t *T) Abort(ctx context.Context) bool
- func (t *T) BeforeGroup() driver.Group
- func (t *T) Boot(ctx context.Context) error
- func (t *T) Configure() error
- func (t *T) DriverID() driver.ID
- func (t *T) Info(ctx context.Context) (resource.InfoKeys, error)
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Name() string
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, error)
- func (t *T) Resync(ctx context.Context) error
- func (t *T) Split(ctx context.Context) error
- func (t *T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Stop(ctx context.Context) error
- func (t *T) SubDevices(ctx context.Context) device.L
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReplicationLinkFailed = errors.New("replication link failed")
)
View Source
var Keywords = []*keywords.Keyword{ { Attr: "Instance", Converter: "int", Example: "0", Option: "instance", Required: true, Scopable: true, Text: keywords.NewText(fs, "text/kw/instance"), }, { Attr: "Group", Example: "orasvc1", Option: "group", Required: true, Scopable: true, Text: keywords.NewText(fs, "text/kw/group"), }, { Attr: "SplitStart", Option: "split_start", Converter: "bool", Default: "false", Scopable: true, Text: keywords.NewText(fs, "text/kw/split_start"), }, { Attr: "Timeout", Converter: "duration", Default: "10s", Option: "timeout", Scopable: true, Text: keywords.NewText(fs, "text/kw/timeout"), }, { Attr: "StartTimeout", Converter: "duration", Default: "5m", Option: "start_timeout", Scopable: true, Text: keywords.NewText(fs, "text/kw/start_timeout"), }, }
Keywords exposes the driver keyword definitions to the om3 manifest system.
Functions ¶
Types ¶
type T ¶
type T struct {
resdisk.T
Path naming.Path `json:"path"`
// Instance is the local HORCM instance number (used with -g and -I flags).
Instance int `json:"instance"`
// Group is the volume group name as defined in horcm.conf.
Group string `json:"group"`
// Timeout is the maximum duration to wait for a pair query operation to complete.
Timeout *time.Duration `json:"timeout"`
// StartTimeout is the maximum duration to wait for a pair takeover operation to complete.
StartTimeout *time.Duration `json:"start_timeout"`
// SplitStart must be set to allow start on a SSUS S-VOL (split pair)
SplitStart bool `json:"split_start"`
// contains filtered or unexported fields
}
T is the driver structure embedding the common disk resource base.
func (*T) Abort ¶
Abort prevents starting the instance when we can forsee it will fail at this resource.
func (*T) BeforeGroup ¶
func (*T) Provisioned ¶
Provisioned returns whether the XP8 pairs exist.
func (*T) Split ¶
SyncSplit splits the pair (suspend replication), making the R-VOL read-write accessible on the remote side.
Click to show internal directories.
Click to hide internal directories.