I am encountering a situation where there is no space left on device holding vardir directory, but I have additional space in separate locations. Can the rim directory be temporarily moved?
原因
Not enough space available to store the Shareplex datafiles. This usually occurs when either the source or target servers and backlogged.
解决办法
NOTE: This is a temporary solution
Example of moving $SP_SYS_VARDIR/rim directory and creating a link to the location:
/Source - refers to current $SP_SYS_VARDIR /Target - refers to the location where rim dir will be moved to
1. Shutdown shareplex.
2. ps -ef |grep -i sp_ # make sure all the shareplex processes have logged out.
3. Tar the /Source/rim directory: echo $SP_SYS_VARDIR cd /Source tar cvf /Target/rim.tar ./rim
4. Untar the contents of the tar file in the new location: cd /Target tar xvf rim.tar
5. Change ownership of the new directory: chown -R oracle:spadmin rim
6. Rename /Source/rim until you are sure the new setup works or make a second backup before deleting: cd /Source mv rim rim.old
7. Create a link to the new directory: cd /Source ln -s /Target/rim /Source/rim ls -l /Source/rim
8. Start up Shareplex and make sure it is running properly. Check source and target systems.
9. Backup /Target/rim and /Source/rim.
10. Backup the tar file (/Target/rim) and original (/Source/rim.old).
11. Then remove the tar file (/Target/rim) and original (/Source/rim.old).