Show user and projects storage quotas.
Project description
showquota
showquota
is a utility for checking linux user and projects(secondary groups) storage quota on the system. Useful on HPC infrastructures where each user have a home quota folder and a project quota folder on an external source like beegfs.
showquota currently supports xfs and beegfs checks but it's higly customizable via config file.
[test@localhost ~]$ showquota
Home folder:
--------------------------------------------------
User quota on /home (/dev/mapper/rl_nfs--srv-home)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
userA 3.8M 9.8G 9.8G 00 [------]
--------------------------------------------------
Project(s) folder:
------------------------------------------------------------------------
Group: projectA
Quota information for storage pool Default (ID: 1):
user/group || size || chunk files
name | id || used | hard || used | hard
--------------|------||------------|------------||---------|---------
projectA | 1010 || 0 Byte| 4.88 GiB|| 0|unlimited
------------------------------------------------------------------------
Installation
pip install showquota
Configuration
The tool require a config file /opt/showquota/config.cfg
, if the file doesn't exists it will be created on the first run.
You need to edit it and set the storage server(s).
config.cfg:
#showquota configfile
#by Giulio Librando
home_server_ip: 'x.x.x.x'
home_server_command: 'xfs_quota -x -c 'report -h' /home'
beegfs_server_ip: 'x.x.x.x'
beegfs_server_command: 'beegfs-ctl --getquota --gid %GID%'
home_server_ip
and beegfs_server_ip
can be both set to ip or localhost
If you use xfs for the /home folder and beegfs for the projects folder leave the default commands.
%GID%
and $UID
are dinamically replaced with real values inside the tool
%GID%
is an alias for secondary groups of the user
If you use beegfs for both user and project folders use
home_server_command: 'beegfs-ctl --getquota --uid $UID'
beegfs_server_command: 'beegfs-ctl --getquota --gid %GID%'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file showquota-1.0.4.tar.gz
.
File metadata
- Download URL: showquota-1.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40901903a3fff78abfc5b1c2d84ba201a8d7720989752fe88a61fba93ec7051 |
|
MD5 | 0b9be7c0f0ea26708b4f24b856738cf2 |
|
BLAKE2b-256 | 69d3fda464fb7a21cf7a5f8cc8c099d82cd73aaa5b4f7257080e32356ec64a0e |
File details
Details for the file showquota-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: showquota-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99844f6f880fca5afd9a73f1f192c396808602988302a02c01652575fb2d251f |
|
MD5 | ded2c424f98d7b401298bec3152779bd |
|
BLAKE2b-256 | 9d9607a75055f00c4a22d52755f9fbe3be6a04d51819f7a94aaab7e66c156c2b |