Skip to Content
avatar image
Former Member

SAP HANA Backup error

Hi all,

When trying to run a Backup in HANA Studio we get an message/error which reports that the backup is failing.

The shared folder where the backups will be stored has the necessary permissions set.

The error we get is:

Could not start backup of system 'SH1'. ' Cannot open file ""<root>/.log_backup_0_0_0_0.1385931567067" (mode= W, access= rwrwr-, flags= DIRECT|UNALIGNED_SIZE|TRUNCATE|MULTI_WRITERS), factory= (root= "/mnt/backup/log/" (access= rwrwr-, flags= AUTOCREATE_PATH|DISKFULL_ERROR, usage= LOG_BACKUP, fs= UNKNOWN (cifs), config= (AsyncWriteSubmitActive=auto,AsyncWriteSubmitBlocks=new,AsynReadSubmit=off,#SubmitQueues=1,#CompletionQueues=1)))", rc=22: Invalid argument'

Does anyone have an idea of what we can check to resolve this error?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 03, 2013 at 03:53 PM

    The problem was with NTFS shares from windows.

    We changed the backup location to an NFS share & the backups works now.

    Verry annoying that the HANA backups don't seem to support NTFS (cifs in linux) shares.    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 02, 2013 at 04:32 AM

    Hi Dries,

    Can you check the free size in /mnt/backup/log.

    What is the value of parameter log_mode

    regards

    kartik

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Did you try creating an empty file in that location as the HANA OS user itself?

      Try running "touch abc" in the location. If that succeeds try adding some data to the file "abc" using VI editor.

      I got a similar problem today but in my case the flag was AUTOCREATE_DIRECTORY.



      Thanks,

      Jackson

  • Jul 11, 2016 at 02:01 PM

    Doing a backup to an external windows share (using smb) is possible, but in depends on how you mount the share in linux.

    You have to use parameter dir_mode=0775 and dir_file=0775 (for example) within mount-command. If you do not, HANA aborts with permission error even if all permissions on windows share are set.

    Add comment
    10|10000 characters needed characters exceeded