My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

HOWTO: resize a XEN virtual disk

This document (3786220) is provided subject to the disclaimer at the end of this document.

Environment

Novell SUSE Linux Enterprise Server 10 with XEN

Situation

A XEN virtual machine is configured to use a virtual disk file and its storage needs to be expanded.

Resolution

  1. Stop the virtual machine whose storage needs to be enlarged.
  2. Be smart & safe:  Make a copy of the image file!  Work on the copy, not the original. 
  3. Increase the size of the virtual disk image:
    # dd if=/dev/zero bs=1G count=1 >> your_disk_file
    This example adds 1GB of additional space to the virtual disk image.
  4. 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
  5. Restart the virtual machine

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/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-07
  • Modified Date:05-FEB-13
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center