This document describes how to move the $SP_SYS_VARDIR/rim directory to another location.
$SP_SYS_VARDIR/rim directory runs out of space and additional disk space is not be available for allocation to the file system that holds $SP_SYS_VARDIR/rim.
NOTE: Rim files are sparse files. Shareplex queue logic reserves 8M of file space, but the actual usage may be less than 8M. To move or copy a sparse file, use the pax instead of tar command command to restore the data. The pax command will preserve the sparseness of a filewhile the tar command will create an actual 8M file regardless of the amount of data actually in the file. In addition, the pax command will unallocate any blocks filled with zeroes.
1. Locate/create the new location with plenty of space
2. Tar up the original rim directory
cd $SP_SYS_VARDIR
tar -cvf <newfilesystem>/rim.tar ./rim
3. Restore the rim.tar into a new location using the following pax command. NOTE: use pax instead of tar.
cd <newfilesystem>
pax -rp e -f rim.tar (like tar -xvf rim.tar)
4. Remove the original $SP_SYS_VARDIR/rim directory
5. Create a link in $SP_SYS_VARDIR named rim that would point to <newfilesystem>. Depending on version and how shareplex was installed this may need to be run as root. The step to create the link is very important as it will allow shareplex to locate the new rim directory.
$SP_SYS_VARDIR
ln -s <vardir>/rim rim
6. Change ownerships of the new <vardir>/rim directory to match ownership of other shareplex directories.
7. Make sure the shareplex user has write permissions to the new <vardir>/rim and to all files located with that directory.
pax -vf <filename> (same as tar -tvf <filename>)
pax -rp e -f <filename> (like tar -xvf <filename>)
Please check the man pages for the valid options of the "tar" and "pax" commands for your operating system.
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy