Synology - Moving Packages Between Volumes DSM 7.0
-
Stop the application(s) via the Synology package center.
-
Make sure that Telnet/SSH is enabled
-
Login to Synology using SSH and elevate to root.
-
Make sure that the volume you are moving the application(s) to have the following folders:
-
@appstore
-
@apphome
-
@appconf
-
@apptemp
-
If they do not you will have to create them in super user mode “sudo -i” for all of the following commands
-
sudo -i cd /volume2 mkdir /volume2/@appstore mkdir /volume2/@apphome mkdir /volume2/@appconf mkdir /volume2/@apptemp
-
-
-
Find the application that you need to move on the correct value
-
Use “ls” against /VolumeX/@appstore to find your package folder name
-
cd /volume1/@appstore ls -lart drwxr-xr-x 15 AudioStation AudioStation 4096 Oct 6 22:37 AudioStation drwxr-xr-x 16 MediaServer MediaServer 4096 Oct 6 22:40 MediaServer drwxr-xr-x 9 iTunesServer iTunesServer 4096 Oct 6 22:41 iTunesServer drwxr-xr-x 23 SurveillanceStation SurveillanceStation 4096 Jan 24 17:13 SurveillanceStation
-
Use “mv” to move the data between the old and new volume, you may need to create the @appstore folder first.
-
mv SurveillanceStation /volume2/@appstore/
-
-
Now you will need to adjust Synology and relocate the parameters for the application(s) and where it is now moved to. this is done where the packages configurations live in “/var/packages”.
-
cd /var/packages/SurveillanceStation ls -lrt lrwxrwxrwx 1 root root 33 Oct 6 22:33 var -> /volume1/@appdata/UniversalViewer lrwxrwxrwx 1 root root 33 Oct 6 22:33 tmp -> /volume1/@apptemp/UniversalViewer lrwxrwxrwx 1 root root 34 Oct 6 22:33 target -> /volume1/@appstore/UniversalViewer lrwxrwxrwx 1 root root 33 Oct 6 22:33 home -> /volume1/@apphome/UniversalViewer lrwxrwxrwx 1 root root 33 Oct 6 22:33 etc -> /volume1/@appconf/UniversalViewer
-
Now we have to remove the symbolic links and recreate them to point to volume2 using the “rm” to remove and the “ln -s” to recreate them.
-
rm var tmp target home etc ln -s /volume2/@appdata/UniversalViewer var ln -s /volume2/@apptemp/UniversalViewer tmp ln -s /volume2/@appstore/UniversalViewer target ln -s /volume2/@apphome/UniversalViewer home ln -s /volume2/@appconf/UniversalViewer etc
-
-
-
Repair your application(s) package in the Synology Package Centre.
-
It will automatically re-download and restart
-