Skip to main content

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% is dinamically replaced with real values inside the tool

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

showquota-1.0.0a0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

showquota-1.0.0a0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file showquota-1.0.0a0.tar.gz.

File metadata

  • Download URL: showquota-1.0.0a0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for showquota-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 7bc040ddc7c026e8db71da7de5e4d12c26ce54623f4955bcfe1ed32ebbd26e39
MD5 a4932195af353f0f0c09c82b1e50e297
BLAKE2b-256 6302382624948f21c64d4dccf7478bbf38875ce20c140fec1240cbd932c888f0

See more details on using hashes here.

File details

Details for the file showquota-1.0.0a0-py3-none-any.whl.

File metadata

  • Download URL: showquota-1.0.0a0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for showquota-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec7385b94c6a00eb352626cdfe1b80e0a15ac2974e7dbf73c002538df6da0f8b
MD5 5ec7e92042b87e008f05b81aec5306d4
BLAKE2b-256 099e462b3309de358b5241a06b3d5ff08ddff2728dcb94f8c02749d019088e3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page