Automated EMC Clariion snapshots

We have a peculiar situation where running multiple snapview clone sync results in I/O wait on the production application. This is a business requirement where we have to take a backup of the production copy before running the EOD (End of day) process and one copy immediately after the EOD (End of day). The duration for EOD varies between 45 minutes to 1 hour. This is the time when the I/O is maximum. The EOD period is not sufficient to schedule snapview sync for the post EOD after the split of Pre-EOD. Their is always an overlap, and that is the period when the user face extreme slowness. We can stripe the luns over multiple Raid groups for the production luns but space constraint prevents us from doing this.

The solution what we found was to go for snapshot for Post EOD and with the normal sync for the EOD.

1. We add the luns to the reserved clone group. It depends on the size of the snapshot and the percentage change.
2. We create snapshot on the source luns and add it to the destination storage group. We are not activating it right now. If the LUN number is 235, the snapshot name is L235 and the session name is S235. We need to have a session for the snapshot to work.
3. Create custom scripts. The below is for deactivating the snapshot

for name in `cat Luns_list`; do
/opt/Navisphere/bin/naviseccli -secfilepath "$PWD" -address IP snapview -deactivatesnapshot -snapshotname L${name} -o
/opt/Navisphere/bin/naviseccli -secfilepath "$PWD" -address IP snapview -stopsession S${name} -o
done
4. Enable the snapshot

for name in `cat Luns_List`; do
/opt/Navisphere/bin/naviseccli -secfilepath "$PWD" -address IP snapview -startsession S$name -snapshotname L${name}
/opt/Navisphere/bin/naviseccli -secfilepath "$PWD" -address IP snapview -activatesnapshot S$name -snapshotname L${name}
done

Thats it, schedule the scripts 3 and 4 as per your convenience.

Comments

Popular posts from this blog

zpool and power path partial compatibility

Recoverpoint replication reporting with vmax splitter

Weird problem post power maintenance, no Powerpath pseudo name for Luns