Menu

XFS/Quota fails to mount read/write

Help
Anonymous
2006-02-21
2013-03-26
  • Anonymous

    Anonymous - 2006-02-21

    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.

     
    • Jan Kara

      Jan Kara - 2006-02-21

      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...

       
    • Nathan Scott

      Nathan Scott - 2006-02-21

      | 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.

       
    • Anonymous

      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!

       

Log in to post a comment.

MongoDB Logo MongoDB