Posts

Showing posts from August 14, 2011

DRBD on RHEL6 with YUM group

Building DRBD for 2.6.32-71.el6.x86_64 kernel
1.mkdir -p /root/rpmbuild/SOURCES/
2.wget http://oss.linbit.com/drbd/8.3/drbd-8.3.10.tar.gz
3.cp drbd-8.3.10.tar.gz /root/rpmbuild/SOURCES/
4.tar -xvf drbd-8.3.10.tar.gz
5.cd drbd-8.3.10
6../configure --with-km --with-distro=redhat --enable-spec
7.rpmbuild -bb drbd.spec
8.rpmbuild -bb drbd-km.spec
9.cd /root/rpmbuild/RPMS/x86_64
10.mkdir /YUM/DiskReplicator
11.cp drbd-* /YUM/DiskReplicator/
12.cd /YUM/DiskReplicator/
13.createrepo . ---> The "." is important

14.vi /etc/yum.repos.d/rhel6-1.repo

[DiskReplicator] name=rhel6-1 LoadBalancer repo baseurl=ftp://192.168.8.2/DiskReplicator enabled=1 gpgcheck=0
15.cd /tmp/ -->To avoid rpm name clash
16.yum install yum-utils
17.yum-groups-manager -n "Disk Replicator" --id=drbd --description="DRBD, packages from ANSIL" --save=comps.xml --mandatory drbd.x86_64 --mandatory drbd-bash-completion.x86_64 --mandatory drbd-heartbeat.x86_64 --mandatory drbd-km-2.6.32_71.el6.x86_64.x86_64 --ma…

How to Configure YUM in RHEL6

Easy way to create your own repo
1. Put your RHEL6 media on DVD drive
2. Create a partition with size 6GB and mount it as /yum
3. Download the below script to /yum
https://sites.google.com/site/ansilh/rhel6_repo.sh
4. Give execute permission to the downloaded script
5. Please open the file and try to understand it. If you found all safe ,then go to next step
6. Execute it...You will get an RHEL repo accessible through ftp


***Please feel free to comment your experience ***

=======================================

Manual Steps (*Different approach from above script .The repo file not look like usual one)

YouTube Link : http://www.youtube.com/watch?v=scBtTTwLze0

1.create a directory to store packages .(Better you create a partition with 5GB size and mount it as /YUM)
mkdir /YUM
2.mount RHEL6 DVD
mount /dev/dvd /mnt
3.go to the mounted directory
cd /mnt/Packages/
4.copy all contents of DVD to /YUM (Note the "." in command )
cp . /YUM/
5.Install createrepo package with dependancie…