How to share a XEN disk with two or more virtual machines
This document (7004451) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 10 Service Pack 2
Situation
Resolution
Remember that all configuration files should have the "!" (exclamation point) in the shared disk line as demonstrated below.
In the following example, xvdb disk is the one that will be shared.
- Default configuration for a non shared disk
disk=[ 'file:/var/lib/xen/images/vm-name/disk0,xvda,w','file:/var/lib/xen/images/vm-name/disk1,xvdb,w', ]
than, all you need to do is including "!" as shown below:
disk=[ 'file:/var/lib/xen/images/vm-name/disk0,xvda,w','file:/var/lib/xen/images/vm-name/disk1,xvdb,w!', ]
Once you have changed it, you need to refresh that information in the XEN database. You can achieve that running the following command:
xm new -f vm-name
In addition, you can run "xm list -l vm-name |grep -i w!" command after changing it, in case you want to verify wether the virtual machine configuration file was updated in the xen database or not.
xm list -l vm-name |grep -i w!
(mode 'w!')
In case you don't see the "!" (exclamation point), review your configuration before starting your XEN virtual machine.
Disclaimer
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:7004451
- Creation Date: 16-Sep-2009
- Modified Date:15-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com