summaryrefslogtreecommitdiffstats
path: root/sparsify
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-04-18 10:50:32 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-04-18 10:51:04 +0100
commitb0b5fdc69f6ee831f325760f95a164627b499f77 (patch)
tree0268ef34a02fafdf17721662cae062e17eb47f9b /sparsify
parent4542401fee7a141204baea98dcdc9fa557878f85 (diff)
downloadlibguestfs-b0b5fdc69f6ee831f325760f95a164627b499f77.tar.gz
libguestfs-b0b5fdc69f6ee831f325760f95a164627b499f77.tar.xz
libguestfs-b0b5fdc69f6ee831f325760f95a164627b499f77.zip
sparsify: Add a note about sparsify on tmpfs.
Diffstat (limited to 'sparsify')
-rw-r--r--sparsify/virt-sparsify.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/sparsify/virt-sparsify.pod b/sparsify/virt-sparsify.pod
index 275faf5a..14f7eecb 100644
--- a/sparsify/virt-sparsify.pod
+++ b/sparsify/virt-sparsify.pod
@@ -271,6 +271,14 @@ to point to another directory that has enough space.
This defaults to C</tmp>.
+Note that if C<$TMPDIR> is a tmpfs (eg. if C</tmp> is on tmpfs, or if
+you use C<TMPDIR=/dev/shm>), tmpfs defaults to a maximum size of
+I<half> of physical RAM. If virt-sparsify exceeds this, it will hang.
+The solution is either to use a real disk, or to increase the maximum
+size of the tmpfs mountpoint, eg:
+
+ mount -o remount,size=10G /tmp
+
=back
For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>.