Q1: I get the following error when doing trying the pmsetup on a profile not having the PM dataset created ...
Répertoire de F:\snapcreator\scServer3.3.0\configs\ientfr02
28/05/2011 16:03 <REP> .
28/05/2011 16:03 <REP> ..
01/06/2011 23:52 50 337 aix-rootvg.conf
16/06/2011 15:15 50 470 echange.conf
01/06/2011 23:24 50 432 jde.conf
28/05/2011 16:02 50 551 ora-owpy.conf
28/05/2011 14:07 50 454 produit.conf
16/06/2011 15:57 50 474 testthin.conf
08/06/2011 14:35 50 468 usrlocal.conf
7 fichier(s) 353 186 octets
Total des fichiers listés :
14 fichier(s) 706 372 octets
11 Rép(s) 3 982 225 408 octets libres
F:\snapcreator\scServer3.3.0>snapcreator --profile echange --action pmsetup --
onfig_dir f:\snapcreator\scServer3.3.0\configs\ientfr02
Uncaught exception from user code:
syntax error at line 1, column 49, byte 49:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
================================================^
<html><head>
<title>404 Not Found</title>
at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>XML/Parser.pm line 187
at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>XML/Parser.pm line 192
XML::Parser::parse('XML::Parser=HASH(0x33ad0a8)', '<!DOCTYPE HTML PUBLI
"-//IETF//DTD HTML 2.0//EN">\x{a}<html><hea...') called at /<F:\snapcreator\sc
erver3.3.0\snapcreator.exe>NaServer.pm line 887
NaServer::parse_xml('NaServer=HASH(0x5505ff8)', '<!DOCTYPE HTML PUBLIC
-//IETF//DTD HTML 2.0//EN">\x{a}<html><hea...', '<dataset-create><dataset-name>
napcreator_echange</dataset-na...') called at /<F:\snapcreator\scServer3.3.0\sn
pcreator.exe>NaServer.pm line 724
NaServer::invoke_elem('NaServer=HASH(0x5505ff8)', 'NaElement=HASH(0x550
2c8)') called at snapcreator.pl line 3729
main::NETAPP_PM_DATA_SET_CREATE called at snapcreator.pl line 1499
The logs contains :
[Fri Jun 17 18:16:30 2011] DEBUG: GMT - Fri Jun 17 16:16:30 2011
[Fri Jun 17 18:16:30 2011] DEBUG: Version: NetApp Snap Creator Framework 3.3.0
[Fri Jun 17 18:16:30 2011] DEBUG: Profile: echange
[Fri Jun 17 18:16:30 2011] DEBUG: Action: pmsetup
[Fri Jun 17 18:16:30 2011] DEBUG: Plugin: null
[Fri Jun 17 18:16:30 2011] DEBUG: Policy: null
[Fri Jun 17 18:16:30 2011] DEBUG: Snapshot Name: null
[Fri Jun 17 18:16:30 2011] DEBUG: Timestamp: 20110617181630
########## Parsing Environment Parameters ##########
[Fri Jun 17 18:16:30 2011] DEBUG: Parsing VOLUMES - filer: fas3140a volume: v_ientfr02_echange
[Fri Jun 17 18:16:30 2011] DEBUG: Parsing NTAP_USERS - filer: fas3140a user: snapcreator
[Fri Jun 17 18:16:30 2011] DEBUG: Parsing NTAP_USERS - filer: fas3140b user: snapcreator
[Fri Jun 17 18:16:30 2011] DEBUG: Parsing NTAP_SNAPSHOT_RETENTIONS - policy: daily retention: 7
[Fri Jun 17 18:16:30 2011] DEBUG: Parsing NTAP_DFM_DATA_SET - filer: fas3140a volume: v_ientfr02_echange DFM dataset: echange
[Fri Jun 17 18:16:31 2011] DEBUG: ZAPI
<dataset-create>
<dataset-name>snapcreator_echange</dataset-name>
<dataset-description>NetApp Snap Creator Framework dataset</dataset-description>
<is-application-data>true</is-application-data>
<application-info>
<application-name>NetApp Snap Creator Framework</application-name>
<application-server-name>snapcreator</application-server-name>
<application-version>NetApp Snap Creator Framework 3.3.0</application-version>
<is-application-responsible-for-primary-backup>true</is-application-responsible-for-primary-backup>
</application-info>
</dataset-create>
Q2: For the testthin profile whose dataset was created initially by snapcreator, as you can see, I have already setup correctly the dataset, but as I said, the protection always appears uninitialised
Here is the debug log when snapcreator schedules a snapshot using the testthin profile :
Cannot encode 'config' element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'config' element as 'hash'. Will be encoded as 'map' instead
Uncaught exception from user code:
syntax error at line 1, column 49, byte 49:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
================================================^
<html><head>
<title>404 Not Found</title>
at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>XML/Parser.pm line 187
at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>XML/Parser.pm line 192
XML::Parser::parse('XML::Parser=HASH(0x474dc28)', '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\x{a}<html><hea...') called at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>NaServer.pm line 887
NaServer::parse_xml('NaServer=HASH(0x474db98)', '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\x{a}<html><hea...', '<dataset-list-info-iter-start><object-name-or-id>snapcreator_...') called at /<F:\snapcreator\scServer3.3.0\snapcreator.exe>NaServer.pm line 724
NaServer::invoke_elem('NaServer=HASH(0x474db98)', 'NaElement=HASH(0x4755028)') called at snapcreator.pl line 3767
main::NETAPP_PM_DATA_SET_CHECK('fas3140b', 'snapcreator_testthin') called at snapcreator.pl line 3344
main::NETAPP_PM('fas3140b') called at snapcreator.pl line 2031
and the normal log file :
[Fri Jun 17 18:00:00 2011] DEBUG: GMT - Fri Jun 17 16:00:00 2011
[Fri Jun 17 18:00:00 2011] DEBUG: Version: NetApp Snap Creator Framework 3.3.0
[Fri Jun 17 18:00:00 2011] DEBUG: Profile: ientfr02
[Fri Jun 17 18:00:00 2011] DEBUG: Action: snap
[Fri Jun 17 18:00:00 2011] DEBUG: Plugin: null
[Fri Jun 17 18:00:00 2011] DEBUG: Policy: hourly
[Fri Jun 17 18:00:00 2011] DEBUG: Snapshot Name: sc-testthin-hourly-20110617180000
[Fri Jun 17 18:00:00 2011] DEBUG: Timestamp: 20110617180000
[Fri Jun 17 18:00:00 2011] INFO: Removing log testthin.out.20110617080000
[Fri Jun 17 18:00:00 2011] INFO: Removing log testthin.debug.20110617080000
########## Parsing Environment Parameters ##########
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing VOLUMES - filer: fas3140b volume: testthin
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing NTAP_USERS - filer: fas3140a user: snapcreator
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing NTAP_USERS - filer: fas3140b user: snapcreator
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing NTAP_SNAPSHOT_RETENTIONS - policy: hourly retention: 0
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing NTAP_SNAPSHOT_RETENTIONS - policy: daily retention: 7
[Fri Jun 17 18:00:00 2011] DEBUG: Parsing NTAP_DFM_DATA_SET - filer: fas3140b volume: testthin DFM dataset: snapcreator_testthin
########## PRE APPLICATION QUIESCE COMMANDS ##########
[Fri Jun 17 18:00:00 2011] INFO: No commands defined
########## PRE APPLICATION QUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## APPLICATION QUIESCE COMMANDS ##########
[Fri Jun 17 18:00:00 2011] INFO: Running application quiesce command APP_QUIESCE_CMD01 [/usr/local/snapcreator/scripts/quiece hourly sc-testthin]
[Fri Jun 17 18:00:00 2011] DEBUG: Executing command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin]
[Fri Jun 17 18:00:01 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin] finished with
exit code: [0]
stdout: [hourly sc-testthin]
stderr: []
[Fri Jun 17 17:55:01 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Executing command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin]
[Fri Jun 17 17:55:02 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin] finished with
exit code: [0]
stdout: [hourly sc-testthin]
stderr: []
[Fri Jun 17 17:55:02 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin] finished successfully with message
[hourly sc-testthin]
[Fri Jun 17 18:00:02 2011] INFO: Running application quiesce command [/usr/local/snapcreator/scripts/quiece hourly sc-testthin] finished successfully
########## APPLICATION QUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## POST APPLICATION QUIESCE COMMANDS ##########
[Fri Jun 17 18:00:02 2011] INFO: No commands defined
########## POST APPLICATION QUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## PRE NETAPP COMMANDS ##########
[Fri Jun 17 18:00:02 2011] INFO: No commands defined
########## PRE NETAPP COMMANDS FINISHED SUCCESSFULLY ##########
[Fri Jun 17 18:00:02 2011] INFO: Checking API version on fas3140b
[Fri Jun 17 18:00:04 2011] DEBUG: ZAPI
<system-get-ontapi-version></system-get-ontapi-version>
[Fri Jun 17 18:00:04 2011] DEBUG: API Version 1.9 Detected, using that version for fas3140b
[Fri Jun 17 18:00:04 2011] DEBUG: Connected to fas3140b using API Version 1.9
########## Generating Info ASUP on fas3140b ##########
[Fri Jun 17 18:00:04 2011] DEBUG: ZAPI
<ems-autosupport-log>
<app-version>NetApp Snap Creator Framework 3.3.0</app-version>
<auto-support>false</auto-support>
<category>Backup Started</category>
<computer-name>SRVMGTNETAPP02</computer-name>
<event-description>INFO: NetApp Snap Creator Framework 3.3.0 Backup for sc-testthin ACTION: snap POLICY: hourly Plugin: null Volumes: fas3140b:testthin Started</event-description>
<event-id>0</event-id>
<event-source>SNAPCREATOR</event-source>
<log-level>6</log-level>
</ems-autosupport-log>
[Fri Jun 17 18:00:04 2011] INFO: NetApp ASUP create on fas3140b finished successfully
########## Gathering Information for fas3140b:testthin ##########
[Fri Jun 17 18:00:04 2011] INFO: Performing NetApp Snapshot Inventory for testthin on fas3140b
[Fri Jun 17 18:00:04 2011] DEBUG: ZAPI
<snapshot-list-info>
<volume>testthin</volume>
<terse>true</terse>
</snapshot-list-info>
[Fri Jun 17 18:00:05 2011] INFO: NetApp Snapshot Inventory of testthin on fas3140b completed Successfully
########## Running NetApp Snapshot Rename on Primary fas3140b ##########
########## SNAPSHOT CREATE COMMANDS ##########
[Fri Jun 17 18:00:05 2011] INFO: Running snapshot create command NTAP_SNAPSHOT_CREATE_CMD01 [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000]
[Fri Jun 17 18:00:05 2011] DEBUG: Executing command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000]
[Fri Jun 17 18:00:28 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000] finished with
exit code: [0]
stdout: [Starting snap create /testthin
WARNING: DO NOT CONTROL-C!
If snap create is interrupted, incomplete snapdrive
generated data may remain on the filer volume(s)
which may interfere with other snap operations.
Successfully created snapshot sc-testthin-hourly-20110617180000 on fas3140b:/vol/testthin
snapshot sc-testthin-hourly-20110617180000 contains:
disk group testvg containing host volumes
testlv (filesystem: /testthin)]
stderr: []
[Fri Jun 17 17:55:06 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Executing command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000]
[Fri Jun 17 17:55:28 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000] finished with
exit code: [0]
stdout: [Starting snap create /testthin
WARNING: DO NOT CONTROL-C!
If snap create is interrupted, incomplete snapdrive
generated data may remain on the filer volume(s)
which may interfere with other snap operations.
Successfully created snapshot sc-testthin-hourly-20110617180000 on fas3140b:/vol/testthin
snapshot sc-testthin-hourly-20110617180000 contains:
disk group testvg containing host volumes
testlv (filesystem: /testthin)]
stderr: []
[Fri Jun 17 17:55:28 2011] [ientfr02:9999(3.3.0.1)] DEBUG: Command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000] finished successfully with message
[Starting snap create /testthin
WARNING: DO NOT CONTROL-C!
If snap create is interrupted, incomplete snapdrive
generated data may remain on the filer volume(s)
which may interfere with other snap operations.
Successfully created snapshot sc-testthin-hourly-20110617180000 on fas3140b:/vol/testthin
snapshot sc-testthin-hourly-20110617180000 contains:
disk group testvg containing host volumes
testlv (filesystem: /testthin)]
[Fri Jun 17 18:00:28 2011] INFO: Running snapshot create command [/usr/bin/snapdrive snap create -fs /testthin -snapname sc-testthin-hourly-20110617180000] finished successfully
########## SNAPSHOT CREATE COMMANDS FINISHED SUCCESSFULLY ##########
########## PRE APPLICATION UNQUIESCE COMMANDS ##########
[Fri Jun 17 18:00:28 2011] INFO: No commands defined
########## PRE APPLICATION UNQUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## APPLICATION UNQUIESCE COMMANDS ##########
[Fri Jun 17 18:00:28 2011] INFO: No commands defined
########## APPLICATION UNQUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## POST APPLICATION UNQUIESCE COMMANDS ##########
[Fri Jun 17 18:00:28 2011] INFO: No commands defined
########## POST APPLICATION UNQUIESCE COMMANDS FINISHED SUCCESSFULLY ##########
########## Generating Info ASUP on fas3140b ##########
[Fri Jun 17 18:00:28 2011] DEBUG: ZAPI
<ems-autosupport-log>
<app-version>NetApp Snap Creator Framework 3.3.0</app-version>
<auto-support>false</auto-support>
<category>Backup Completed</category>
<computer-name>SRVMGTNETAPP02</computer-name>
<event-description>INFO: NetApp Snap Creator Framework 3.3.0 Backup for sc-testthin ACTION: snap POLICY: hourly Plugin: null Volumes: fas3140b:testthin Completed</event-description>
<event-id>0</event-id>
<event-source>SNAPCREATOR</event-source>
<log-level>6</log-level>
</ems-autosupport-log>
[Fri Jun 17 18:00:28 2011] INFO: NetApp ASUP create on fas3140b finished successfully
########## Checking Protection Manager dataset snapcreator_testthin ##########
[Fri Jun 17 18:00:28 2011] INFO: Checking if Protection Manager dataset snapcreator_testthin is conformant
[Fri Jun 17 18:00:28 2011] DEBUG: ZAPI
<dataset-list-info-iter-start>
<object-name-or-id>snapcreator_testthin</object-name-or-id>
</dataset-list-info-iter-start>
And the profile testthin :
########################
### Required Options ###
########################
SNAME=sc-testthin
SNAP_TIMESTAMP_ONLY=Y
VOLUMES=fas3140b:testthin
NTAP_SNAPSHOT_RETENTIONS=hourly:0,daily:7
NTAP_USERS=fas3140a:snapcreator/xxxxxxxxxxx;fas3140b:snapcreator/xxxxxxxxxxxxxxxxx
NTAP_PWD_PROTECTION=Y
TRANSPORT=HTTPS
PORT=443
LOG_NUM=10
SC_TMP_DIR=
##########################
### Connection Options ###
##########################
VFILERS=
MANAGEMENT_INTERFACES=
SECONDARY_INTERFACES=
########################
### Snapshot Options ###
########################
NTAP_SNAPSHOT_RETENTION_AGE=1
SNAPDRIVE=N
SNAPDRIVE_DISCOVERY=N
NTAP_SNAPSHOT_DISABLE=N
NTAP_SNAPSHOT_NODELETE=Y
NTAP_CONSISTENCY_GROUP_SNAPSHOT=N
NTAP_CONSISTENCY_GROUP_TIMEOUT=medium
NTAP_SNAPSHOT_DELETE_BY_AGE_ONLY=N
NTAP_SNAPSHOT_DEPENDENCY_IGNORE=Y
#########################
### SnapVault Options ###
#########################
NTAP_SNAPVAULT_UPDATE=N
SNAPVAULT_VOLUMES=
SNAPVAULT_QTREE_INCLUDE=
NTAP_SNAPVAULT_RETENTIONS=
NTAP_SNAPVAULT_RETENTION_AGE=
NTAP_SNAPVAULT_SNAPSHOT=N
NTAP_SNAPVAULT_NODELETE=N
NTAP_SNAPVAULT_RESTORE_WAIT=N
NTAP_SNAPVAULT_WAIT=0
NTAP_SNAPVAULT_MAX_TRANSFER=
##########################
### SnapMirror Options ###
##########################
NTAP_SNAPMIRROR_UPDATE=N
NTAP_SNAPMIRROR_CASCADING_UPDATE=N
SNAPMIRROR_VOLUMES=
SNAPMIRROR_CASCADING_VOLUMES=
NTAP_SNAPMIRROR_WAIT=0
NTAP_SNAPMIRROR_USE_SNAPSHOT=N
NTAP_SNAPMIRROR_MAX_TRANSFER=
#######################
### Cloning Options ###
#######################
NTAP_VOL_CLONE_RESERVE=none
NTAP_LUN_CLONE_RESERVATION=false
NTAP_CLONE_IGROUP_MAP=
NTAP_CLONE_FOR_BACKUP=Y
NTAP_CLONE_SECONDARY=N
NTAP_CLONE_SECONDARY_VOLUMES=
NTAP_NUM_VOL_CLONES=1
NTAP_NFS_EXPORT_HOST=
NTAP_NFS_EXPORT_ACCESS=
NTAP_NFS_EXPORT_PERSISTENT=
##################################
### Protection Manager Options ###
##################################
NTAP_PM_UPDATE=Y
NTAP_DFM_DATA_SET=fas3140b:snapcreator_testthin/testthin
NTAP_PM_RUN_BACKUP=Y
####################
### OSSV Options ###
####################
NTAP_OSSV_ENABLE=N
NTAP_OSSV_HOMEDIR=
NTAP_OSSV_FS_SNAPSHOT=N
NTAP_OSSV_FS_SNAPSHOT_CREATE_CMD01=
###################################
### Operations Manager Settings ###
###################################
OM_HOST=srvmgtnetapp01
OM_USER=mgtadm
OM_PWD=53616c7xxxxxxxxxxxxxx
OM_PORT=8443
OM_EVENT_GENERATE=Y
####################
### APP Commands ###
####################
ARCHIVE_CMD01=
####################
### Pre Commands ###
####################
PRE_APP_QUIESCE_CMD01=
PRE_NTAP_CMD01=
PRE_NTAP_CLONE_DELETE_CMD01=
PRE_APP_UNQUIESCE_CMD01=
PRE_RESTORE_CMD01=
PRE_CLONE_CREATE_CMD01=
#####################
### Post Commands ###
#####################
POST_APP_QUIESCE_CMD01=
POST_NTAP_CMD01=
POST_NTAP_DATA_TRANSFER_CMD01=
POST_APP_UNQUIESCE_CMD01=
POST_RESTORE_CMD01=
POST_CLONE_CREATE_CMD01=
###########################
### Event Configuration ###
###########################
NTAP_ASUP_ERROR_ENABLE=Y
SENDTRAP=
SUCCESS_TRAP=
SUCCESS_MSG=INFO: SnapCreator Backup completed successfully.
APP_QUIESCE_CMD01=/usr/local/snapcreator/scripts/quiece %SNAP_TYPE %SNAME
NTAP_SNAPSHOT_CREATE_CMD01=/usr/bin/snapdrive snap create -fs /testthin -snapname %SNAME-%SNAP_TYPE-%SNAP_TIME