Group Storage: Difference between revisions

From Grid5000
Jump to navigation Jump to search
Line 15: Line 15:
* Email content:
* Email content:


   What is your Grid'5000 login ?                                                  
   What is your Grid'5000 login ?
   <...>                                                                          
   <...>
  What name do you want for your storage ?
  <...>
  On which site do you want the storage ? You can also specify the server.
  <...>
   What is the name of the group you want to be link with this storage space ? (must start by "sto-")
   What is the name of the group you want to be link with this storage space ? (must start by "sto-")
   <...>                                                                          
   sto-<...>
   Does the group alredy exists (from another storage group) ?                    
   Does the group already exists (from another storage group) ?
   Yes/No                                                                          
   Yes/No
   On which site do you want the storage ? You can also specify the server.       
   What size do you require for the storage?
   <...>                                                                           
   XXX GBytes/TBytes
   What is the intended usage, in ~5 lines ?                                      
   What is the intended usage, in ~5 lines ?
   <...>                                                                          
   <...>
   The expiration date (We will contact you before removing your storage)?          
   The expiration date (We will contact you before removing your storage) ?
   <...>
   <...>



Revision as of 14:10, 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 name do you want for your storage ?
 <...>
 On which site do you want the storage ? You can also specify the server.
 <...>
 What is the name of the group you want to be link with this storage space ? (must start by "sto-")
 sto-<...>
 Does the group already exists (from another storage group) ?
 Yes/No
 What size do you require for the storage?
 XXX GBytes/TBytes
 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.