Mediaflux is a system for storing huge amounts of data, developed by the US company Arcitecta. The Uni uses it.
We have limited space to store data on Spartan. Once a dataset is no longer being used regularly, it should be moved to Mediaflux.
There are several ways. I prefer SFTP client, which you may have met in this tutorial on transferring data. STFP is basically a set of rules governing how computers can securely transfer data between them.
To open an SFTP connection to Mediaflux from Spartan, run one of these, depending on whether your account is a student account or not:
# Standard unimelb account
sftp -o User=unimelb:${USER} mediaflux.researchsoftware.unimelb.edu.au
# Student account
sftp -o User=student:${USER} mediaflux.researchsoftware.unimelb.edu.au
It will ask for a password. You need to give it your University of Melbourne password, and not your Spartan/HPC password. The reason for this is that suffering builds character.
This will log you in. We now refer to the place you logged in from
(Spartan) as local
and the place you logged in to as
remote
, as in the remote directory or the
local machine.
Once you are logged in, you will have a command line that allows you
many commands analogous to those in linux, things like cd
,
ls
, pwd
, mkdir
, and (careful!)
rm
. Head over to our Mediaflux storage directory with:
Before you transfer data, think carefully about a directory name for it. You can make directories and subdirectories as needed. Remember, someone in 100 years might be looking for it based on your thesis, so use an informative title.
Since I will transfer files as a demo, and delete tham afterwards, I
will create a directory called
tim_mediaflux_demo_DELETE_ME
:
I have a directory in my Spartan home directory (~
)
called transfer_me
containing three files;
file1
, file2
, and file3.
In fact
despite being logged in to the remote computer, I can actually see it on
my local computer using a cool trick. A command prefaced with a bang
character (for some reason this is what computer nerds call an
exclamation mark, ‘!
’) is executed on the local system and
the result displayed.
There doesn’t seem to be a way to limit access to files on Mediaflux. Anyone who has access to the lab group directory (i.e. all of you) can delete anything they want. That’s bad. Never delete anything unless you personally know exactly what it is and you are 100% sure that there is zero chance in a billion years it will be wanted again. I will talk to admins about enabling better access control.
screen
session, and be sure to
allocate resources for a long time.reget
will attempt to resume an
interrupted transfer by (e.g.) completing partially-complete file
transfers and ignoring already-transferred files.