SAP HANA restore finishes with NetBackup status code 1. Files are restored but are zero bytes in size.

Artikel: 100049610
Zuletzt veröffentlicht: 2021-02-25
Bewertungen: 0 0
Produkt(e): NetBackup & Alta Data Protection

Problem

SAP HANA restore finishes with NetBackup status code 1.  Files are restored but are 0 bytes in size.

Error Message

There are no applicable error messages.  The job details will indicate a partially successful restore with status code 1 rather than a status code 0.

Cause

This problem is known to occur on SAN Media Servers (i.e. hosts which act as both a NetBackup client and media server backing up their own data) but may additionally affect hosts using either Client Direct deduplication or SAN Client capability.  The full scope and cause of the issue are still under investigation as of the time of this writing.

This specific issue manifests itself in the TAR log on the client during a restore as follows:

07:33:48.977 [4887.4887] <4> cTarOptions::parseCommandLineOptions: INF - shm_restore(-J) : true

--snip--
07:33:51.992 [4887.4887] <2> cFileMetaData::logMetaData: DBG - Source Object Type: 1, Object LF Type: (, Object Name: /usr/sap/DN5/SYS/global/hdb/backint/log_backup_1_0_634624_1183360, Link name:
07:33:51.993 [4887.4887] <2> UnpackerTAR::getData(): DBG - After call to getTotalSize(). Size=0 (../UnpackerTAR.cpp:743)

Note above the reference to "Size=0"

Solution

Create a touch file named /usr/openv/netbackup/NOSHM on the affected client.

More information can be found here:

Does the touch file "NOSHM" really disable the use of shared memory during backups and/or restore?
https://www.veritas.com/support/en_US/article.100016170

After touching NOSHM, the TAR log will show no reference to shm (shared memory) and a non-zero size (which is the desired effect) will be returned:

15:46:42.832 [8955.8955] <2> cFileMetaData::logMetaData: DBG - Source Object Type: 1, Object LF Type: (, Object Name: /usr/sap/DN5/SYS/global/hdb/backint/log_backup_1_0_634624_1183360, Link name:
15:46:42.832 [8955.8955] <2> UnpackerTAR::getData(): DBG - After call to getTotalSize(). Size=35127296 (../UnpackerTAR.cpp:756)

 

This issue is currently under investigation by Veritas. Pending the outcome of the investigation, this issue may be resolved by way of a cumulative hotfix, release update or service pack in the current or future versions of the software.

Please be sure to refer back to this document periodically as any changes to the status of the issue will be reflected here.

 

Verweise

Etrack : 4029382

War dieser Inhalt hilfreich?