[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-users
Subject:    [Xen-users] XCP 1.5 DRBD Build
From:       Andrew Eross <eross () locatrix ! com>
Date:       2012-05-27 15:53:40
Message-ID: CAL_tfFc-gAKi2+efCjw-RXYBLow7mCdh1KHtscXUS0yXq2hyGg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey guys,

I wanted to give DRBD a shot on XCP 1.5.. so I followed the nice
instructions here for configuration:
http://joekane.eu/xenserver-drbd-update-4-the-guide

But he's building for XenServer, so the pre-built rpms he has supplied
wouldn't work.

So I re-built them myself on the XCP 1.5 dom0.

For anyone who is interested, this is how I built DRBD on a XCP dom0 (an
experimental one that I didn't mind messing up a bit with installing this
stuff)
sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
sed -i -e "s/enabled=1/enabled=0/" /etc/yum.repos.d/Citrix.repo
yum install gcc flex rpm-build redhat-rpm-config make libxslt

rpm -i kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm
#might need to put this somewhere else and remote mount it via nfs
wget http://downloads.xen.org/XCP/53341/sources/binpkg.iso
mount -o loop binpkg.iso /mnt
cd /mnt/domain0/RPMS/i686
rpm -i kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm

mkdir /drbd/
cd /drbd/
wget http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz
tar zxvf drbd-8.4.1.tar.gz
cd drbd-8.4.1
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-km
make tgz
cp drbd*.tar.gz `rpm -E _sourcedir`
rpmbuild -bb drbd.spec
rpmbuild -bb drbd-km.spec

You now have RPMs in /usr/src/redhat/RPMS/i386/drbd

You can install the 2 important RPMs like this:
rpm -i drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen-8.4.1-1.i386.rpm
rpm -i drbd-utils-8.4.1-1.i386.rpm

Then follow the instructions per joe kane.

For those who'd like to give it a try with pre-built RPMs.. we've made them
available:
http://download.locatrix.com/drbd/

The two mentioned above for the config instructions could be grabbed down
like:
wget
http://download.locatrix.com/drbd/drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen-8.4.1-1.i386.rpm
wget http://download.locatrix.com/drbd/drbd-utils-8.4.1-1.i386.rpm


Cheers,
Andrew

[Attachment #5 (text/html)]

Hey guys,<div><br></div><div>I wanted to give DRBD a shot on XCP 1.5.. so I followed \
the nice instructions here for configuration: <a \
href="http://joekane.eu/xenserver-drbd-update-4-the-guide" \
target="_blank">http://joekane.eu/xenserver-drbd-update-4-the-guide</a></div>


<div><br></div><div>But he&#39;s building for XenServer, so the pre-built rpms he has \
supplied wouldn&#39;t work.</div><div><br></div><div>So I re-built them myself on the \
XCP 1.5 dom0.</div><div><br></div><div> For anyone who is interested, this is how I \
built DRBD on a XCP dom0 (an experimental one that I didn&#39;t mind messing up a bit \
with installing this stuff)</div><div><div>sed -i -e \
&quot;s/enabled=0/enabled=1/&quot; /etc/yum.repos.d/CentOS-Base.repo</div>

<div>sed -i -e &quot;s/enabled=1/enabled=0/&quot; /etc/yum.repos.d/Citrix.repo</div>
<div>yum install gcc flex rpm-build redhat-rpm-config make \
libxslt</div><div><br></div><div>rpm -i \
kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm</div><div>#might need \
to put this somewhere else and remote mount it via nfs</div>


<div>wget <a href="http://downloads.xen.org/XCP/53341/sources/binpkg.iso" \
target="_blank">http://downloads.xen.org/XCP/53341/sources/binpkg.iso</a></div><div>mount \
-o loop binpkg.iso /mnt</div><div>cd /mnt/domain0/RPMS/i686</div>

<div>rpm -i kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm</div>
<div><br></div><div>mkdir /drbd/</div><div>cd /drbd/</div><div>wget <a \
href="http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz" \
target="_blank">http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz</a></div><div>tar \
zxvf drbd-8.4.1.tar.gz</div>


<div>cd drbd-8.4.1</div><div>./configure --prefix=/usr --localstatedir=/var \
--sysconfdir=/etc --with-km</div><div>make tgz</div><div>cp drbd*.tar.gz `rpm -E \
_sourcedir`</div><div>rpmbuild -bb drbd.spec</div><div>rpmbuild -bb \
drbd-km.spec</div>


</div><div><br></div><div>You now have RPMs in \
/usr/src/redhat/RPMS/i386/drbd</div><div><br></div><div>You can install the 2 \
important RPMs like this:</div><div><div>rpm -i \
drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen-8.4.1-1.i386.rpm</div>


<div>rpm -i drbd-utils-8.4.1-1.i386.rpm</div></div><div><br></div><div>Then follow \
the instructions per joe kane.</div><div><br></div><div>For those who&#39;d like to \
give it a try with pre-built RPMs.. we&#39;ve made them available:</div>

<div><a href="http://download.locatrix.com/drbd/">http://download.locatrix.com/drbd/</a>
 </div><div><br></div><div>The two mentioned above for the config instructions could \
be grabbed down like:</div><div><div>wget <a \
href="http://download.locatrix.com/drbd/drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen \
-8.4.1-1.i386.rpm">http://download.locatrix.com/drbd/drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen-8.4.1-1.i386.rpm</a></div>


<div>wget <a href="http://download.locatrix.com/drbd/drbd-utils-8.4.1-1.i386.rpm">http \
://download.locatrix.com/drbd/drbd-utils-8.4.1-1.i386.rpm</a></div></div><div><br></div><div><br></div><div>Cheers,</div><div>Andrew</div>


<div><br></div><div><br>
</div>



_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic