Download as pdf or txt
Download as pdf or txt
You are on page 1of 42

Autonomic Groups and

Virtual Lock
Module 9
HK902S E.00

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Module objectives

After completing this module, you should be able to :


• Describe the advantages of host sets and volume sets
• Create and maintain host sets and volume sets
• Use the Management Console, SSMC, and CLI to work with host sets and volume sets
• Discuss the guidelines and rules regarding host sets and volume sets
• Explain the Virtual Lock feature

2 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Autonomic groups:
Host sets and virtual volume sets

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
HP 3PAR Autonomic Sets: Host sets and volume sets
Simplify provisioning
Autonomic HP 3PAR Storage
Traditional storage
Cluster of VMware ESX Servers

V1 V2 V3 V4 V5 V6 V7 V8 V9 V10
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10

Individual Volumes
• Initial provisioning of the cluster • Initial provisioning of the cluster
− Requires 50 provisioning actions (1 per host—volume − Add hosts to the host set
relationship) − Add volumes to the volume set
− Export volume set to the host set
• Add another host
• Add another host
− Requires 10 provisioning actions (1 per volume)
− Just add a host to the host set
• Add another volume • Add another volume
− Requires 5 provisioning actions (1 per host) − Just add the volume to the volume set
• Volumes are exported automatically
• Private storage can be exported individually to hosts in a host set
4 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Autonomic groups use cases

In some instances, a number of objects in the system that often go through the same set of
administrative transitions are logically grouped together
• Virtual volume set: Oracle Database
− Comprises a number of volumes that, together, serve all the data that is needed by that database
• Host set: VMware or Serviceguard cluster
− Nodes in a cluster that share the same storage for application failover can be logically grouped together for
ease of provisioning

5 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host set specifics

• When virtual volumes or virtual volume sets are exported to a host set, the volumes are exported to each
member of the host set with the same LUN ID, which is critical for certain clustering failover solutions
• An individual virtual volume can be exported to members of a host set as private storage
• A host set can only be removed if there are no virtual volumes or volume sets are exported to the host set
• Removing a host set does not remove the individual private storage exports from the hosts
• If a host is removed from a host set, all private storage remains exported to that host
• A host can be a member of more than one host set
• Hosts sets are visible in the Management Console, SSMC, and output from CLI commands such as showvlun

6 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Virtual volume set specifics


• To create a new volume set using existing volumes, the volumes can be exported to hosts or host sets
• When creating virtual volumes in the Management Console, SSMC or with the createvv command using a count, the
volumes are put into a virtual volume set by default
• To remove a virtual volume set, the set must be unexported
• Removing a virtual volume set does not remove the virtual volumes
• To remove a virtual volume, if it is a member of a set, it must be removed from the set first
• A virtual volume can be a member of up to eight virtual volume sets
• Virtual volume sets are used in implementation of the features Priority Optimization/QoS and Adaptive Flash Cache
• When creating a remote copy group for remote replication both primary and target virtual volumes are added to
virtual volume sets at both the local and remote site automatically
• If any virtual volume in a set has the Restrict export to one host attribute set, the volume set cannot be exported to
more than one host or a host set
• Virtual volume sets are visible in the Management Console, SSMC, and output from CLI commands such as showvv

7 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host sets in Management Console (1 of 5)

8 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Host sets in Management Console (2 of 5)

9 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host sets in Management Console (3 of 5)

10 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Host sets in Management Console (4 of 5)

11 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host sets in Management Console (5 of 5)

12 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Virtual volume sets in Management Console (1 of 4)

13 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Virtual volume sets in Management Console (2 of 4)

14 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Virtual volume sets in Management Console (3 of 4)

15 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Virtual volume sets in Management Console (4 of 4)

16 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Host sets and virtual volume sets in


Management Console: Export screen

On the Export screen you


can display virtual
volumes or virtual volume
sets, and export to a host
or host set using the radio
buttons

17 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host Sets and Virtual Volume Sets using SSMC

18 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

SSMC: Host Sets (1 of 4)

19 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SSMC: Host Sets (2 of 4)

After selecting hosts on the Add Host


window selected hosts will display in
the Host Set Members area

20 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

SSMC: Host Sets (3 of 4)


• Display of host sets using Map view
• Actions include Edit a host set or Delete a host set

21 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SSMC: Host Sets (4 of 4)
From the Virtual Volumes area volumes
can be exported to hosts or host sets
using the Add window

22 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

SSMC: Virtual Volume Sets (1 of 5)

23 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SSMC: Virtual Volume Sets (2 of 5)
In example, a search was performed just display
volumes with the naming convention Raid5

4 VVs selected

24 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

SSMC: Virtual Volume Sets (3 of 5)

25 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SSMC: Virtual Volume Sets (4 of 5)
Display of host sets
using the Exports view

26 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

SSMC: Virtual Volume Sets (5 of 5)

Choose existing volume set to add


the virtual volume(s) to

Add existing volumes to VV set


from the Virtual Volumes area

27 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host sets and Virtual Volume sets CLI overview
Command Summary
createhostset create a new set of hosts and provides the option of assigning one or more existing
hosts to that set
removehostset removes a host set or removes hosts from an existing set
sethostset sets the parameters and modifies the properties of a host set
showhostset displays the host sets defined on the HP 3PAR array and their members
createvvset create a new set of virtual volumes and provides the option of assigning one or more
existing virtual volumes to that set
removevvset removes a virtual volume set or virtual volumes from an existing set
setvvset sets the parameters and modifies the properties of a virtual volume set
showvvset displays the virtual volume sets defined on the HP 3PAR array and their members

28 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Host sets using the CLI (1 of 2)

• Create an empty host set called hostset1


cli% createhostset hostset1

• Add a host called host1 to the host set hostset1


cli% createhostset –add hostset1 host1

• Create a host set called orahostset with a comment and containing one host called ora1
cli% createhostset -comment “My Domain Set” orahostset ora1

• Export the virtual volume vv1 to the members of the host set called orahostset with a LUN number of 2
cli% createvlun vv1 2 set:orahostset

29 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Host sets using the CLI (2 of 2)

Show all host sets Show host sets containing hosts


cli% showhostset matching the pattern ora*
Id Name Members cli% showhostset –host ora*
3 exchhosts exchh.0 Id Name Members
exchh.1 19 orahosts ora-12-h1
19 orahosts ora-12-h1 ora-12-h2
ora-12-h2 ora-12-h3
ora-12-h3

30 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Virtual volume sets using the CLI (1 of 2)


• Create an empty VV set called oradb_1
cli% createvvset oradb_1

• Add a VV called oravol1 to the VV set


cli% createvvset –add oradb_1 oravol1

• Create a VV set called oravvs with a comment, and add 10 sequentially named VVs starting with the VV called
oravl.0 through oravl.9
cli% createvvset -comment “Our Oracle VVs” -cnt 10 oravvs oravl.0

• Export the virtual volume set oravvs to the members of the host set called orahostset with LUN numbers of 1-10
cli% createvlun set:oravvs 1-10 set:orahostset

31 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Virtual volume sets using the CLI (2 of 2)

Show all VV sets Show VV sets containing VVs matching


cli% showvvset the pattern test*
Id Name Members cli% showvvset –vv test*
0 oravv oravv.0
oravv.1 Id Name Members
20 sia-1 test 20 sia-1 test
ttpvv.rw ttpvv.rw
test-sv test-sv

32 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

CLI commands using a set: parameter


Commands with :set support Commands that display host set and volume set
• Host sets information:
− createvlun − showvlun

− removevlun − showvv

• VV sets
− createvlun
− removevlun
− createsv
− createvvcopy
− promotesv
− promotevvcopy
− updatevv

33 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Virtual Lock

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

HP 3PAR Virtual Lock overview

• HP 3PAR Virtual Lock Software is an optional feature that enforces the retention period of any
volume or copy of a volume
• The Virtual Lock license is required
• Locking a volume prevents the volume data from being deleted, overwritten, or altered
(intentionally or unintentionally) before the retention period lapses
• Virtual Lock can be used on virtual volumes, virtual copies, full copies, and remote copies

35 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
HP 3PAR Virtual Lock options

• Retention Time: How long to keep the VV or virtual copy


− The -retain option that can be used to specify the amount of time, relative to the current time, that the
volume will be retained.

• Expiration Time: When the VV or VC will expire


− The -exp option that can be used to specify the amount of time, relative to the current time, before the
volume will expire. The expired virtual volumes are not automatically removed, so you must use the
removevv command or the System Scheduler or Management Console to remove the expired volumes.

36 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

HP 3PAR Virtual Lock guidelines


• The retention time can be set during the volume creation time or applied to an existing volume
• The retention time can be increased, but it cannot be decreased or removed until the end of the retention time
period
• The expiration time can be changed at any time
• If both the retention time and expiration time are specified, the retention time cannot be greater than the
expiration time
• The retention and expiration time can be set in hours or days
− The minimum time is 1 hour, and the maximum time is 43,800 hours (1,825 days or 5 years)
− The default is 336 hours (14 days)
− The vvMaxRetentionTime system parameter determines the maximum retention
• The maximum retention or expiration time for a volume in a domain can be set during the virtual domain
creation time or applied to an existing domain
• If the volume belongs to a virtual domain, the volume’s retention time cannot exceed the domain's maximum
retention time

37 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Virtual Lock example: Create virtual volume

MC

SSMC

38 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

Virtual Lock example: Create virtual copy

MC
SSMC
39 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
HP 3PAR Virtual Lock CLI

You can use the -retain and -exp options to set volume retention times with the following
commands:
• createvv
• setvv
• createsv
• creategroupsv

40 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Technet24.ir

HP 3PAR Virtual Lock CLI examples

• Create a thin provisioned volume of 10G named hp2 using the CPG cpg1 as the user CPG with a retention
time of 24 hours and expiration time of 72 hours:
cli% createvv –tpvv -retain 24h –exp 72h cpg1 hp2 10G

• Set/change the volume hp2 retention time to 36 hours and expiration time to 48 hours:
cli% setvv –retain 36h –exp 48h hp2

• Display all volumes with retention time/expired volumes:


cli% showvv –retained
cli% showvv –expired

• Remove all expired volumes and do not ask for confirmation (force):
cli% removevv –f expired

41 © Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

You might also like