File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -121,23 +121,26 @@ run a garbage collector process.
121121
122122The garbage collector will first determine whether a "coalesce" should happen i.e.
123123whether any parent nodes have only one child i.e. the "shared" blocks are only
124- shared with one other node. In the following example the snapshot delete leaves
124+ " shared" with one other node. In the following example the snapshot delete leaves
125125such a parent node and the coalesce process copies blocks from the redundant
126126parent's only child into the parent:
127127
128128![ We coalesce parent blocks into grand parent nodes] ( coalesce1.png )
129129
130+ Note that if the vhd data is being stored in LVM, then the parent node will
131+ have had to be expanded to full size to accommodate the writes. Unfortunately
132+ this means the act of reclaiming space actually consumes space itself, which
133+ means it is important to never completely run out of space in such an SR.
134+
130135Once the blocks have been copied, we can now cut one of the parents out of the
131136tree by relinking its children into their grandparent:
132137
133138![ Relink children into grand parent] ( coalesce2.png )
134139
135- Finally the garbage collector can remove unused leftovers :
140+ Finally the garbage collector can remove unused vhd files / LVM LVs :
136141
137142![ Clean up] ( coalesce3.png )
138143
139- TODO: space requirements
140-
141144Reverting VM snapshots
142145======================
143146
You can’t perform that action at this time.
0 commit comments