1BTRFS-ORPHAN-CLEANER-PROGRBEtSrSf(s1)Orphan Cleaner PBrToRgFrSe-sOsRPHAN-CLEANER-PROGRESS(1)
2
3
4
6 btrfs-orphan-cleaner-progress - show progress information about
7 background deletion of btrfs subvolumes
8
9
11 btrfs-orphan-cleaner-progress [args] mountpoint
12
13
15 The btrfs-orphan-cleaner-progress program shows live progress of the
16 deletion of subvolumes that is happening in the background.
17
18 Ever deleted too many subvolumes at the same time, resulting in having
19 a kernel thread "btrfs-cleaner" go wild using cpu or writing to disk?
20 There's no way to stop this process any more, but at least we can get a
21 good idea what progress it is making.
22
23 Because the needed information is retrieved using the btrfs kernel API,
24 it has to be run as root.
25
26 btrfs-orphan-cleaner-progress shows the amount of orphaned subvolumes
27 that are waiting to be removed. If current one that is being processed
28 takes more than a fraction of time, progress will be reported with 2
29 minute intervals.
30
31 Example output:
32
33 100 orphans left to clean
34 dropping root 1294230 for at least 0 sec drop_progress (637928
35 EXTENT_DATA 0)
36 dropping root 1294230 finished after at least 109 sec
37 99 orphans left to clean
38 dropping root 1094252 for at least 0 sec drop_progress (5504 DIR_ITEM
39 1048466060)
40 dropping root 1094252 for at least 120 sec drop_progress (1058244
41 INODE_REF 1056848)
42 dropping root 1094252 finished after at least 121 sec
43 98 orphans left to clean
44 dropping root 1299468 for at least 0 sec drop_progress (14216
45 DIR_INDEX 33)
46 dropping root 1299468 finished after at least 17 sec
47 97 orphans left to clean
48 dropping root 1294116 for at least 0 sec drop_progress (4297
49 INODE_ITEM 0)
50 dropping root 1294116 finished after at least 6 sec
51 96 orphans left to clean
52 dropping root 1094148 for at least 0 sec drop_progress (3193
53 INODE_REF 1558)
54 dropping root 1094148 finished after at least 7 sec
55 95 orphans left to clean
56 dropping root 1294233 for at least 0 sec drop_progress (29155
57 INODE_REF 28406)
58 dropping root 1294233 for at least 120 sec drop_progress (1718475
59 INODE_ITEM 0)
60 dropping root 1294233 for at least 240 sec drop_progress (2930889
61 DIR_INDEX 17)
62 dropping root 1294233 for at least 360 sec drop_progress (3739430
63 INODE_ITEM 0)
64 dropping root 1294233 for at least 480 sec drop_progress (5077225
65 INODE_ITEM 0)
66 dropping root 1294233 for at least 600 sec drop_progress (5762256
67 EXTENT_DATA 0)
68 dropping root 1294233 for at least 720 sec drop_progress (6754272
69 INODE_REF 6754207)
70 dropping root 1294233 for at least 840 sec drop_progress (7279795
71 INODE_ITEM 0)
72 dropping root 1294233 for at least 960 sec drop_progress (7969363
73 DIR_ITEM 985984353)
74 dropping root 1294233 for at least 1080 sec drop_progress (8304717
75 DIR_INDEX 25)
76 dropping root 1294233 for at least 1200 sec drop_progress (8668644
77 EXTENT_DATA 0)
78 dropping root 1294233 finished after at least 1292 sec
79 94 orphans left to clean
80 dropping root 1094253 for at least 0 sec drop_progress (15681
81 DIR_ITEM 1073933304)
82 dropping root 1094253 for at least 120 sec drop_progress (937036
83 INODE_REF 936022)
84 [...]
85 73 orphans left to clean
86 dropping root 1094244 for at least 0 sec drop_progress (183679
87 INODE_ITEM 0)
88 dropping root 1094244 finished after at least 6 sec
89 72 orphans left to clean
90 69 orphans left to clean
91 dropping root 1094183 for at least 0 sec drop_progress (112400
92 DIR_ITEM 4071209755)
93 dropping root 1094183 finished after at least 6 sec
94 68 orphans left to clean
95 66 orphans left to clean
96 dropping root 1094184 for at least 0 sec drop_progress (265876
97 DIR_ITEM 2364958367)
98 dropping root 1094184 finished after at least 7 sec
99 65 orphans left to clean
100 dropping root 1299429 for at least 0 sec drop_progress (69781
101 INODE_ITEM 0)
102 dropping root 1299429 finished after at least 6 sec
103 64 orphans left to clean
104 63 orphans left to clean
105 62 orphans left to clean
106 [...]
107
108
110 -h, --help
111 Show the built-in help message and exit.
112
113
115 This program is an example of what can be done using the python-btrfs
116 library.
117
118 Source and documentation on github: https://github.com/knorrie/python-
119 btrfs
120
121
122
123 2017 BTRFS-ORPHAN-CLEANER-PROGRESS(1)