Migration of SMRT Analysis job data to new filesystem - dyim42/SMRT-Analysis GitHub Wiki
Oftentimes $SMRT_ROOT/userdata directory outgrows it's current location. Sysadmins who need to preserve jobs history may wish to migrate older jobs on to larger storage.
One way to move files to a new location is to copy the job or input directory to the new location, remove the old directory, and create a symlink identical to the previous path. That way, files will not need to be re-imported and job history is preserved.
For example, to move the 016 job directory:
SMRT_ROOT=/opt/smrtanalysis
cp -au $SMRT_ROOT/userdata/jobs/016 /newfilesystem/pacbio/userdata/jobs/
rm -Rf $SMRT_ROOT/userdata/jobs/016
ln -s /newfilesystem/pacbio/userdata/jobs/ $SMRT_ROOT/userdata/jobs/016
In order to move the entire $SMRT_ROOT/userdata/jobs directory, thus redirecting ALL jobs to the new location, make sure SMRT Portal web services are first turned off and no jobs are running on the cluster.