Knowledgebase: Tips and tricks
Moving the PresSTORE folder to another place on Unix and Macs
Posted by Sven Koester on 02 January 2009 10:42

By default, PresSTORE ist installed in /usr/local/aw on Linux, Solaris and OSX hosts.
Due to the fact that PresSTORE's backup and archive modules make use of index files to maintain the data saved on tape, the directory may consume a large amount of space. It may then be required to move PresSTORE to another volume with more space.

The easiest way to achieve that is to move the complete PresSTORE folder to another disk.
We will assume in the following it is moved from /usr/local/aw to /Volumes/bigdisk/aw, please replace the pathes according to your folders.
It is further assumed that you have administrator permissions, otherwise please use sudo command instead of
command to get permission for the operation.

First, the running PresSTORE server must be stopped:
   cd /usr/local/aw
   ./stop-server

Next, create the destination folder, if not yet existing:
   mkdir /Volumes/bigdisk/aw

Then copy the aw folder's content to the new location. In order to copy softlinks correctly, you may want to use the tar command:
 
cd /usr/local/aw
   tar -cf - . | (cd /Volumes/bigdisk/aw ; tar -xvf -)

This command does not produce an intermediate tar archive. In case you need such an archive, e.g. to carry the aw folder on a removeable
disk, use these commands to create an archive and extract from it later:
   cd /usr/local/aw
   tar -cvf  /Volumes/RemoveableDisk/PresSTORE.tar .

   cd /Volumes/bigdisk/aw
   tar -xvf  /Volumes/RemoveableDisk/PresSTORE.tar
 


After the copying, the install script must be started to correct the autostart mechanisms and start the server:
   cd /Volumes/bigdisk/aw
  ./install.sh

Thats all. The server will start the same way as from the original place, there will be no changes in the PresSTORE web interface.

On Mac OSX, the default installation path cannot be changed during an installation from the .dmg file. Because of that, it is more practical to keep PresSTORE installed at /usr/local/aw in order to be able to use the normal mechanism to update the package later on. To save space on
/usr/local/aw, which often resides on the root filesystem, the above methods can be used to move only the folder usr/local/aw/conf/index (P4) or usr/local/aw/config/index (P5) to the new location and set a soft link from the old to the new location (http://en.wikipedia.org/wiki/Ln_(Unix)). This way, the .dmg style packet installation can be used unchanged, but the space consuming index files can be stored at a different location.

(451 vote(s))
Helpful
Not helpful

Comments (2)
David Fox
06 January 2009 11:08
Personally, I prefer to just move the aw/conf/index folder over to the other storage and provide a link to it from the original. This way the OS X package installer can still be used to perform upgrades on OS X.
Mike Goslin
30 June 2015 0:07
FYI, in a large install, that first reboot after the install script runs can take a long time. We are syncing two SAN's and backing to 10 LTO's... the first reboot took 17 minutes! be patient.
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

ERROR: This domain name (portal.archiware.com), does not match the domain name in the license key file support.archiware.com.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com