IBM Support

nzbackup errors when backing up to Samba file share

Troubleshooting


Problem

The nzbackup command fails with permissions error when writing to a Samba-mounted file share

Symptom

An nzbackup operation is generating permissions errors when trying to write the backup file to a Samba-mounted file share on a Windows server.

nzbackup -db SAMPLE -dir /SAMBA_BACKUP/Netezza

Error: /SAMBA_BACKUP/Netezza/Netezza/NPS/SAMPLE/20090824222329/1/FULL/md/schema.xmlp Permission denied.

However, the nz user can write to the same file share from the command line.

Resolving The Problem

The root cause of this error is in how the Windows Samba file share is mounted. To avoid this error, you need to add the following settings to the -o (options) argument of the mount command:

    -o "uid=nz,credentials=/root/.smbcredentials"

The uid=nz portion is critical.

If the error persists, add the following syntax to the -o string:
    umask=0002,fmask=0777,dmask=0777

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

NZ056864

Document Information

Modified date:
17 October 2019

UID

swg21570540