HOWTO: resize a XEN virtual disk
This document (3786220) is provided subject to the disclaimer at the end of this document.
- Stop the virtual machine whose storage needs to be enlarged.
- Be smart & safe: Make a copy of the image file! Work on the copy, not the original.
- Increase the size of the virtual disk image:
# dd if=/dev/zero bs=1G count=1 >> your_disk_fileThis example adds 1GB of additional space to the virtual disk image.
- Resize the filesystem on the disk using the filesystem's resizing tools. In order to make sure the filesystem is clean, force a filesystem check first.
Here is an example for the ext3 filesystem:# e2fsck -f the_disk_file
# resize2fs the_disk_file
- Restart the virtual machine
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:3786220
- Creation Date: 16-Oct-2007
- Modified Date:15-Mar-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com