Hi, all
I am trying to backup my oracle 11gr2 database to a nfs server with RMAN.
I successfuly mount the nfs directory in my db server, and with rman command:
backup datafile 1 format '/nfs/56.dbf';
and I got an error like this:
RMAN> backup datafile 1 format '/nfs/56.dbf';
Starting backup at 18-AUG-21
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=119 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/erpdb/system01.dbf
channel ORA_DISK_1: starting piece 1 at 18-AUG-21
channel ORA_DISK_1: finished piece 1 at 18-AUG-21
piece handle=/nfs/56.dbf tag=TAG20210818T233911 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 18-AUG-21
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/18/2021 23:39:38
ORA-19504: failed to create file "/nfs/56.dbf"
ORA-27038: created file already exists
Additional information: 1
The file "56.dbf" doesnot exist until I run the rman backup command. And the file got a large size so I think the backup had been executed.
Here is my nfs server's /etc/exports:
/data/ 192.168.1.0/24(rw,all_squash,sync,anonuid=1001,anongid=1001)
and 1001 is my nfs server's oracle user/group:
[root@nfs ~]# id 1001
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)
Here is my db server's mount command:
mount -v -t nfs -o rw,bg,noac,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600,nolock 192.168.1.10:/data /nfs
I ls the file in my db server
[root@oracle nfs]# ll 56.dbf
-rw-r----- 1 oracle oinstall 859807744 Aug 10 12:43 56.dbf
Look, the 56.dbf got a filesize, but the rman got an error.
So, please help about this, is the error with nfs or with rman?
Thank you!
BTW, the nfs server is CentOS7.9, and DB Server is RHEL 7.6