IBM DS flash copy¶
Introduction¶
IBM Flash copy allow multi-target block device replication. After create initial flash copy, the relation can persist. These features allow opensvc to drive services using a flash copy device set. Such services are often used for maintenance, pre-production and performance testing environments, where the source device set is used for production. The following documentation presents the configuration of such a service.
A service with only flash copy sync resources can be defined to drive the clone of other servers, just for the benefit of centralized logging and scheduling.
Command set¶
- sync resync
- Resyncflash (or rmflash/mkflash) action to pair source/target. This command verifies the service is down before proceeding.
- sync resync --force
- Bypass the sync_min_delay protection.
Status¶
- up
- The last resync occured less than 'sync_max_delay' minutes ago.
- warn
- The last replication occured more than ‘sync_max_delay’ minutes ago.
- Device are in a unexpected state or not present in the flash copy persistent pair list.
Service configuration¶
Pre-requisites¶
The dscli commands must be installed in the standard location on the nodes running this service resource type.
The array managers credentials must be defined in the node or cluster configuration.
Example:
[array#IBM.XXXX-XXXXXXX]
type = ibmds
hmc1 = 10.10.10.10
hmc2 =
username = opensvc
Use dscli commands to create pwfile in <OSVCVAR>. The pwfile's name must be the same as the array. For exemple <OSVCVAR>/IBM.XXXX-XXXXXXX.pwfile
.
Example:
dscli managepwfile -action add -mc1 1.2.3.4 -mc2 1.2.3.5
-pwfile /var/lib/opensvc/IBM.2107-00AAA00.pwfile
-name opensvc -pw xxx
You can setup as many sync resources as needed to ensure a consistent replication scenario.
Keywords¶
- sync.ibmdssnap
- array
- bgcopy
- pairs
- recording
- blocking_post_provision
- blocking_post_start
- blocking_post_stop
- blocking_post_sync_drp
- blocking_post_sync_nodes
- blocking_post_sync_restore
- blocking_post_sync_resync
- blocking_post_sync_update
- blocking_post_unprovision
- blocking_pre_provision
- blocking_pre_start
- blocking_pre_stop
- blocking_pre_sync_drp
- blocking_pre_sync_nodes
- blocking_pre_sync_restore
- blocking_pre_sync_resync
- blocking_pre_sync_update
- blocking_pre_unprovision
- comment
- disable
- encap
- monitor
- optional
- pg_blkio_weight
- pg_cpu_quota
- pg_cpu_shares
- pg_cpus
- pg_mem_limit
- pg_mem_oom_control
- pg_mem_swappiness
- pg_mems
- pg_vmem_limit
- post_provision
- post_start
- post_stop
- post_sync_drp
- post_sync_nodes
- post_sync_restore
- post_sync_resync
- post_sync_update
- post_unprovision
- pre_provision
- pre_start
- pre_stop
- pre_sync_drp
- pre_sync_nodes
- pre_sync_restore
- pre_sync_resync
- pre_sync_update
- pre_unprovision
- provision
- provision_requires
- restart
- schedule
- shared
- standby
- start_requires
- stop_requires
- subset
- sync_break_requires
- sync_drp_requires
- sync_max_delay
- sync_nodes_requires
- sync_restore_requires
- sync_resync_requires
- sync_update_requires
- tags
- unprovision
- unprovision_requires
IBM DS flash copy configuration¶
You have to create the persistent flash copy manually once. This requires two existing devices.
Examples¶
Resync a started service snapshots¶
# om iiststibmds stop && \
om iiststibmds sync resync && \
om iiststibmds start
Resync a stopped service snapshots¶
# om iiststibmds sync resync
2014-09-18 23:04:02,189 - IISTSTIBMDS.SYNC#1 - INFO - resyncflash - dev IBM.XXXX-XXXXXXX -persist -record -cp 0001:0002 0101:0102 0003:0004 | /opt/ibm/dscli/dscli -hmc1 10.10.10.10 -user opensvc -pwfile /var/lib/opensvc/IBM.XXXX-XXXXXXX.pwfile
2014-09-18 23:04:05,621 - IISTSTIBMDS.SYNC#1 - INFO - Date/Time: September 18, 2014 11:04:04 PM CEST IBM DSCLI Version: 7.7.10.317 DS: IBM.XXXX-XXXXXXX
Date/Time: September 18, 2014 11:04:04 PM CEST IBM DSCLI Version: 7.7.10.317 DS: IBM.XXXX-XXXXXXX
CMUC00168I resyncflash: FlashCopy volume pair 0001:0002 successfully resynchronized.
CMUC00168I resyncflash: FlashCopy volume pair 0101:0102 successfully resynchronized.
CMUC00168I resyncflash: FlashCopy volume pair 0003:0004 successfully resynchronized.