Creating a LVM backed XFS SR: Difference between revisions
Outbackdingo (talk | contribs) No edit summary |
ToddDeshane (talk | contribs) (fix formatting) |
||
Line 1: | Line 1: | ||
LVM |
LVM-backed XFS SR |
||
---- |
---- |
||
These instructions were fist tested on a Kubuntu 11.10 system, but should work with any Ubuntu/Debian Kronos-based system to create an LVM-backed XFS SR |
|||
The following is what was required: |
The following is what was required: |
||
Install lvm2 and xfstools. |
|||
<pre>apt-get install lvm2 xfstools</pre> |
|||
Create a logical volume |
|||
(If you need help in doing this, there are many tutorials for LVM on the net) |
(If you need help in doing this, there are many tutorials for LVM on the net) |
||
Line 16: | Line 17: | ||
Then you must copy the XFSSR.py |
Then you must copy the XFSSR.py |
||
<pre>cp XFSSR.py /usr/lib/xcp/sm/</pre> |
|||
Create a symlink to XFSSR |
|||
<pre>cd /usr/lib/xcp/sm/</pre> |
|||
<pre>ln -s XFSSR.py XFSSR</pre> |
|||
Once the logical volume is created, restart xapi |
|||
<pre>service xcp-xapi restart</pre> |
|||
To create the SR, run |
|||
<pre>SR=`xe sr-create type=xfs device-config:device=/dev/mapper/test-builder name-label=xfs`</pre> |
|||
Change '/dev/mapper/test-builder' to your lvm device to match your system |
|||
After that is done, you'll be able to use the XFS LVM filesystem as the default SR |
|||
Enjoy |
Enjoy! |
Revision as of 06:45, 21 December 2011
LVM-backed XFS SR
These instructions were fist tested on a Kubuntu 11.10 system, but should work with any Ubuntu/Debian Kronos-based system to create an LVM-backed XFS SR
The following is what was required:
Install lvm2 and xfstools.
apt-get install lvm2 xfstools
Create a logical volume
(If you need help in doing this, there are many tutorials for LVM on the net) ( see [1] )
Then you must copy the XFSSR.py
cp XFSSR.py /usr/lib/xcp/sm/
Create a symlink to XFSSR
cd /usr/lib/xcp/sm/
ln -s XFSSR.py XFSSR
Once the logical volume is created, restart xapi
service xcp-xapi restart
To create the SR, run
SR=`xe sr-create type=xfs device-config:device=/dev/mapper/test-builder name-label=xfs`
Change '/dev/mapper/test-builder' to your lvm device to match your system
After that is done, you'll be able to use the XFS LVM filesystem as the default SR
Enjoy!