Alright, this one has me stumped. I just got a few hardened/SELinux Gentoo boxes up (2.6.14-hardened-r5 kernel). While running through the list of to-do's I followed the Gentoo Security Guide (http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=5#doc_chap3) attempting to setup quotas on my XFS partitions.
I've followed the guide and enabled the XFS specific sub option for quota support (not mentioned in the guide). However when I reboot with usrquote and grpquota in my fstab my system fails to boot, saying / couldn't be mounted read/write.
Any idea what's failing? SE is in Permissive mode, and everything else looks to be functioning perfectly. I'm still a little lost as to XFS' ability to use quotas, since lots of documentation says it can but the kernel help says only ext2/3 and ReiserFS are supported.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
XFS supports quotas but it has its own quota subsystem (i.e. it does not use standard VFS quotas as reiserfs or ext3 does). That is why you are probably a bit puzzled. And now to your problem: if remounting fails there should be something more in the kernel log (dmesg). I guess it is because XFS uses different mount options to enable quotas - try to find some XFS guide and there should be their names... I hope it helps...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
| However when I reboot with usrquote and grpquota
| in my fstab my system fails to boot, saying /
| couldn't be mounted read/write.
Are you trying to enable quota on a root (/) XFS filesystem? If so, you need to use the rootflags boot option. I can't think of any other reason for the above. This is described in quotaon(1).
| I'm still a little lost as to XFS' ability to
| use quotas
XFS supports quotas, you need CONFIG_XFS_QUOTA set.
| I guess it is because XFS uses different mount
| options to enable quotas
XFS supports the same options as the VFS implementation (usrquota, grpquota) in addition to its own additional ones, so I guess this isn't it.
cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-23
nathanscott got me on the right track. After working with what you guys mentioned and reading/Googling more I found the answer in an old mailing list archive. All I had to do was toss rootflags=quota in my boot options and everything came right up. Thanks for the help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Alright, this one has me stumped. I just got a few hardened/SELinux Gentoo boxes up (2.6.14-hardened-r5 kernel). While running through the list of to-do's I followed the Gentoo Security Guide (http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=5#doc_chap3) attempting to setup quotas on my XFS partitions.
I've followed the guide and enabled the XFS specific sub option for quota support (not mentioned in the guide). However when I reboot with usrquote and grpquota in my fstab my system fails to boot, saying / couldn't be mounted read/write.
Any idea what's failing? SE is in Permissive mode, and everything else looks to be functioning perfectly. I'm still a little lost as to XFS' ability to use quotas, since lots of documentation says it can but the kernel help says only ext2/3 and ReiserFS are supported.
XFS supports quotas but it has its own quota subsystem (i.e. it does not use standard VFS quotas as reiserfs or ext3 does). That is why you are probably a bit puzzled. And now to your problem: if remounting fails there should be something more in the kernel log (dmesg). I guess it is because XFS uses different mount options to enable quotas - try to find some XFS guide and there should be their names... I hope it helps...
| However when I reboot with usrquote and grpquota
| in my fstab my system fails to boot, saying /
| couldn't be mounted read/write.
Are you trying to enable quota on a root (/) XFS filesystem? If so, you need to use the rootflags boot option. I can't think of any other reason for the above. This is described in quotaon(1).
| I'm still a little lost as to XFS' ability to
| use quotas
XFS supports quotas, you need CONFIG_XFS_QUOTA set.
| I guess it is because XFS uses different mount
| options to enable quotas
XFS supports the same options as the VFS implementation (usrquota, grpquota) in addition to its own additional ones, so I guess this isn't it.
cheers.
nathanscott got me on the right track. After working with what you guys mentioned and reading/Googling more I found the answer in an old mailing list archive. All I had to do was toss rootflags=quota in my boot options and everything came right up. Thanks for the help!