DESCRIPTION
Environment
- Two IBM Storage Virtualize systems with a Policy-Based High Availability (PBHA) storage partition, code 9.1.3.4.
- The replication policy has snapshots enabled, so volume group snapshots are created as highly_available on both systems.
- System B is the active management system (AMS) of the partition, system A is the partner. All commands were run on system B.
Use case
For years we refreshed test/dev copies of production volumes with a NO COPY FlashCopy (copy rate 0): stopfcmap + startfcmap -prep. The target kept the same volume and the same SCSI LUN ID, so the other VMware cluster saw the same device after every refresh.
In a PBHA partition legacy FlashCopy maps are not possible, so the replacement is:
volume group snapshot -> thin clone in a volume group in the same HA partition -> refreshfromsnapshot every cycle.
The clone volume is highly available, so we expect the clone to be identical and to read from the same snapshot on both locations.
Commands
addsnapshot -volumegroup vg_src -name sn1 -retentionminutes 4
mkvolumegroup -name vg_clone -partition PART_HA
mkvolume -type thinclone -pool pool_b -fromsourcevolume vol_src -snapshot sn1 -fromsourcegroup vg_src -volumegroup vg_clone -name vol_clone
addsnapshot -volumegroup vg_src -name sn2 -retentionminutes 6
refreshfromsnapshot -snapshot sn2 -fromsourcegroup vg_src -volumegroup vg_clone
addsnapshot -volumegroup vg_src -name sn3 -retentionminutes 20
(later) converttoclone -volumegroup vg_clone
Observed behaviour (lsfcmap -showhidden, lsvolumegroupsnapshot on both systems)
1. mkvolume -type thinclone creates the clone on both systems, both reading from sn1 (correct).
2. refreshfromsnapshot acts ONLY on the AMS (system B):
- on B the hidden map of the clone now reads from sn2,
- on A the clone still reads from sn1 (it stayed so for as long as we watched; reproduced in every test).
3. converttoclone acts ONLY on the AMS:
- on B the clone becomes an independent volume (volume_type no longer thinclone),
- on A it is still a thin clone with its hidden map copying from the old snapshot.
4. Consequences when snapshots expire (all snapshots were highly_available):
- sn1 expires: on B it is deleted; on A it goes to dependent_deleting and ha_state falls to local, because the clone on A still reads it.
- sn2 expires: on A it is deleted (including its hidden map); on B it goes to dependent_deleting / local.
- Result: the two copies of one HA clone volume (same vdisk_UID) depend on DIFFERENT snapshots on the two locations.
- The old snapshot on A never leaves dependent_deleting while the clone exists. Only rmvolume of the clone (which does act on both systems) releases it.
- If no newer HA snapshot exists, the newest snapshot on A stays in state deleting, because the held older snapshot depends on it.
Why this is a problem
- After a failover to A, hosts would read a clone that was not refreshed (old point in time), without any warning.
- Snapshots that the customer believes are expired keep consuming capacity on the partner system indefinitely.
- ha_state of snapshots silently changes to local, and the two locations hold different snapshot sets.
- converttoclone does not make the clone independent on the partner, so the source snapshot dependency remains there.
Requested change
1. refreshfromsnapshot on a volume group in an HA partition should refresh the clone on both locations to the same HA snapshot (or fail with a clear error if that is not possible).
2. converttoclone in an HA partition should convert the clone on both locations.
3. Documentation should describe how refresh, convert and snapshot expiry behave in HA partitions.