March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

DRBD

db1.rmohan.com 192.168.1.105 db2.rmohan.com 192.168.1.106 Add a hard disk

fdisk /dev/sdb wget http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch rpm -ivUh elrepo-release-6-4.el6.elrepo.noarch.rpm

vi /etc/yum.repos.d/elrepo.repo

Edit /etc/yum.repos.d/elrepo.repo ( change line #8 ‘enable=0′ ) yum –enablerepo=elrepo install drbd83-utils kmod-drbd83 yum -y install parted

partprobe /dev/sdb1

pvcreate /dev/sdb1

vgcreate vg_db /dev/sdb1 lvcreate -n lv_db -L +50G vg_db lvcreate -n lv_meta -L +10G vg_db groupadd haclient […]

GLUSTER ON CENTOS 6.5

cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.45 cluster1.rmohan.com cluster1 192.168.1.41 cluster2.rmohan.com cluster2 192.168.1.42 cluster3.rmohan.com cluster3

 

rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*

rpm –import https://fedoraproject.org/static/0608B895.txt cd /tmp wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm yum install yum-priorities vi /etc/yum.repos.d/epel.repo

priority=10 [epel] name=Extra Packages for Enterprise Linux 6 – $basearch #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 priority=10 […]