StoRM Utils v. 1.0.0

Released on 12.05.2021 with StoRM v. 1.11.21. centos7

Description

This first version of storm-utils contains two scripts:

  • storm-get-space-aliases
  • storm-update-used-space

Usages

The command storm-get-space-aliases retrieves the list of storage areas’ space aliases of your StoRM instance. Usage:

storm-get-space-aliases.sh [-u <db-username>] [-p <db-password>]

Example:

$ sh storm-get-space-tokens.sh -u storm -p storm
DTEAM_TOKEN
TAPE_TOKEN
TESTVO_TOKEN

This command doesn’t change any information stored on database.

The command storm-update-used-space is used to update the used space information related to a specific space-alias. Usage:

storm-update-used-space.sh [-u <db-username>] [-p <db-password>] [-a <spacetoken-alias>] [-s <used-space-size>]

The used-space-size must be expressed in bytes.

Example:

$ sh storm-update-used-space.sh -u storm -p storm -a TESTVO_TOKEN -s 52080
Getting space info for 'TESTVO_TOKEN' ...
  TOTAL_SIZE=4000000000, FREE_SIZE=3999957920, USED_SIZE=42080
Setting new free size as 3999947920 and new used space as 52080 ...
  Update query exited with 0

Installation and configuration

You can install this scripts as follow:

yum install storm-utils

In case of a clean installation please read the System Administrator Guide.

Read more at: