Creating a LVM backed XFS SR: Difference between revisions

From Xen
Jump to navigationJump to search
(Created page with "LVM backed XFS SR Ive created a Logical Volume under Kubuntu 11.10 with XFS and Kronos installed The following is what was required: install lvm2 and xfstools "apt-get install …")
 
m (added a link to a place to get XFSSR.py ... thanks for the howto)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
LVM backed XFS SR
LVM-backed XFS SR
----
Ive created a Logical Volume under Kubuntu 11.10 with XFS and Kronos installed

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
Install lvm2 and xfstools.


"apt-get install lvm2 xfstools"
<pre>apt-get install lvm2 xfstools</pre>


create a logical volume
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 14: Line 17:
Then you must copy the XFSSR.py
Then you must copy the XFSSR.py


(Get XFSSR.py [http://www.gossamer-threads.com/lists/xen/api/228524 here])
"cp XFSSR.py /usr/lib/xcp/sm/"

<pre>cp XFSSR.py /usr/lib/xcp/sm/</pre>


create a symlink to XFSSR
Create a symlink to XFSSR


"cd /usr/lib/xcp/sm/"
<pre>cd /usr/lib/xcp/sm/</pre>


"ln -s XFSSR.py XFSSR"
<pre>ln -s XFSSR.py XFSSR</pre>


once the logical volume is created restart xapi
Once the logical volume is created, restart xapi


"service xcp-xapi restart"
<pre>service xcp-xapi restart</pre>


to create the SR, run
To create the SR, run


"SR=`xe sr-create type=xfs device-config:device=/dev/mapper/test-builder name-label=xfs`"
<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
Change '/dev/mapper/test-builder' to your lvm device to match your system


after its done, youll be able to use the XFS LVM filesystem as the default SR
After that is done, you'll be able to use the XFS LVM filesystem as the default SR


Enjoy
Enjoy!

Latest revision as of 15:00, 29 June 2012

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

(Get XFSSR.py here)

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!