Guest User

btrfs qgroup issues

a guest
Nov 7th, 2014
13
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root:/btrfs/client1# btrfs qgroup create 1/101999 .
  2. root:/btrfs/client1# btrfs qgroup assign 0/268 1/101999 .
  3. root:/btrfs/client1# btrfs qgroup assign 0/270 1/101999 .
  4. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(270|268)|1/101999|excl|^--'
  5. qgroupid rfer      excl     max_excl parent
  6. -------- ----      ----     -------- ------
  7. 0/268    93466624  196608   0        1/101999
  8. 0/270    93466624  196608   0        1/101999
  9. 1/101999 0         0        0        ---
  10. root:/btrfs/client1# btrfs qgroup limit -e 300M $DIR1
  11. root:/btrfs/client1# btrfs qgroup limit -e 300M $DIR2
  12. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(270|268)|1/101999|excl|^--'
  13. qgroupid rfer      excl     max_excl  parent
  14. -------- ----      ----     --------  ------
  15. 0/268    93466624  196608   314572800 1/101999
  16. 0/270    93466624  196608   314572800 1/101999
  17. 1/101999 0         0        0         ---
  18. root:/btrfs/client1# GROUP1="1/101999"
  19. root:/btrfs/client1# btrfs qgroup limit -e 500M $GROUP1 .
  20. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(300|302)|1/101999|excl|^--'
  21. qgroupid rfer      excl     max_excl  parent
  22. -------- ----      ----     --------  ------
  23. 0/268    93466624  196608   314572800 1/101999
  24. 0/270    93466624  196608   314572800 1/101999
  25. 1/101999 0         0        524288000 ---
  26. root:/btrfs/client1# btrfs quota rescan ../
  27. quota rescan started
  28. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(300|302)|1/101999|excl|^--'
  29. qgroupid rfer      excl     max_excl  parent
  30. -------- ----      ----     --------  ------
  31. 0/268    93466624  196608   314572800 1/101999
  32. 0/270    93466624  196608   314572800 1/101999
  33. 1/101999 93761536  393216   524288000 ---
  34. root:/btrfs/client1# dd if=/dev/zero of=$DIR1/opt/test bs=1M count=290
  35. 290+0 records in
  36. 290+0 records out
  37. 304087040 bytes (304 MB) copied, 0.991111 s, 307 MB/s
  38. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=2
  39. 2+0 records in
  40. 2+0 records out
  41. 2097152 bytes (2.1 MB) copied, 0.00430366 s, 487 MB/s
  42. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=20
  43. 20+0 records in
  44. 20+0 records out
  45. 20971520 bytes (21 MB) copied, 0.0695916 s, 301 MB/s
  46. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=200
  47. 200+0 records in
  48. 200+0 records out
  49. 209715200 bytes (210 MB) copied, 0.715864 s, 293 MB/s
  50. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=220
  51. dd: error writing ‘/btrfs/subvolumes/718d4e15c46ae147650107af8fa4962202152f4450eb5a8bf28316d61da184e5/opt/test’: Disk quota exceeded
  52. 210+0 records in
  53. 209+0 records out
  54. 219545600 bytes (220 MB) copied, 0.733752 s, 299 MB/s
  55. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=200
  56. dd: error writing ‘/btrfs/subvolumes/718d4e15c46ae147650107af8fa4962202152f4450eb5a8bf28316d61da184e5/opt/test’: Disk quota exceeded
  57. 39+0 records in
  58. 38+0 records out
  59. 40370176 bytes (40 MB) copied, 0.0818708 s, 493 MB/s
  60. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=20
  61. 20+0 records in
  62. 20+0 records out
  63. 20971520 bytes (21 MB) copied, 0.0565837 s, 371 MB/s
  64. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=200
  65. 200+0 records in
  66. 200+0 records out
  67. 209715200 bytes (210 MB) copied, 0.688529 s, 305 MB/s
  68. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=20
  69. 20+0 records in
  70. 20+0 records out
  71. 20971520 bytes (21 MB) copied, 0.0691545 s, 303 MB/s
  72. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=200
  73. 200+0 records in
  74. 200+0 records out
  75. 209715200 bytes (210 MB) copied, 0.707441 s, 296 MB/s
  76. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=200
  77. 200+0 records in
  78. 200+0 records out
  79. 209715200 bytes (210 MB) copied, 0.696815 s, 301 MB/s
  80. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=290
  81. 290+0 records in
  82. 290+0 records out
  83. 304087040 bytes (304 MB) copied, 1.00837 s, 302 MB/s
  84. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=290
  85. 290+0 records in
  86. 290+0 records out
  87. 304087040 bytes (304 MB) copied, 0.999728 s, 304 MB/s
  88. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(300|302)|1/101999|excl|^--'
  89. qgroupid rfer      excl      max_excl  parent
  90. -------- ----      ----      --------  ------
  91. 0/268    397553664 304316416 314572800 1/101999
  92. 0/270    397553664 304316416 314572800 1/101999
  93. 1/101999 701968384 608632832 524288000 ---
  94. root:/btrfs/client1# dd if=/dev/zero of=$DIR2/opt/test bs=1M count=20
  95. dd: failed to open ‘/btrfs/subvolumes/718d4e15c46ae147650107af8fa4962202152f4450eb5a8bf28316d61da184e5/opt/test’: Disk quota exceeded
  96. root:/btrfs/client1# rm -f $DIR2/opt/test
  97. rm: cannot remove/btrfs/subvolumes/718d4e15c46ae147650107af8fa4962202152f4450eb5a8bf28316d61da184e5/opt/test’: Disk quota exceeded
  98. root:/btrfs/client1# btrfs qgroup show -pe .. | egrep '0/(300|302)|1/101999|excl|^--'
  99. qgroupid rfer      excl      max_excl  parent
  100. -------- ----      ----      --------  ------
  101. 0/268    397553664 304316416 314572800 1/101999
  102. 0/270    397553664 304316416 314572800 1/101999
  103. 1/101999 701968384 608632832 524288000 ---
  104. root:/btrfs/client1# rm -f $DIR2/opt/test
  105. rm: cannot remove/btrfs/subvolumes/718d4e15c46ae147650107af8fa4962202152f4450eb5a8bf28316d61da184e5/opt/test’: Disk quota exceeded
RAW Paste Data