All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: c.monty@web.de, linux-btrfs@vger.kernel.org
Subject: Re: Defining quota on /home
Date: Sat, 22 Dec 2018 07:07:38 +0300	[thread overview]
Message-ID: <cfc09121-778c-b386-c190-eec987f9768e@gmail.com> (raw)
In-Reply-To: <trinity-ec0de399-18af-4184-bd8d-364ffa41afd3-1545402162344@3c-app-webde-bap30>

21.12.2018 17:22, c.monty@web.de пишет:
> Hi,
>  
> I have defined a quota on home with these steps:
> 1. btrfs quota enable /home
> 2. btrfs qgroup limit 150G /home
>  
> Now I can verify the corresponding setting:
> btrfs qgroup show -reF /home
> WARNING: Qgroup data inconsistent, rescan recommended
> qgroupid         rfer         excl     max_rfer     max_excl
> --------         ----         ----     --------     --------
> 0/279         1.79GiB      1.79GiB    150.00GiB         none
> 255/279       1.79GiB      1.79GiB         none         none
>  
> However I don't understand the line with qgroupid 0/279?!?
>  

This is default quota group created automatically for each subvolume. Or
do you mean 255/279?

> I have created another quota earlier for /var/log, and there's no second line in output of btrfs qgroup show:
> btrfs qgroup show -reF /var/log
> WARNING: Qgroup data inconsistent, rescan recommended
> qgroupid         rfer         excl     max_rfer     max_excl
> --------         ----         ----     --------     --------
> 0/275        56.52MiB     56.52MiB      5.00GiB         none
>  
> The following subvolumes do exist:
>  btrfs su li /
> ID 257 gen 134 top level 5 path @
> ID 258 gen 36271 top level 257 path @/.snapshots
> ID 259 gen 36312 top level 258 path @/.snapshots/1/snapshot
> ID 260 gen 33772 top level 257 path @/boot/grub2/i386-pc
> ID 261 gen 33772 top level 257 path @/boot/grub2/x86_64-efi
> ID 262 gen 36311 top level 257 path @/opt
> ID 263 gen 33772 top level 257 path @/srv
> ID 264 gen 36312 top level 257 path @/tmp
> ID 265 gen 35961 top level 257 path @/usr/local
> ID 266 gen 36310 top level 257 path @/var/cache
> ID 267 gen 33772 top level 257 path @/var/crash
> ID 268 gen 33772 top level 257 path @/var/lib/libvirt/images
> ID 269 gen 33772 top level 257 path @/var/lib/machines
> ID 270 gen 33772 top level 257 path @/var/lib/mailman
> ID 271 gen 33772 top level 257 path @/var/lib/mariadb
> ID 272 gen 33772 top level 257 path @/var/lib/mysql
> ID 273 gen 33772 top level 257 path @/var/lib/named
> ID 274 gen 33772 top level 257 path @/var/lib/pgsql
> ID 275 gen 36312 top level 257 path @/var/log
> ID 276 gen 33772 top level 257 path @/var/opt
> ID 277 gen 36312 top level 257 path @/var/spool
> ID 278 gen 36309 top level 257 path @/var/tmp
> ID 279 gen 36311 top level 257 path @/home
> ID 280 gen 36311 top level 257 path @/usr/sap
> ID 308 gen 17373 top level 258 path @/.snapshots/19/snapshot
> ID 309 gen 17373 top level 258 path @/.snapshots/20/snapshot
> ID 315 gen 17373 top level 258 path @/.snapshots/25/snapshot
>  
> This is the additional information demanded when asking a support question:
> 
> lvevm117:~ # uname -a
> Linux lvevm117 4.4.162-94.72-default #1 SMP Mon Nov 12 18:57:45 UTC 2018 (9de753f) x86_64 x86_64 x86_64 GNU/Linux
>  
> lvevm117:~ # btrfs --version
> btrfs-progs v4.5.3+20160729
>  
> lvevm117:~ # btrfs fi show
> Label: none  uuid: fbe2e4f1-2ccd-44df-bc35-790c5e019d66
>         Total devices 1 FS bytes used 8.78GiB
>         devid    1 size 198.84GiB used 23.07GiB path /dev/sda3
>  
> lvevm117:~ # btrfs fi df /
> Data, single: total=20.01GiB, used=8.37GiB
> System, DUP: total=32.00MiB, used=16.00KiB
> Metadata, DUP: total=1.50GiB, used=414.19MiB
> GlobalReserve, single: total=27.38MiB, used=0.00B
>  
>  
> THX
> 


      parent reply	other threads:[~2018-12-22 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-21 14:22 Defining quota on /home c.monty
2018-12-22  0:03 ` Qu Wenruo
2018-12-22  4:07 ` Andrei Borzenkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfc09121-778c-b386-c190-eec987f9768e@gmail.com \
    --to=arvidjaar@gmail.com \
    --cc=c.monty@web.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.