summaryrefslogtreecommitdiffstats
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-24 10:41:26 +0100
commitac4f73acab271972f59f54e1f60790aac4d7a2f0 (patch)
tree0ab29da8b855735a980affb7c83486342e87715a
parentc784a55b721d6492fddaa59036dbca185f5604cd (diff)
downloadlibguestfs-ac4f73acab271972f59f54e1f60790aac4d7a2f0.tar.gz
libguestfs-ac4f73acab271972f59f54e1f60790aac4d7a2f0.tar.xz
libguestfs-ac4f73acab271972f59f54e1f60790aac4d7a2f0.zip
sparsify: Add a note about sparsify on tmpfs.
(cherry picked from commit b0b5fdc69f6ee831f325760f95a164627b499f77)
-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 31f6e256..a16e4781 100644
--- a/sparsify/virt-sparsify.pod
+++ b/sparsify/virt-sparsify.pod
@@ -269,6 +269,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>.