Re: Separate user- and project- quota ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 02, 2020 at 08:14:01AM +0200, Diego Zuccato wrote:
> Il 01/07/20 20:46, Eric Sandeen ha scritto:
> 
> > Hm, yes, worth a look.  All 3 have been supported together for quite some
> > time now, I didn't know it reacted badly on old filesystems.
> > What did the failure look like?
> Boot failure saying something about superblock not supporting both
> group- and project- quotas at the same time.
> I think it's related to
> XFS (dm-0): Mounting V4 Filesystem
> As I said, it' quite an old fs :)
> 
> xfs_info reports:
> meta-data=/dev/sdb1      isize=256    agcount=41, agsize=268435455 blks
>          =               sectsz=512   attr=2, projid32bit=0
>          =               crc=0        finobt=0, sparse=0, rmapbt=0
>          =               reflink=0
> data     =               bsize=4096   blocks=10742852608, imaxpct=5
>          =               sunit=0      swidth=0 blks
> naming   =version 2      bsize=4096   ascii-ci=0, ftype=0
> log      =internal log   bsize=4096   blocks=521728, version=2
>          =               sectsz=512   sunit=0 blks, lazy-count=1
> realtime =none           extsz=4096   blocks=0, rtextents=0
> 
> Too bad it's a production server (serving the home for the cluster) and
> I can't down it now.
> 

I missed how this went from a question around interaction between user
and project quotas to reporting of a problem associated with enablement
of group+project quotas and an old fs. The above shows a v4 superblock
(crc=0), which means project and group quotas share an inode and thus
are mutually exclusive. It sounds to me that the problem is simply that
you're specifying a set of incompatible mount options on a v4 fs, but
you haven't really stated the problem clearly. I.e.:

# mount /dev/test/scratch /mnt/ -o gquota,pquota
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/mapper/test-scratch, missing codepage or helper program, or other error.
# dmesg | tail
[  247.554345] XFS (dm-3): Super block does not support project and group quota together

We have to fail in this scenario (as opposed to randomly picking one)
because either one can work for any mount (presumably wiping out the old
quotas when changing from one mode to the other across a mount).

Brian

> -- 
> Diego Zuccato
> DIFA - Dip. di Fisica e Astronomia
> Servizi Informatici
> Alma Mater Studiorum - Università di Bologna
> V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
> tel.: +39 051 20 95786
> 




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux