Add vg-activate{,-all} commands, and resize recipe.
[libguestfs.git] / recipes / resize.html
diff --git a/recipes/resize.html b/recipes/resize.html
new file mode 100644 (file)
index 0000000..1a0ca3b
--- /dev/null
@@ -0,0 +1,19 @@
+<p>
+This example shows how a block device containing a partition
+and a physical volume can be resized.
+</p>
+
+<p>
+If you try this out, you
+may find that attempts to repartition the disk fail because the
+disk is locked by the LVM devices which exist on it.  You have
+to deactivate (temporarily) the volume groups, perform the
+fdisk, and then activate them again.
+</p>
+
+<p>
+This example script is self-contained.  It first creates a
+block device (a temporary file) containing some LVs, then it extends
+the temporary file, and shows how to deactivate volgroups, repartition,
+and activate them again.
+</p>