Steps to Migrate to the New Home System Manually
If you are currently using more than 100GB of space in your home directory, you will need to take some manual steps to migrate to the new home system. Since all quotas on the new system are a maximum of 100GB of space, you will need to choose what to copy over to the new system.
Steps
Migrating to the new system consists of two steps:
Moving files
There are two workflows for moving files. Choose the tab below that best matches your situation.
-
Check your home space usage with the powertool
file-sizes
:1 2
module load powertools/1.3.9 file-sizes --detail
Take note of how much space you are using over 100GB.
Important: don't use the
quota
command or any other tool to check your usageThere is a difference between the way that the old and new home systems compress files. The output from the
quota
command and most other tools will therefore be inaccurate on the old home system.Please only use the
file-sizes
command described above to get usage information that will be more accurate for the new home system.You can also use this tool to view how the space is being used within a directory, e.g.,
1
file-sizes --detail ~/project
to break down the space usage within
~/project
. -
Move excess files manually. There are a few choices:
- Move files to a shared research space. If your PI does not have one that you have access to, please ask them to create one or update your membership using this form. Each PI can request up to 3TB of space for free. See additional information for using research spaces below.
- Delete files that you are no longer using.
- Sync files to a non-HPCC location (like a personal computer, OneDrive, etc) and remove them from the HPCC. The recommended tool for this is Globus.
- As a last resort, you may consider temporarily using your scratch space. However, this is not recommended, as any files you move here will be deleted within 45 days. This should only be used as a temporary measure while implementing one of the solutions above.
-
After repeating Step 1 and verifying that you are using less than 100GB in your home directory, you can sync the entire contents of your home directory using these steps:
- Go to Globus
- Log in with MSU credentials
- Select the File Manager tab
- Select the Collection "Michigan State University MSU ICER msu#hpcc msuhpcc" on both sides
- On the left, navigate to
/mnt/ufs18/gpfs-home/<USER>
replacing<USER>
with your MSU username - On the right, navigate to
/mnt/ffs24/home/<USER>
replacing<USER>
with your MSU username - On the left, check the "select all" box
- On the left, click the Start button
- You will receive an email when your sync is complete
The File Manager setup is depicted in this screenshot:
Use the command:
1
rsync -avP /mnt/ufs18/gpfs-home/$USER/ /mnt/ffs24/home/$USER/
Note that the trailing slashes are necessary. If your sync is interrupted for any reason, you can restart it using the same command.
- Select directories you wish to copy to the new home system.
-
Copy these directories manually using these steps:
- Go to Globus
- Log in with MSU credentials
- Select the File Manager tab
- Select the Collection "Michigan State University MSU ICER msu#hpcc msuhpcc" on both sides
- On the left, navigate to
/mnt/ufs18/gpfs-home/<USER>
replacing<USER>
with your MSU username - On the right, navigate to
/mnt/ffs24/home/<USER>
replacing<USER>
with your MSU username - On the left, check the boxes next to all files/directories you would like to copy
- On the left, click the Start button
- You will receive an email when your sync is complete
The File Manager setup is depicted in this screenshot:
Suppose you wish to only copy the directory
~/project
to your new home directory. Use the command:1
rsync -avP /mnt/ufs18/gpfs-home/$USER/project /mnt/ffs24/home/$USER/
Repeat for any other directories or files you would like to keep. Note that if you remove any files in your old home and want to resync this directory, you should use the
--delete
option, like1
rsync -avP --delete /mnt/ufs18/gpfs-home/$USER/project /mnt/ffs24/home/$USER/
This will ensure that these deletions are replicated in your new home directory.
Transferring files that are too large
If you transfer files that total more than 100GB to your new home directory, you will exceed your quota. In this case, you will have to remove those files from your new home directory before trying again with fewer files.
-
Note that all files that you do not copy will be removed from the system.
Initiating the transfer
To start the transition, you just need to tell ICER that you are ready for your home directory to be moved. Note that you will not be able to use the HPCC for up to 30 minutes while this is taking effect, and any running jobs will not function as expected.
Do not access HPCC while home directory is being moved
After completing the step below, you should:
-
Ensure you have no running or queued SLURM jobs with
1
scancel --me
-
Log out of the HPCC (including all OnDemand and tmux/screen sessions)
- Wait up to 30 minutes for an email confirming that your home directory migration is complete
- Go to your home directory in the OnDemand File Browser
- Click the button that says "New File"
- Name the file
.move.my.home
(note that the initial.
is important)!
The process is depicted in this screenshot:
Run the command:
1 |
|
Tips
Managing files graphically via OnDemand
You can also use OnDemand's file browser to perform many operations like moving, copying, and deleting files. You can also download files to your personal computer, though this is limited to files that are 1GB or smaller.
However, note that the file sizes reported on OnDemand may be inaccurate on the new home system. Please use the file-sizes
powertool, e.g., by starting a new command line via the Development Nodes tab, and running the commands
1 2 3 |
|
Managing files on the command line
-
To move files on the command line use the
mv
command:1
mv ~/project ~/other_project_location
Don't use
mv
with research spacesUsing
mv
with a research space may preserve undesired group ownership. It is better to copy to a research space first (e.g., usingcp
), then delete the original version (e.g., usingrm
). -
To copy files on the command line, use the
cp
command. When you are copying a directory, you need to use the-r
option to copy everything inside:1
cp -r ~/project /mnt/research/my_group
You can also use the
rsync
command as shown above for a more robust option. -
To remove files on the command line, use the
rm
command. When you are removing a directory, you need to use the-r
option to remove everything inside. Be careful with usingrm
because deletions cannot be undone:1
rm -r ~/project
Moving files to research spaces
We recommend checking with your PI to see if there are any conventions for moving files to your shared research space (e.g., putting your files underneath a directory with your username).
The most important considerations when using research spaces are to:
- Use the
newgrp
command to change to the corresponding research group before copying any files - Copy files and remove the originals rather than move them directly
For example, to move the directory ~/my_project
from the home space to the research space /mnt/research/my_group
, use the commands:
1 2 3 4 |
|
Before moving files to research spaces please see our additional tips for Using Research Spaces.