Symmetrix clones¶
Introduction¶
EMC Symmetrix arrays clones allow multi-target block device replication, splitting a set of cloned devices, resyncing and merging changes on a clone set to its source set. After the initial full copy, all resyncs are delta-based. These excellent features allow opensvc to drive services using a cloned device set, handling the splitting on start-up and providing a simple command for resync and merge-back. This kind of services are often used for maintenance, pre-production, 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 symclone sync resource can be defined to drive the clone of other servers, just for the benefit of centralized logging and scheduling.
Command set¶
- sync break
- Activate the resource devices, breaking the data-replication. The source starts to log differences. The devices are promoted to read-write access.
- sync resync
- Re-establish the resource devices replication. This command verifies the service is down before proceeding.
- sync update
- Re-establish the resource devices replication. This command verifies the service is down before proceeding.
Status¶
- up
- The last replication occured less than 'sync_max_delay' minutes ago.
- warn
- The last replication occured more than 'sync_max_delay' minutes ago.
- down
- Device are in a unexpected state or not present in the resource symmetrix disk group.
Service configuration¶
Pre-requisites¶
The symcli commands must be installed in the standard location on the nodes running this service resource type.
You can setup as many sync resources as needed to ensure a consistent replication scenario. For example, you might want to clone an Oracle database data first, then in a subsequent sync, clone the archivelogs.
Keywords¶
- sync.symclone
- consistent
- pairs
- precopy
- recreate_timeout
- restore_timeout
- symid
- 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
Symmetrix clone configuration¶
Create a symmetrix disk group¶
# symdg create -type REGULAR DGCVI
Add source devices to the group¶
# symld -g DGCVI add dev 1234 DEV001
Add target devices to the group¶
# symld -g DGCVI add dev 4321 CLONE001
Start the initial copy¶
# symclone -g DGCVI create -diff -precopy DEV001 sym ld CLONE001 # [more pairs...]
Examples¶
Resync service clones¶
# om aastmphpux sync resync
* IISTMPHPUX.SYNC#2 - INFO - /usr/symcli/bin/symclone -g DGCVI -noprompt recreate -precopy -i 20 -c 30 DEV001 sym ld CLONE001
* IISTMPHPUX.SYNC#2 - WARNING - command succesful but stderr
'Recreate' operation execution is in progress for device 'DEV001'
paired with target device 'CLONE001' in
device group 'DGCVI'. Please wait...
'Recreate' operation successfully initiated for device 'DEV001'
in group 'DGCVI' paired with target device 'CLONE001'.
Start a service using clones¶
# om aastmphpux start
* IISTMPHPUX.IP#1 - INFO - ifconfig lan900:1 192.168.32.41 netmask 255.255.252.0 up
* IISTMPHPUX.IP#1 - WARNING - arp annouce skipped. install 'arping'
* IISTMPHPUX.SYNC#2 - INFO - /usr/symcli/bin/symclone -g DGCVI -noprompt activate -i 20 -c 30 DEV001 sym ld CLONE001
* IISTMPHPUX.SYNC#2 - WARNING - command succesful but stderr
'Activate' operation execution is in progress for device 'DEV001'
paired with target device 'CLONE001' in
device group 'DGCVI'. Please wait...
'Activate' operation successfully executed for device 'DEV001'
in group 'DGCVI' paired with target device 'CLONE001'.
* IISTMPHPUX.SYNC#2 - INFO - waiting for copied state (max 300 secs)
* IISTMPHPUX.VG#1 - INFO - vgimport -m /var/lib/opensvc/vg_aastmphpux_vgCVI.map -s -N vgCVI
* IISTMPHPUX.VG#1 - INFO - vgchange -a y vgCVI
* IISTMPHPUX.FS#1 - INFO - fsck -F vxfs -y /dev/vgCVI/lv_CVI
* IISTMPHPUX.FS#1 - INFO - mount -F vxfs /dev/vgCVI/lv_CVI /aaststcvi