How to setup and verify NDMP based exclude parameters in NetBackup.

Article:TECH75053  |  Created: 2009-01-30  |  Updated: 2013-10-24  |  Article URL http://www.symantec.com/docs/TECH75053
Article Type
Technical Solution


Environment

Issue



How to setup and verify NDMP based exclude parameters in NetBackup.

Solution



1. Verify that the policy selection list has the following directive at the top of all other directives. You may separate multiple exclude criteria with a comma without any spaces in between two criteria.

Eg: SET EXCLUDE=*.gif,*.txt,*.mp3,Test123

Here *.gif, *.txt, *.mp3, and Test123 are exclude criteria

 

2. In NetBackup, only one exclude directive is supported per NDMP policy. You may include wildcards and directories in the same exclude directive as show above.

3. Once an NDMP job with excludes is executed, NetBackup passes the exclude variable via the ndmp module (OID 151). Shown below is a snippet from a NetBackup VxUL log for OID 151. To setup VxUL logging please refer to the related documents section.

9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   butype_info.attrs=NDMP_BUTYPE_RECOVER_FILELIST|NDMP_BUTYPE_BACKUP_DIRECT|NDMP_BUTYPE_RECOVER_DIRECT|NDMP_BUTYPE_BACKUP_INCREMENTAL|NDMP_BUTYPE_RECOVER_INCREMENTAL|NDMP_BUTYPE_BACKUP_FH_DIR
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 **  End NDMP_CONFIG_GET_BUTYPE_INFO
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 ->  (1748) 8 [0] 12:01:24 NDMP_DATA_START_BACKUP (0x401) NDMP_NO_ERR (0x0)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   butype_name="dump"
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env(length)=7 (0x7)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[0]=(TYPE=dump)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[1]=(FILESYSTEM=/vol/vol1/)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[2]=(PREFIX=/vol/vol1/)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[3]=(LEVEL=0)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[4]=(HIST=y)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[5]=(UPDATE=y)
9/16/2009 12:01:24.500 [ndmp_logger_vxul] ec6be0 .   env[6]=(EXCLUDE=*.gif,*.txt,*.mp3,Test123)


4. The above can also be verified on NetApp by setting up NDMP debug logging levels to 70.

i. Setup debug logging on the filer as follows:

a) options ndmpd.connectlog.enabled off (This will turn off unwanted connection logging from user connections)
b) ndmpd debug (Displays current logging levels. Make sure that file trace is set to true)
c) ndmpd debug 70 (Set logging level to 70 which captures the data I need)
d) ndmpd debug 0 (Turns off logging)


ii. The logs will be located in the /etc/log directory and the file name is ndmpdlog.<yyyy><mm><dd>
Sep 16 06:36:01 GMT [ndmpd:11]: Key: MULTI_SUBTREE_NAMES, Value:
Sep 16 06:36:01 GMT [ndmpd:11]: Key: FILESYSTEM, Value: /vol/vol1/
Sep 16 06:36:01 GMT [ndmpd:11]: Key: EXTRACT_ACL, Value: Y
Sep 16 06:36:01 GMT [ndmpd:11]: Key: SMTAPE_DELETE_SNAPSHOT, Value: N
Sep 16 06:36:01 GMT [ndmpd:11]: Key: DATA_BLOCK_SIZE, Value: 63
Sep 16 06:36:01 GMT [ndmpd:11]: Key: REPLICATE, Value: N
Sep 16 06:36:01 GMT [ndmpd:11]: Key: TYPE, Value: dump
Sep 16 06:36:01 GMT [ndmpd:11]: Key: HIST, Value: y
Sep 16 06:36:01 GMT [ndmpd:11]: Key: NDMP_UNICODE_FH, Value: N
Sep 16 06:36:01 GMT [ndmpd:11]: Key: LEVEL, Value: 0
Sep 16 06:36:01 GMT [ndmpd:11]: Key: EXCLUDE, Value: *.gif,*.txt,*.mp3,Test123
Sep 16 06:36:01 GMT [ndmpd:11]: Key: FORCE, Value: N
Sep 16 06:36:01 GMT [ndmpd:11]: Key: NDMP_VERSION, Value: 4

If you notice that your exclude list is not working as expected, collect the above logs and contact Symantec Technical Support for further clarification.



Legacy ID



334050


Article URL http://www.symantec.com/docs/TECH75053


Terms of use for this information are found in Legal Notices