This blog is intended for DBA’s who have error while running a fsclone phase run patching cycle error, we have solution for fsclone phase error.

Issue:

We are facing issue in fsclone, Error code form Log file of fsclone .unable to Synchronise the file system because of the below /u01/oracle/UAT/fs2/FMW_Home directory cannot be deleted .the below directory is used by some other user or it would have used in the screen session.so we tried to remove a directory from an application user, we can’t able to remove the directory, so we have removed the directory from root user.

clone_status_from_db = 6
removing the directory: /u01/oracle/UAT/fs2/FMW_Home
Failed to delete the directory /u01/oracle/UAT/fs2/FMW_Home.
*******FATAL ERROR*******
PROGRAM: (/u01/oracle/UAT/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl)
TIME    : Thu May  4 21:07:16 2023
FUNCTION: main::removeDirectory [ Level 1 ] ERRORMSG: Failed to delete the directory /u01/oracle/UAT/fs2/FMW_Home.

Solution

STEP-1:

Tried to remove directory /u01/oracle/UAT/fs2/FMW_Home manually we couldn’t delete it.

[oracle@UATapp01TXK_SYNC_create]$ls-ld /u01/oracle/UAT/fs2/FMW_Home
drwxr-xr-x. 7 oracle dba 4096 May  4 21:07 /u01/oracle/UAT/fs2/FMW_Home
[oracle@UATapp01TXK_SYNC_create]$du -sh /u01/oracle/UAT/fs2/FMW_Home
2.3G    /u01/oracle/UAT/fs2/FMW_Home
[oracle@UATapp01TXK_SYNC_create]$pwd
/u01/oracle/UAT/fs_ne/EBSapps/log/adop/39/20230504_200742/fs_clone/UATapp01/TXK_SYNC_create
[oracle@UATapp01TXK_SYNC_create]$echo $RUN_BASE
/u01/oracle/UAT/fs1
[oracle@UATapp01TXK_SYNC_create]$rm -rf /u01/oracle/UAT/fs2/FMW_Home
rm: cannot remove ‘/u01/oracle/UAT/fs2/FMW_Home/Oracle_EBS-app1/applications/forms/forms/WEB-INF’: Permission denied

STEP-2

So logged in as root and deleted the directory and restarted fs_clone.

[opc@UATapp01 ~]$ sudo su –
Last login: Wed May  3 09:35:52 IST 2023 on pts/1
[root@UATapp01 ~]# rm -rf /u01/oracle/UAT/fs2/FMW_Home

After removing a above directory fsclone got completed successfully, Hope the solution would have helped to overcome the above issues. Happy Debugging!

Recent Posts

Start typing and press Enter to search