title: Oracle RAC RMAN Backup not writing to NFS Share
body: <pre><code>run {
      SET nocfau;
      
      ALLOCATE CHANNEL CH0 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
      ALLOCATE CHANNEL CH1 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
      ALLOCATE CHANNEL CH2 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
      ALLOCATE CHANNEL CH3 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
      
      BACKUP AS COPY INCREMENTAL LEVEL 0 TAG 'INCR_MERGE' DATABASE;
      BACKUP ARCHIVELOG ALL FORMAT '/nfs/archivelogs/%U' NOT BACKED UP 1 TIMES;
      
      RELEASE CHANNEL CH0;
      RELEASE CHANNEL CH1;
      RELEASE CHANNEL CH2;
      RELEASE CHANNEL CH3;
  }
  </code></pre>
  <p>The above is the <code>rman script</code> to run backup for Oracle RAC. I have NFS share that is mounted with following options: <em><strong>rw,user,hard,noac,vers=4</strong></em></p>
  <p>The NFS Server has the following export: <code>NFSv4,rw,no_root_squash,no_all_squash,secure</code></p>
  <p>The issue is that nothing gets written to the NFS share. I can create files, copy large files, but when RMAN is run nothing is copied to the NFS share.
  The RMAN process runs till it's terminated.</p>
  <p>When I do <em><strong>nfsiostat -a</strong></em> it shows 5 mandatory GETATTR requests.
  Does it mean the Oracle datafiles are not being written in NFS share because the file attributes along with file uid/gid is not being successfully retrieved?</p>
  <p>Update: tried running the backup on Oracle 19c RAC setup
  Get the following RMAN error</p>
  <pre><code>RMAN-03009: failure of backup command on CH0 channel at 08/24/2020 16:59:11
  ORA-19504: failed to create file &quot;/home/oracle/nfs/ractest/1178998226/full/datafile/data_D-ORAMS19C_I-1178998226_TS-SYSAUX_FNO-3_rhv8m5mt_20200824&quot;
  ORA-17503: ksfdopn:11 Failed to open file /home/oracle/nfs/ractest/1178998226/full/datafile/data_D-ORAMS19C_I-1178998226_TS-SYSAUX_FNO-3_rhv8m5mt_20200824
  ORA-17500: ODM err: No such file or directory
  </code></pre>
  <p>I ran the rman backup on a local disk they succeed and the datafiles have the group asmadmin. Do backups fail on NFS share becuase the datafile attributes/group information is not being copied to the NFS share?
  The oracle user is not part of the asmadmin group.</p>