On an XFS filesystem, how to achieve different quota
by snazeer from LinuxQuestions.org on (#6N63E)
Hi,
I m building an SFTP server for Production environment. I have to achieve this:
/sftp/dir1 can not exceed 100Gb
/sftp/dir2 can not exceed 300Gb
My working: since /sftp is configured an XFS filesystem, I applied project quota. But when it came to the point to assign the limits as per above requirement for different directories i m getting the output:
command i used to try to implement quota on subdirectory: xfs_quota -x -c 'limit -p bsoft=80g bhard=90g sftpQuota' /sftp/dir1
NOTE: sftpQuota is the project name
Output:
xfs_quota: cannot setup path for mount /sftp/dir1: No such device or address
xfs_quota: cannot find mount point for path `/sftp': No such file or directory
I have CentOS 8 installed on this server. I m reaching out to everyone here who can help me to achieve the above task ie how to restrict these subdirectories to the mentioned sizes.
I will appreciate a prompt response!
Shahida
I m building an SFTP server for Production environment. I have to achieve this:
/sftp/dir1 can not exceed 100Gb
/sftp/dir2 can not exceed 300Gb
My working: since /sftp is configured an XFS filesystem, I applied project quota. But when it came to the point to assign the limits as per above requirement for different directories i m getting the output:
command i used to try to implement quota on subdirectory: xfs_quota -x -c 'limit -p bsoft=80g bhard=90g sftpQuota' /sftp/dir1
NOTE: sftpQuota is the project name
Output:
xfs_quota: cannot setup path for mount /sftp/dir1: No such device or address
xfs_quota: cannot find mount point for path `/sftp': No such file or directory
I have CentOS 8 installed on this server. I m reaching out to everyone here who can help me to achieve the above task ie how to restrict these subdirectories to the mentioned sizes.
I will appreciate a prompt response!
Shahida