Dear SnapCreator users,
I am currently testing the use of the NTAP_METADATA_SNAPSHOT_CREATE_CMDx parameter to backup an Oracle database on RHEL 6.6 with SC 4.1.1
The database is stored on 2 separate LVM disk groups:
datavg contains 1 lun stored in a dedicated Ontap volume and stores all datafiles, control files, and online redo logs
archvg contains 1 lun stored in a dedicated Ontap volume and stores archived log files
here are the lines in my config file for those 2 volumes:
VOLUMES=svm-iscsi-oracle1:v_iscsi_data1,v_iscsi_archlog1
META_DATA_VOLUME=svm-iscsi-oracle1:v_iscsi_archlog1
Because LVM is in use, I configure my snapcreator job to call snapdrive on the Oracle server using the SC agent:
NTAP_SNAPSHOT_CREATE_CMD01="/usr/sbin/snapdrive" snap create -dg datavg -snapname %SNAME-%SNAP_TYPE_%SNAP_TIME
NTAP_METADATA_SNAPSHOT_CREATE_CMD01="/usr/sbin/snapdrive" snap create -dg archvg -snapname %SNAME-%SNAP_TYPE_%SNAP_TIME
My job fails because SC server calls first NTAP_METADATA_SNAPSHOT_CREATE_CMD01 to create the snapshot using snapdrive, then
attempts to create a second snapshot with the same name on my META_DATA_VOLUME, directly (not via the agent).
The log is clear about this:
########## Application Unquiesce finished successfully ##########
##########File system plug-in not defined. Skipping file system quiesce ##########
--> call to the agent to execute the snapdrive:
##########Metadata Snapshot Create Commands Started##########
[2015-01-21 18:38:20,638] INFO: [rhel1:9090 (4.1.1.1)] Executing Snapshot copy create command ["/usr/sbin/snapdrive" snap create -dg archvg -snapname snapcreator_made-hourly_20150121183738] on rhel1
[2015-01-21 18:38:20,638] TRACE: Command ["/usr/sbin/snapdrive" snap create -dg archvg -snapname snapcreator_made-hourly_20150121183738] finished with exit code: [0] stdout: [snap create -dg archvg -snapname snapcreator_made-hourly_20150121183738] stderr: []
[2015-01-21 18:38:20,638] DEBUG: [rhel1:9090 (4.1.1.1)] Command ["/usr/sbin/snapdrive" snap create -dg archvg -snapname snapcreator_made-hourly_20150121183738] finished successfully with message [snap create -dg archvg -snapname snapcreator_made-hourly_20150121183738]
[2015-01-21 18:38:20,638] INFO: Snapshot copy create completed successfully
########## Metadata Snapshot copy create commands finished successfully ##########
--> then local execution of a snapshot with the same name directly by SC server:
########## Skipping other Snapshot tasks as Metadata Snapshot commands executed ##########
########## Creating meta data Snapshot copy for svm-iscsi-oracle1:v_iscsi_archlog1 ##########
[2015-01-21 18:38:20,641] INFO: Creating Snapshot copy for svm-iscsi-oracle1:v_iscsi_archlog1on svm-iscsi-oracle1
[2015-01-21 18:38:20,807] INFO: STORAGE-02007: Creating Snapshot copy [snapcreator_made-hourly_20150121183738] on volume [v_iscsi_archlog1]
[2015-01-21 18:38:20,807] DEBUG: snapcreator_made-hourly_20150121183738 v_iscsi_archlog1
--> results in failure because a snapshot with same name already exists on v_iscsi_archlog1
Can someone please help me here?
Thanks a lot in advance
Pierre