Group Storage: Difference between revisions
Line 50: | Line 50: | ||
If you use an image with NFS provided by the Grid'5000 team, autofs will do the job for you. You just have to go to: | If you use an image with NFS provided by the Grid'5000 team, autofs will do the job for you. You just have to go to: | ||
<code class="host">node: </code><code class="command">cd /srv/storage/</code><code class="replace">storage_name</code>@<code class="replace">server_address</code> | <code class="host">node:</code><code class="command">cd /srv/storage/</code><code class="replace">storage_name</code>@<code class="replace">server_address</code> | ||
for example: | for example: | ||
<code class="host">node: </code><code class="command">cd /srv/storage/</code><code class="replace">my_storage</code>@<code class="replace">granche-srv1.lille.grid5000.fr</code> | <code class="host">node:</code><code class="command">cd /srv/storage/</code><code class="replace">my_storage</code>@<code class="replace">granche-srv1.lille.grid5000.fr</code> | ||
You may want to add a symbolic link to this path for convenience: | You may want to add a symbolic link to this path for convenience: | ||
<code class="host">node: </code><code class="command">ln -s /srv/storage/</code><code class="replace">my_storage</code>@<code class="replace">granche-srv1.lille.grid5000.fr</code><code class="command"> ~/my_storage</code> | <code class="host">node:</code><code class="command">ln -s /srv/storage/</code><code class="replace">my_storage</code>@<code class="replace">granche-srv1.lille.grid5000.fr</code><code class="command"> ~/my_storage</code> | ||
If you don't use an image provided by the Grid'5000 team, you will need to use the storage API. | If you don't use an image provided by the Grid'5000 team, you will need to use the storage API. |
Revision as of 12:20, 22 February 2019
You can ask for a group storage to use a large space of storage that you can share between multiple Grid'5000 users. Once the storage is created, you can manage which user can access it. The storage is accessible on Grid'5000 using NFS mounts.
Group storage resources pool
TODO
Asking for a group storage
To request a new group storage, please send an email to suppert-staff@list.grid5000.fr. Please copy/paste the following text and fill all the required information
- Email subject:
Group Storage Creation
- Email content:
What is your Grid'5000 login ? <...> What is the name of the group you want to be link with this storage space ? (must start by "sto-") <...> Does the group alredy exists (from another storage group) ? Yes/No On which site do you want the storage ? You can also specify the server. <...> What is the intended usage, in ~5 lines ? <...> The expiration date (We will contact you before removing your storage)? <...>
The support staff will create the storage, and if the group is new, will create and set you as an owner of the group.
Manage group
For now, the only way to manage the group is frome the api. The documentation can be found https://gitlab.inria.fr/grid5000/users-api-ror/blob/master/API.md.
For a basic usage, you will need to update the list of member of a group, it's is done like so:
- First we get the list of the current user of the group:
frontend:
curl 'https://api.grid5000.fr/stable/users/groups/
sto-mygroup
' | jq .members
[ "dtennant", "msmith", "pcapaldi" ]
- Then we replace by the wanted updated list:
frontend:
curl -X PATCH -H 'Content-Type: application/json' 'https://api.grid5000.fr/stable/users/groups/
sto-mygroup
'-d '{"members": ["
dtennant
", "msmith
", "jwhittaker
"]}'
Here, we have removed pcapaldi
and add jwhittaker
Accessing your storage
If you use an image with NFS provided by the Grid'5000 team, autofs will do the job for you. You just have to go to:
node:
cd /srv/storage/
storage_name
@server_address
for example:
node:
cd /srv/storage/
my_storage
@granche-srv1.lille.grid5000.fr
You may want to add a symbolic link to this path for convenience:
node:
ln -s /srv/storage/
my_storage
@granche-srv1.lille.grid5000.fr
~/my_storage
If you don't use an image provided by the Grid'5000 team, you will need to use the storage API.