Quota Management - calab-ntu/gpu-cluster GitHub Wiki

Ext4 (tumaz:/home)

First, ssh to tumaz:

  • Turn off quota

    quotaoff -a
  • Turn on quota

    quotaon -auvg
  • Create an account on eater

    1. Go to GUI interface by internet browser
    2. Control panel
    3. User
    4. Create user
    5. Except for these two steps, the others follow the preset values. (PWD is set to the same as root on eureka) eater_create_account_step_01
      eater_create_account_step_02
    6. ssh OurLabID@eater
    7. sudo -i
    8. chown NewID:calab /volume1/gpucluster3/NewID
  • create a directory for user on eater:/projectY

    Ref: https://blog.xuite.net/m740138.m740138/blog/35596395-QUOTA

    1. ssh OurLabID@eater
    2. sudo -i
    3. mkdir /volume1/gpucluster3/NewID
    4. chown NewID:calab /volume1/gpucluster3/NewID
  • Set quota for user (4TB is limit)

    # A: name
    # B: quotaformat
    # C: block-softlimit (kB)
    # D: block-hardlimit (kB)
    # E: inode-softlimit
    # F: inode-hardlimit
    # G: moumt point ()
    
    #               A  B                C          D E F        G
    setquota -u tseng -F vfsv0 5368709120 5368709120 0 0 /volume1
    
    # MB =       1024 kB
    # GB =    1048576 kB
    # TB = 1073741824 kB
    

    The maximum volume of Ext4 format is limited as 4T.

  • Report quoata

    repquota -auvs

btrfs: w/ DSM (ironman:/work1, eater:/projectW, eater:/projectY, eater:/projectZ, pacific:/projectU, pacific:/projectV)

All porcess need to login to DSM

  • Create directory for user

    1. File Station > Choose the folder which new directory goes.
    2. Create > Create Folder > Name the folder with user's name
    3. Login to eureka:root or pacific:root and set up privilege.
      1. chown User:group /projectV/User
      2. chmod 755 /projcetV/User
  • Delete a directroy

    1. File Station > Find the directory you want to delete
    2. Right click the directory and selece Delete
    3. Double check the Delete and key in the admin password
  • Set and show quota

    1. Control Panel > Domain/LDAP > LDAP Users
    2. Choose the user and click Edit > Quota
    3. You can set up quota or check the usage of the user
    4. After editing the quota > Save
    5. Update the page https://github.com/calab-ntu/eureka/wiki/Storage
  • Set quota

    1. Make sure the total quota left is enough.(Check https://github.com/calab-ntu/eureka/wiki/Storage)
    2. sudo btrfs qgroup limit [quota] /volume2/gpucluster4/NewID
    3. sudo btrfs usrquota limit -u [userID_number] [quota] /volume2/gpucluster4/NewID
  • Show quota

    sudo btrfs qgroup show -pcreF /volume2/gpucluster4/NewID/
    sudo btrfs usrquota show /volume2/gpucluster4/NewID
⚠️ **GitHub.com Fallback** ⚠️