migration

package
v2.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CsiNoSrpSGPrefix to be used as filter
	CsiNoSrpSGPrefix = "csi-no-srp-sg-"
	// CsiVolumePrefix to be used as filter
	CsiVolumePrefix = "csi-"
	// Synchronized to be used for migration state check
	Synchronized = "Synchronized"
	// HostLimits to be used in SG payload
	HostLimits = "hostLimits"
)

Variables

View Source
var CacheReset bool

CacheReset is flag for cache

View Source
var NodePairs map[string]string

NodePairs contains - 0002D (local): 00031 (remote)

View Source
var SGToRemoteVols map[string][]string

SGToRemoteVols contains - csi-ABC-local-sg : [00031, ...]

Functions

func AddVolumesToRemoteSG

func AddVolumesToRemoteSG(ctx context.Context, remoteSymID string, pmaxClient pmax.Pmax) (bool, error)

AddVolumesToRemoteSG adds remote volumes to default SRP SG on remote array

func GetOrCreateMigrationEnvironment

func GetOrCreateMigrationEnvironment(ctx context.Context, localSymID, remoteSymID string, pmaxClient pmax.Pmax) (*types.MigrationEnv, error)

GetOrCreateMigrationEnvironment creates migration environment between array pair

func ListContains

func ListContains(a []string, x string) bool

ListContains return true if x is found in a[]

func ResetCache

func ResetCache()

ResetCache resets all the maps being used with migration

func StorageGroupCommit

func StorageGroupCommit(ctx context.Context, symID, action string, pmaxClient pmax.Pmax) (bool, error)

StorageGroupCommit does a "commit" on all the migration session SG Returns true if not sessions found, all migration completed

func StorageGroupMigration

func StorageGroupMigration(ctx context.Context, symID, remoteSymID, clusterPrefix string, pmaxClient pmax.Pmax) (bool, error)

StorageGroupMigration creates migration session for "no-srp" masking view storage groups 1. Remove volumes from default SRP SG 2. Create migration session for no-srp SG 3. Create default SRP storage group on remote array, and maintain a list of volumes to be added.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL