linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs qgroup destroy -> ERROR: unable to create quota group: Device or resource busy
@ 2013-08-09  5:39 Tomasz Chmielewski
  2013-08-09  5:56 ` Wang Shilong
  0 siblings, 1 reply; 8+ messages in thread
From: Tomasz Chmielewski @ 2013-08-09  5:39 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

I'm using qgroups and have created a few hundreds of subvolumes in the
past.

It seems that btrfs automatically assigns a qgroup to newly created
snapshot/subvolume, but does not destroy the qgroup when the subvolume
is deleted.

So I've tried to destroy the unused qgroups, with mixed success. I was
able to destroy most of them, but some are still failing, i.e.:

# btrfs qgroup destroy 4494 /mnt/lxc1
ERROR: unable to create quota group: Device or resource busy


Note the negative number here, but I also have qgroups with both
positive numbers, which I'm not able to destroy as well:

# btrfs qgroup show /mnt/lxc1 | grep 4494
0/4494 839516160 -69632


qgroup 4494 is not used by any subvolume:

# btrfs sub list /mnt/lxc1 | grep 4494


I did run "btrfs quota rescan" for this filesystem, hoping it will fix
the problem, but it didn't.


Any advice?


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-08-09 12:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09  5:39 btrfs qgroup destroy -> ERROR: unable to create quota group: Device or resource busy Tomasz Chmielewski
2013-08-09  5:56 ` Wang Shilong
2013-08-09  6:07   ` Tomasz Chmielewski
2013-08-09  6:08     ` Wang Shilong
2013-08-09  6:42       ` Tomasz Chmielewski
2013-08-09  6:56         ` Wang Shilong
2013-08-09  7:47           ` Tomasz Chmielewski
2013-08-09 12:47     ` Wang Shilong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).