When I set up my own Synology DS1815+, I created a large hard disk volume for most of my storage requirements. For the heck of it I had also created a RAID1 volume of a pair of 30 GB solid-state drives that I had lying around. I was curious to see whether installing applications to the solid-state drive would improve responsiveness or speed up the boot time. As it turns out, I’m not a demanding enough user to really notice a difference.
As my larger volume started filling up, the real estate taken up by those two small 30 GB solid-state drives became an obstacle. The problem was, I had already installed all of the applications to that volume. So I sought a way to move the applications without having to reinstall them, since I was afraid reinstalling AudioStation, PhotoStation or VideoStation might prompt a whole-volume index which I’m not eager to do – it takes ages.
As it turns out, this is relatively easy for most applications – even third-party ones. Apps like Snapshot Replication, CrashPlan and DownloadStation had to be uninstalled and reinstalled manually, but for the majority of apps this should work. Strictly speaking, DownloadStation didn’t need to be uninstalled manually but there were some remaining temp files in /volume3/@download that I didn’t want so I opted to just reinstall it manually.
I would not recommend this unless you know what you’re doing.
Moving an Application Between Volumes in DSM 5.x or DSM 6.x
Before doing the following, make sure all of the applications that are about to be moved have been stopped. You can do this by opening the Package Center, visiting each application entry under Installed and then clicking Action->Stop. I found it was easier to use my iPhone to login to the DSM console where there’s a handy “Stop” button for each application without having to tediously visit each entry.
You may also opt for the command-line method of stopping these services, since you’ll be digging around in there anyway.
sudo /var/packages/[app_name]/scripts/start-stop-status stop
So the process comes down to three basic commands. In the example below, it assumes that the current installation volume is volume1, and the desired one is volume3:
# Move the app files from the old volume to the desired one. sudo mv /volume1/@appstore/[app_name] /volume3/@appstore/ # Delete the obsolete Symlink pointing at the old app path sudo rm -fv /var/packages/[app_name]/target # Create a new Sim link pointing at the new, correct app path. sudo ln -s /volume3/@appstore/[app_name] /var/packages/[app_name]/target
Now you can either reboot or simply visit the Package Center and manually start the apps again. Each app entry should now show the correct new installation volume.