-
Notifications
You must be signed in to change notification settings - Fork 3
Storage
NOTE: The following operations are performed on the head node or frontend. In this example, we'll enable quotas on /state.
-
Edit /etc/fstab, and add usrquota and grpquota to the mount. Example below (the important parts are the usrjquota, grpjquota, and jqfmt):
UUID=5a3ec9d6-32b9-4ffd-9108-8bbf4e20cb46 /state ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 1 2
-
Remount the filesystem
mount -o remount /state
-
Generate the quota files
quotacheck -mcug /state
-
Update the quota files
quotacheck -mavug
-
Activate quotas
quotaon -a
NOTE: The following operations are performed on the head node or frontend.
-
Create a folder in /export
mkdir /export/groups
-
Add an entry to /etc/auto.share
groups deohs-brain.brain.local:/export/&
-
Sync auto.share with compute nodes
rocks sync users
-
Restart autofs on all compute nodes
rocks run host "service autofs restart"
Each work group should be assigned a shared folder for storing common data and applications. For this example, we'll create a folder for the group "mesa".
-
Create the folder
mkdir /export/groups/mesa
-
Set ownership to root, and the group
chown root:mesa /export/groups/mesa
-
Set permissions to restrict access to the group. With the default behavior of new files, to have group ownership.
chmod 2770 /export/groups/mesa
-
Finally, apply a POSIX ACL to set default permissions on files and directories.
setfacl -d -m u::rwX,g::rwX,o::0 /export/groups/mesa