File system interface - second part
Continues from Issue #961
Per Livermore system, add file system info. @ilumsden where do we find this info?
Per user, or could be per unix group, in the future we could do sanity checks:
- [ ] quota per user:
total_amount_of_GB, maybe we can have some default to use - [ ] quota per user:
total_number_of_files- thousands or million
Spindle interface??
- [ ] extracts small files (configs etc.), and builds a TBON to cache it
- [ ] on Tuo, have to build/install on lustre and use spindle to load it
@pearce8 there are a few places to find this info.
First, you can find all the current mount points on a system in the /etc/mtab and /proc/mounts. These files should have the same contents. /etc/mtab is the file for current mount points defined by the POSIX standard. /proc/mounts is a file-like memory object containing the current mount point list that the Linux kernel sees. In many cases, /etc/mtab is just a symlink to /proc/mounts, although there are cases where mtab is a simplified version of mounts instead.
You can also run mount -l. This mostly just prints information from /etc/mtab and/or /proc/mounts, but it is formatted in a way that might be a little more readable.
These approaches all suffer from two main issues.
First, they list every mounted file system on the computer. That means you'll get some that you care about (e.g., /p/lustre5) and may that you don't (e.g., tmpfs, procfs). Some of these can easily be ignored. For example, you would never want to let users do I/O on procfs (i.e., /proc), sysfs (i.e., /sys), or securityfs (i.e., /sys/kernel/security). Others, like tmpfs, cannot be immediately ignored because they may be relevant on some systems (e.g., when tmpfs is used as local storage) and not on others (e.g., Tuo, where we have other file systems for local storage).
The second issue is that some file systems may be preferred over others. For example, most of the machines in CZ have one specific Lustre file system that is faster than the others.
People at the site (e.g., LC) are the only ones that can definitively tell you the information needed to get around these issues.
Please see https://hpc.llnl.gov/documentation/user-guides/using-lc-file-systems#quota-utility and let me know if that provides what is needed.