Sparse Image Files And Disk Space - Novell LINUX ENTERPRISE SERVER 11 - VIRTUALIZATION Manual

Virtualization with xen
Table of Contents

Advertisement

Entry
bootentry =
ostype =
uuid =

6.7 Sparse Image Files and Disk Space

If the host's physical disk reaches a state where it has no available space, a virtual ma-
chine using a virtual disk based on a sparse image file is unable to write to its disk.
Consequently, it reports I/O errors.
The Reiser file system, perceiving a corrupt disk environment, automatically sets the
file system to read-only. If this situation happens, you should free up available space
on the physical disk, remount the virtual machine's file system, and set the file system
back to read-write.
To check the actual disk requirements of a sparse image file, use the command du -h
<image file>.
To increase the available space of a sparse image file, first increase the file size and
then increase the file system.
WARNING: Backup Before Resize
Touching the sizes of partitions or sparse files always bears the risk of data
failure. Do not work without a backup.
Before you start, shutdown any guest accessing the sparse file. The actual increase of
the file size can be done with the command:
dd if=/dev/zero of=<image file> count=0 bs=1M seek=<new size in MB>
For example, to increase the file /var/lib/xen/images/sles11/disk0 to a
size of 16GB, use the command:
62
Virtualization with Xen
Description
Location of the kernel and initial ramdisk.
Type of operating system.
Identification number for a virtual drive.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise server 11 suse

Table of Contents