Enabling shared/clustered disks within DomU's
This document (3447172) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 10 Service Pack 2
Situation
- A shared clustered filesystem is needed between DomU's
- DomU cluster nodes needs access to a physical disk
Resolution
In this TID replace SLES10 with the name of the DomU guest.
-
Used the virt-manager program or YaST to add any other virtual disks
-
Used the vrit-manager program or YaST to change CPU or memory allocations
-
Changed the disk allocation on the command line
-
Changed the CPU or memory allocations on the command line.
After the initial install, if any post configuration of the guest outside the DomU (i.e., done by commands run in Dom0) then the virtual machine must be configured via xm commands. If any of the above conditions are true, using Method 1 will produce undesirable effects. For these reasons, SUSE recommends using the Python files (Method 2 or Method 3).
-
Go to /etc/xen/vm
-
Locate the line readingdisk = [...
-
For each shared disk that you will be adding, append 'phy:/,,w!', before the closing , ] .
-
For example, to add a LVM backed devce in the System VG, named test, to be the second virtual disk would be:'phy:/dev/system/test,xvdb,w!'A complete example would bedisk = ['file:/var/lib/xen/images/test/test,xvda,w','phy:/dev/system/test,xvdb,w!', ]
-
Save the file
-
Import the new filexm new -f sles10
-
Start the Xen VMxm start sles10
-
Export the Python configuration for the Xen DomUxm list -l SLES10 > sles10.py
-
Save a backup of the file Inca's something goes wrong
-
Open sles10.py for editing
-
After the last device listing for a vbd device, add the following:(device(vbd(driver paravirtualised)(dev xvdb:disk)(uname phy:/dev/system/test)(mode 'w!')(type disk)(backend 0)))
-
Save and close the file
-
Import the new filexm new -F sles10.py
-
Start the Xen guestxm start sles10
method 3: hot plug the device
Additional Information
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:3447172
- Creation Date: 17-Dec-2007
- Modified Date:24-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com