Getting started with the I2BC cluster

cluster_i2bc

Exercise 0 - first steps with the cluster

objective > setup > o1 > o2 > o3 > bonus > recap

Bonus objective

Checking your storage consumption and accessing backed up files.

Checking your quota

The I2BC has a custom command to quickly check how much space you’re using on their storage systems (i.e. how many files are in your name): i2bc_quota.

				
					i2bc_quota [-u or -a] [-s {data,store}] [-v {WORK,USERS,EQUIPES,PLATEFORMES}] [/TEAM]

  -u, --user            query quota for current user
  -a, --all             query all quotas in volume
  -s {data,store}       NAS server to query
  -v VOLUME             volume to query for quota (WORK for data, USRS, EQUIPES or PLATEFORMES for store)
  TEAM                  team name (e.g. SICS, BIOI2, AMIG, BIM, etc.)

				
			

For example, to display the quota of the whole (-a) SICS team (/SICS) in EQUIPES (-v EQUIPES) on store server (-s store), you would type:

				
					i2bc_quota -a -s store -v EQUIPES /SICS
				
			
Accessing backups

Files on the I2BC’s storage system are regularly backed up. To access the previous versions from the cluster, you just have to check out the hidden .snapshots directory. Move first to the right directory, then:

				
					john.doe@cluster-i2bc:/home/john.doe$ ls .snapshots
Jour_2024_03_18__12_00  Jour_2024_03_19__08_00  Mois_2024_01_21__03_00  Mois_2024_02_11__03_00  Mois_2024_03_03__03_00  rep_1710835203059          Semaine_2024_03_15__06_00  Semaine_2024_03_18__06_00
Jour_2024_03_18__16_00  Mois_2023_12_24__03_00  Mois_2024_01_28__03_00  Mois_2024_02_18__03_00  Mois_2024_03_10__03_00  Semaine_2024_03_13__06_00  Semaine_2024_03_16__06_00  Semaine_2024_03_19__06_00
Jour_2024_03_18__20_00  Mois_2024_01_07__03_00  Mois_2024_02_04__03_00  Mois_2024_02_25__03_00  Mois_2024_03_17__03_00  Semaine_2024_03_14__06_00  Semaine_2024_03_17__06_00

				
			

Folders are backed up at regular time intervals and accessible by navigating through the folders listed in .snapshots. The oldest snapshots are usually up to 3 months old. To recover a file, you can just copy it to your current working directory with the cp command. For example:

For example, I’ll delete a file (ohca.smig) that’s in my home directory since the 6th of March:

				
					john.doe@cluster-i2bc:/home/john.doe$ ls -l
drwxrwxrwx 1 nobody   4294967294 412        22 févr. 11:48 MEMBERS
-rwxrwxrwx 1 john.doe tous       5758246912  6 mars  13:31 ohca.smig
john.doe@cluster-i2bc:/home/john.doe$ rm ohca.smig
john.doe@cluster-i2bc:/home/john.doe$ ls -l
drwxrwxrwx 1 nobody   4294967294 412        22 févr. 11:48 MEMBERS
				
			

Then I’ll get it back from today’s snapshot in .snapshots:

				
					john.doe@cluster-i2bc:/home/john.doe$ ls -l .snapshots/Jour_2024_03_18__12_00/ 
drwxrwxrwx 1 nobody   4294967294 412        22 févr. 11:48 MEMBERS
-rwxrwxrwx 1 john.doe tous       5758246912  6 mars  13:31 ohca.smig
john.doe@cluster-i2bc:/home/john.doe$ cp -p .snapshots/Jour_2024_03_18__12_00/ohca.smig .
john.doe@cluster-i2bc:/home/john.doe$ ls -l
drwxrwxrwx 1 nobody   4294967294 412        22 févr. 11:48 MEMBERS
-rwxrwxrwx 1 john.doe tous       5758246912  6 mars  13:31 ohca.smig
				
			

Take home message

1) i2bc_quota command to get information on your storage usage

2) .snapshots is a hidden folder accessible anywhere on backed up systems to retrieve older versions of files/folders

Scroll to Top