[DRBD-user] DRBD 8.0.5 Installation in RHEL 5

Rui Meireles rmeireles at tec.dsr.telecom.pt
Mon Aug 13 13:24:07 CEST 2007


Thanks for all the answers, sorry I could not reply earlier.

I solved my problem using Ross S. W. Walker'a suggestion:
I created this file /etc/yum.repos.d/centos-extras.repo
---------------------------------------------------
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extr
as
baseurl=http://mirror.centos.org/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
---------------------------------------------------

in order to use CentOS 5 extras repository, and then installed DRBD with
YUM.


Thanks a lot!



-----Original Message-----
From: Ross S. W. Walker [mailto:rwalker at medallion.com] 
Sent: quarta-feira, 8 de Agosto de 2007 18:46
To: Rui Meireles; drbd-user at linbit.com
Subject: RE: [DRBD-user] DRBD 8.0.5 Installation in RHEL 5


Another way to do this:

Install 'rpm-build' and 'redhat-rpm-config', grab CentOS 5 extras source
package for drbd:

http://mirror.centos.org/centos/5.0/extras/SRPMS/drbd-8.0.4-1.el5.centos.src
.rpm

and

http://mirror.centos.org/centos/5.0/extras/SRPMS/drbd-kmod-8.0.4-1.2.6.18_8.
1.8.el5.src.rpm

Install them, then you can just do an rpmbuild for each new kernel you need
them for and
have a nice clean build with RPMs to manage.

You could also have a go at getting a .spec file together for version 8.0.5,
I believe there
is a .spec file skeleton in the standard distribution...

-Ross

 

> -----Original Message-----
> From: Rui Meireles [mailto:rmeireles at tec.dsr.telecom.pt] 
> Sent: Wednesday, August 08, 2007 1:29 PM
> To: drbd-user at linbit.com
> Cc: Ross S. W. Walker
> Subject: RE: [DRBD-user] DRBD 8.0.5 Installation in RHEL 5
> 
> 1st approach (compiling):
> 
> Ok, I've installed kernel-xen-devel.x86_64.
> 
> These are the output of my commands:
> 
>  
> 
> [root at nmctv drbd]# make clean all
> 
> rm -rf .tmp_versions
> 
> rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags 
> .depend .kernel*
> 
>  
> 
>     Calling toplevel makefile of kernel source tree, which I 
> believe is in
> 
>     KDIR=/lib/modules/2.6.18-8.1.8.el5xen/build
> 
>  
> 
> test -f ../scripts/adjust_drbd_config_h.sh && \
> 
>          KDIR=/lib/modules/2.6.18-8.1.8.el5xen/build O= 
> /bin/bash ../scripts/adjust_drbd_config_h.sh
> 
> /lib/modules/2.6.18-8.1.8.el5xen/build /usr/src/drbd-8.0.5/drbd
> 
> make[2]: 
> /usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64/Documentation/Doc
> Book/Makefile: No such file or directory
> 
> make[2]: *** No rule to make target 
> `/usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64/Documentation/Do
> cBook/Makefile'.  Stop.
> 
> make[1]: *** [help] Error 2
> 
> /usr/src/drbd-8.0.5/drbd
> 
>  
> 
>   Using unmodified drbd_config.h
> 
>  
> 
> make -C /lib/modules/2.6.18-8.1.8.el5xen/build 
> SUBDIRS=/usr/src/drbd-8.0.5/drbd  modules
> 
> make[1]: Entering directory 
> `/usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64'
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_buildtag.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_bitmap.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_proc.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_worker.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_receiver.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_req.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_actlog.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/lru_cache.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_main.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_strings.o
> 
>   CC [M]  /usr/src/drbd-8.0.5/drbd/drbd_nl.o
> 
>   LD [M]  /usr/src/drbd-8.0.5/drbd/drbd.o
> 
>   Building modules, stage 2.
> 
>   MODPOST
> 
>   CC      /usr/src/drbd-8.0.5/drbd/drbd.mod.o
> 
>   LD [M]  /usr/src/drbd-8.0.5/drbd/drbd.ko
> 
> make[1]: Leaving directory 
> `/usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64'
> 
> mv .drbd_kernelrelease.new .drbd_kernelrelease
> 
> Memorizing module configuration ... done.
> 
>  
> 
>  
> 
>  
> 
>  
> 
> [root at nmctv drbd-8.0.5]# make install
> 
> make[1]: Entering directory `/usr/src/drbd-8.0.5/user'
> 
> install -d /sbin/
> 
> if getent group haclient > /dev/null 2> /dev/null ; then        \
> 
>                 install -g haclient -m 4750 drbdsetup /sbin/ ;  \
> 
>                 install -g haclient -m 4750 drbdmeta /sbin/ ;   \
> 
>                 install -m 755 drbdadm /sbin/ ;         \
> 
>         else                                                  
>           \
> 
>                 install -m 755 drbdsetup /sbin/ ;               \
> 
>                 install -m 755 drbdmeta /sbin/ ;                \
> 
>                 install -m 755 drbdadm /sbin/ ;                 \
> 
>         fi
> 
> install: cannot stat `drbdsetup': No such file or directory
> 
> install: cannot stat `drbdmeta': No such file or directory
> 
> install: cannot stat `drbdadm': No such file or directory
> 
> make[1]: *** [install] Error 1
> 
> make[1]: Leaving directory `/usr/src/drbd-8.0.5/user'
> 
> make: *** [install] Error 2
> 
>  
> 
>  
> 
> Can you tell me how to get around this?
> 
>  
> 
>  
> 
>  
> 
> 2nd approach (RPM):
> 
> > What's wrong with drbd 8.0.4 in the 'extras' repository?
> 
> > 
> 
> > drbd.x86_64                              8.0.4-1.el5.centos 
>     extras
> 
> > kmod-drbd.x86_64                         
> 8.0.4-1.2.6.18_8.1.8.e extras
> 
> > kmod-drbd-xen.x86_64                     
> 8.0.4-1.2.6.18_8.1.8.e extras
> 
>  
> 
> I could not find these RPMs, I thought there was no DRBD RPMs 
> for RHEL5. How can I add [extras] repository to yum?
> 
>  
> 
>  
> 
> Thanks a lot to all those who are helping me.
> 
> Rui Meireles
> 
>  
> 
>  
> 
> -----Original Message-----
> From: drbd-user-bounces at linbit.com 
> [mailto:drbd-user-bounces at linbit.com] On Behalf Of Ross S. W. Walker
> Sent: quarta-feira, 8 de Agosto de 2007 15:51
> To: Luciano Rocha; drbd-user at linbit.com
> Subject: RE: [DRBD-user] DRBD 8.0.5 Installation in RHEL 5
> 
>  
> 
> > -----Original Message-----
> 
> > From: drbd-user-bounces at lists.linbit.com 
> 
> > [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of 
> Luciano Rocha
> 
> > Sent: Wednesday, August 08, 2007 9:38 AM
> 
> > To: drbd-user at lists.linbit.com
> 
> > Subject: Re: [DRBD-user] DRBD 8.0.5 Installation in RHEL 5
> 
> > 
> 
> > On Wed, Aug 08, 2007 at 01:59:28PM +0100, Rui Meireles wrote:
> 
> > >  
> 
> > > 
> 
> > > Hi. I'm trying to install DRBD 8.0.5 in RHEL (Red Hat 
> 
> > Enterprise Linux) 5.
> 
> > > 
> 
> > > I can't find rpms for this distribution, so I downloaded 
> 
> > drbd-8.0.5tar.gz
> 
> > > 
> 
> > >  
> 
> > > 
> 
> > > I had the original OS kernel 2.6.18-8.el5xen. I then used 
> 
> > Package Updater to
> 
> > > update no a newer kernel 2.6.18-8.1.8.el5xen.
> 
> > 
> 
> > The kernel development headers and build scripts are in the package
> 
> > kernel-xen-devel-2.6.18-8.1.8.el5.
> 
>  
> 
> What's wrong with drbd 8.0.4 in the 'extras' repository?
> 
>  
> 
> drbd.x86_64                              8.0.4-1.el5.centos     extras
> 
> kmod-drbd.x86_64                         8.0.4-1.2.6.18_8.1.8.e extras
> 
> kmod-drbd-xen.x86_64                     8.0.4-1.2.6.18_8.1.8.e extras
> 
>  
> 
> -Ross
> 
>  
> 
> ______________________________________________________________________
> 
> This e-mail, and any attachments thereto, is intended only for use by
> 
> the addressee(s) named herein and may contain legally privileged
> 
> and/or confidential information. If you are not the intended recipient
> 
> of this e-mail, you are hereby notified that any dissemination,
> 
> distribution or copying of this e-mail, and any attachments thereto,
> 
> is strictly prohibited. If you have received this e-mail in error,
> 
> please immediately notify the sender and permanently delete the
> 
> original and any copy or printout thereof.
> 
>  
> 
> _______________________________________________
> 
> drbd-user mailing list
> 
> drbd-user at lists.linbit.com
> 
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 
> 

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.




More information about the drbd-user mailing list