PresSTORE Knowledge
Relocating Archiware PresSTORE indexes to RAID storage
PresSTORE has a default installation location of /usr/local/aw. When installing and upgrading using the OS X package installer, this directory will be used. We do not therefore recommend using an alternative location.
However, because PresSTORE places it's index databases within this directory, a situation can occur where there isn't enough free space on the system partition to comfortably accommodate presstore and it's indexes. The recommended solution here is to relocate the /usr/local/aw/conf/index folder to an alternative location (partition) and create a 'soft link' to this new location.
Following the steps below, you will copy the contents of the /usr/local/aw/conf/index folder from the root partition (system disk) of your server to another partition (a Raid for example). Once you have established your success in performing this, the original index directory can be deleted and free up the space on your system partition.
Notes
1. The text in boxes below in Courier font should be entered into the Terminal.
2. This change is compatible with PresSTORE v3 and v4
The instructions below should only be undertaken by someone confident in executing terminal commands as root user. Any errors could cause data loss!
First, allow your shell commands to run with root privileges - enter your admin password when prompted
DaveMPB:aw davidfox$ sudo -s
Create a new folder on the partition with free space available. In this example, I'm using a Raid named "Data XRaid'. Notice that the space in the name of the volume has to be quoted when referenced on the command line
sh-3.2# mkdir /Volumes/Data\XRaid/presstore_index
Change to the existing archiware index directory, this is the directory that we will be relocating onto another partition
sh-3.2# cd /usr/local/aw/conf/index/
See how much space is being used in this directory - in this case 16GB. Make sure you have this amount of space free on your target partition before you proceed
sh-3.2# du -hs
Copy the contents of this folder to the newly created folder in such a way that special files and links are preserved. Copy and Paste to be sure to get it exactly right!
sh-3.2# tar cf - . | (cd /Volumes/Data\ XRaid/presstore_index; tar xf -)
Move back to the previous directory
sh-3.2# cd ..
Rename the existing index folder, this "index_old" folder can later be deleted.
sh-3.2# mv index/ index_old
Create a symbolic link in the current directory pointing to the newly created folder on the Raid, again quoting the space in the name of the Raid
sh-3.2# ln -s /Volumes/Data\ XRaid/presstore_index/ index
List files in current directory, check you see the index entry linking to the folder on the Raid
sh-3.2# ls -al
total 32
drwxr-xr-x 10 root wheel 340 27 Aug 10:52 .
drwxr-xr-x 22 root wheel 748 6 Sep 12:14 ..
drwxr-xr-x 7 root wheel 238 6 Sep 12:14 customerconfig
drwxr-xr-x 2 root wheel 68 27 Aug 10:52 customerconfig-pre4
drwxr-xr-x 4 root wheel 136 27 Aug 15:01 dev
drwxr-xr-x 6 root wheel 204 27 Aug 14:58 index -> /Volumes/Data XRaid/presstore_index/
-rwxr-xr-x 1 root wheel 1118 27 Aug 10:52 lexxsrv.8000
-r-------- 1 root wheel 33 27 Aug 10:52 localhost.key
-rw-r--r-- 1 root wheel 8 27 Aug 10:52 servers
-rw-r--r-- 1 root wheel 3 6 Sep 12:14 shutwhen.dat
Optionally you could move the "index_old" folder out of the "aw/conf" folder and onto the desktop so you'll remember to delete it later.
sh-3.2# mv index_old/ ~/Desktop/
Now you can restart presstore. Check everything is working as before (browse indexes and do a test restore etc). After waiting a couple of days to establish everything is working as expected, you can delete the 'index_old' directory from your desktop folder.
Popular PresSTORE Articles
- PresSTORE 4.0 Licencing - Workgroup Edition 24
- Migrate PresSTORE from old Xserve to new
- PresSTORE 4.0 Licencing
- Calculating network data transfer speeds
- PresSTORE 4.0 Licencing - Workgroup XXL Edition 24
- PresSTORE 4.0 Licencing - Professional XXL Edition
- PresSTORE 4.0 Licencing - Backup2Go Module
- Backup to Disk - a best practice for small business?
- PresSTORE 4.0 Licencing - Professional Edition 48
- PresSTORE 4.0 Licencing - Backup Module



