Migrating data to new disk

About this, if I now have RAID 1, why are there two separate CACHEDEV1_DATA and CACHEDEV2_DATA directories? I noticed now that all my configs are indeed in CACHEDEV2_DATA.

All that script did was replace all occurrences
/share/CACHEDEV1_DATA/Public
with
/share/CACHEDEV2_DATA/Public

in /etc/config/smb.conf and /etc/config/def_share.info

But that did not move the program data or change the individual config files for these programs.

I also do no know what exactly your rsync command looked like, etc

The exact steps I followed were the following:

Copied all files from original static volume to the storage pool, including the .qpkg directory, with the apps’ settings: rsync -avhr /share/CACHEDEV1_DATA/ /share/CACHEDEV2_DATA/

Then changed the default mapping:

sed -i 's:CACHEDEV1_DATA:CACHEDEV2_DATA:g' /etc/config/smb.conf
sed -i 's:CACHEDEV1_DATA:CACHEDEV2_DATA:g' /etc/config/def_share.info

Then rebooted the QNAP, removed the old static volume drive and then expanded the storage pool to RAID 1 using the old drive.

Seems that all my apps are now writing their settings to /share/CACHEDEV2_DATA/.qpkg and everything seems to work fine.

I am just wondering why there are still 2 separate CACHEDEV1_DATA and CACHEDEV2_DATA if the storage pool uses RAID 1, but otherwise I am happy with the result.

I needed to reinstall all my apps in the end, but their settings were kept.