Storage5k: Difference between revisions

From Grid5000
Jump to navigation Jump to search
No edit summary
No edit summary
Line 97: Line 97:


   with oarsub command:
   with oarsub command:
   malachheb@suno-5:~$ oarsub -t deploy -l chunks=2,walltime=2 -r "2011-12-09 11:57:00"
   malachheb@fsophia:~$ oarsub -t deploy -l chunks=2,walltime=2 -r "2011-12-09 11:57:00"
   [ADMISSION RULE] Modify resource description with type constraints
   [ADMISSION RULE] Modify resource description with type constraints
   [ADMISSION RULE] Modify resource description as storage
   [ADMISSION RULE] Modify resource description as storage
Line 104: Line 104:
   Reservation mode : waiting validation...
   Reservation mode : waiting validation...
   Reservation valid --> OK
   Reservation valid --> OK
=== check your Storage reservation ===
Each storage reservation is identified by the job cpuset_name (e.g, malachheb_649), to displya the details of your reservations, you can use "storage5k -a info".
  malachheb@fsophia:~$ storage5k -a info
  storage5k 1.0.0
  Job_Id: 648
    State: Running
    Reservation Id: malachheb_648
    Chunks: 2
    Chunks_size: 10737418240
    Space reserved: 21474836480
    Data Directory: /data/malachheb_648
    Free space: 20018364416
    Used space: 1119879168
    Source nfs: stock.sophia.grid5000.fr:/data/malachheb_648

Revision as of 13:05, 9 December 2011


Grid'5000 storage resources

Sites VM Name Disk partition Size status
Sophia stock.sophia.grid5000.fr /dev/sda 2000 GB Fail.png
Grenoble Fail.png
Lille Fail.png
Lyon Fail.png
Nancy Fail.png
Orsay Fail.png
Rennes Fail.png
Bordeaux Fail.png
Toulouse Fail.png

Purpose

This page presents ways to use storage5k for the storage reservation in Grid'5000.

Overview

Each user has a default storage space (/home) exported via NFS. For larger storage needs, a user can book another storage space for a determined period. storage5k allows users to book resources with OAR types of "storage".

Usage

First check the chunk disk size of the oar storage resources

malachheb@fsophia:~$ storage5k -a chunk_size
Chunk size: 10737418240 (10 GB)

In this example the chunk size is 10GB, so for a reservation of 100 GB, you should ask for 10 chunks.

Storage reservation

A storage reservation is an oar job with the resources type is "storage". you can submit a storage reservation with two way:

 with storage5k command:
 malachheb@fsophia:~$ storage5k -a add -l chunks=2,walltime=2
 [ADMISSION RULE] Modify resource description with type constraints
 [ADMISSION RULE] Modify resource description as storage
 Generate a job key...
 OAR_JOB_ID=648
 Reservation mode : waiting validation...
 Reservation valid --> OK
 with oarsub command:
 malachheb@fsophia:~$ oarsub -t deploy -l chunks=2,walltime=2 -r "2011-12-09 11:57:00"
 [ADMISSION RULE] Modify resource description with type constraints
 [ADMISSION RULE] Modify resource description as storage
 Generate a job key...
 OAR_JOB_ID=649
 Reservation mode : waiting validation...
 Reservation valid --> OK

check your Storage reservation

Each storage reservation is identified by the job cpuset_name (e.g, malachheb_649), to displya the details of your reservations, you can use "storage5k -a info".

  malachheb@fsophia:~$ storage5k -a info 
  storage5k 1.0.0
  Job_Id: 648
   State: Running
   Reservation Id: malachheb_648
   Chunks: 2
   Chunks_size: 10737418240
   Space reserved: 21474836480
   Data Directory: /data/malachheb_648
   Free space: 20018364416
   Used space: 1119879168
   Source nfs: stock.sophia.grid5000.fr:/data/malachheb_648