drbd on centos 6

General support questions
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Post by TrevorH » 2012/07/25 11:27:39

Read the link I posted.

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 11:40:02

Ok I run the script ans I collect all necessary informations.
I copy/paste here? or I attached my file?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Post by TrevorH » 2012/07/25 11:54:22

It's designed to be posted here as it's wrapped in [code][/code] tags to preserve formatting.

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 12:01:59

Ok so:


[code]
== BEGIN uname -rmi ==
2.6.32-279.1.1.el6.i686 i686 i386
== END uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
rpmforge-release-0.5.2-2.el6.rf.i686
centos-release-6-3.el6.centos.9.i686
epel-release-6-7.noarch
elrepo-release-6-4.el6.elrepo.noarch
== END rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 6.3 (Final)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN free -m ==
total used free shared buffers cached
Mem: 1006 448 558 0 74 297
-/+ buffers/cache: 76 930
Swap: 2015 0 2015
== END free -m ==

== BEGIN rpm -qa yum\* rpm-\* python | sort ==
python-2.6.6-29.el6_2.2.i686
rpm-libs-4.8.0-27.el6.i686
rpm-python-4.8.0-27.el6.i686
yum-3.2.29-30.el6.centos.noarch
yum-metadata-parser-1.1.2-16.el6.i686
yum-plugin-fastestmirror-1.1.30-14.el6.noarch
yum-presto-0.6.2-1.el6.noarch
== END rpm -qa yum\* rpm-\* python | sort ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
elrepo.repo
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
pam_mysql-0.7-0.5.rc1.el5.kb.2.i386.rpm
pam_mysql-0.7RC1.tar.gz
rpmforge.repo
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: centos.bio.lmu.de
* elrepo: elrepo.imt-systems.com
* extras: centos.cict.fr
* rpmforge: apt.sw.be
* updates: centos.cict.fr
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
base CentOS-6 - Base enabled: 4,776
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
elrepo ELRepo.org Community Enterprise Linux Repository enabled: 179
elrepo-extras ELRepo.org Community Enterprise Linux Repository disabled
elrepo-kernel ELRepo.org Community Enterprise Linux Kernel Rep disabled
elrepo-testing ELRepo.org Community Enterprise Linux Testing Re disabled
extras CentOS-6 - Extras enabled: 4
rpmforge RHEL 6 - RPMforge.net - dag enabled: 4,447
rpmforge-extras RHEL 6 - RPMforge.net - extras disabled
rpmforge-testing RHEL 6 - RPMforge.net - testing disabled
updates CentOS-6 - Updates enabled: 186
repolist: 9,592
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==

#
# /etc/fstab
# Created by anaconda on Thu Jul 19 12:36:53 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_cluster1-lv_root / ext4 defaults 1 1
UUID=b55f2e1d-bd80-467d-b3f9-0f62ecbd6016 /boot ext4 defaults 1 2
/dev/mapper/vg_cluster1-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_cluster1-lv_root
18G 852M 16G 6% /
tmpfs 504M 0 504M 0% /dev/shm
/dev/sda1 485M 65M 395M 15% /boot
== END df -h ==

== BEGIN fdisk -lu ==

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002a211

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1026048 41943039 20458496 8e Linux LVM

Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_cluster1-lv_root: 18.8 GB, 18832424960 bytes
255 heads, 63 sectors/track, 2289 cylinders, total 36782080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_cluster1-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders, total 4128768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

== END fdisk -lu ==

== BEGIN blkid ==
/dev/sda1: UUID="b55f2e1d-bd80-467d-b3f9-0f62ecbd6016" TYPE="ext4"
/dev/sda2: UUID="ATW0uz-R8to-7Yaj-Mzti-tVVV-2gz6-47cYMM" TYPE="LVM2_member"
/dev/mapper/vg_cluster1-lv_root: UUID="4caf99cf-973b-4047-a12c-fbf0e372e50c" TYPE="ext4"
/dev/mapper/vg_cluster1-lv_swap: UUID="9f8dba25-e0ed-452d-8fbf-f2ed66283b30" TYPE="swap"
== END blkid ==

== BEGIN cat /proc/mdstat ==
Personalities :
unused devices: <none>
== END cat /proc/mdstat ==

== BEGIN pvs ==
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_cluster1 lvm2 a-- 19.51g 0
== END pvs ==

== BEGIN vgs ==
VG #PV #LV #SN Attr VSize VFree
vg_cluster1 1 2 0 wz--n- 19.51g 0
== END vgs ==

== BEGIN lvs ==
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lv_root vg_cluster1 -wi-ao-- 17.54g
lv_swap vg_cluster1 -wi-ao-- 1.97g
== END lvs ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-279.1.1.el6.i686
kernel-2.6.32-279.el6.i686
kernel-firmware-2.6.32-279.1.1.el6.noarch
== END rpm -qa kernel\* | sort ==

== Warning: lspci is not installed ==

== Warning: lsusb is not installed ==

== BEGIN rpm -qa kmod\* kmdl\* ==
kmod-drbd84-8.4.1-2.el6.elrepo.i686
== END rpm -qa kmod\* kmdl\* ==

== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr 00:0C:29:3C:86:EA
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:XXX.XXX.XXX.XXX

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:661 (661.0 b) TX bytes:661 (661.0 b)

== END ifconfig -a ==

== BEGIN brctl show ==
bridge name bridge id STP enabled interfaces
== END brctl show ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
== END route -n ==

== BEGIN sysctl -a | grep .rp_filter ==
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.all.arp_filter = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.arp_filter = 0
net.ipv4.conf.lo.rp_filter = 1
net.ipv4.conf.lo.arp_filter = 0
net.ipv4.conf.eth0.rp_filter = 1
net.ipv4.conf.eth0.arp_filter = 0
== END sysctl -a | grep .rp_filter ==

== BEGIN ip rule show ==
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
== END ip rule show ==

== BEGIN ip route show ==
169.254.0.0/16 dev eth0 scope link metric 1002
== END ip route show ==

== BEGIN cat /etc/resolv.conf ==
; generated by /sbin/dhclient-script
search ..........................
nameserver XXX.XXX.XXX.XXX
nameserver XXX.XXX.XXX.XXX
== END cat /etc/resolv.conf ==

== BEGIN egrep 'net|hosts' /etc/nsswitch.conf ==
#hosts: db files nisplus nis dns
hosts: files dns
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END egrep 'net|hosts' /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==


[/code]


Could you delete my first reply..

I have restored my virtual machine, so now I don't have drbd installed

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Post by TrevorH » 2012/07/25 13:18:48

You seem to have kmod-drbd84 installed. Personally I don't think the 8.4 series is production ready yet, maybe 8.4.2 will be better.

Do you have any lines mentioning drbd in /etc/modprobe.conf or /etc/modprobe.d/*.conf? Can you post your drbd configuration files too?

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 13:31:13

You recommend me to delete my version of DRBD?
Because with all my problems I have restored my virtual machine. But yet I have juste install drbd without configuration.

So first I do
[code] rmp -e kmod-drbd84-8.4.1-2.el6.elrepo.i686 and rpm -e drbd-kmdl-2.6.32-279.el6-8.4.1-32 [/code]

and after with yum search result, I install just and nothing else? (available elrepo.)

[code] drbd83-utils.i686 and kmod-drbd83.i686 [/code]

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: drbd on centos 6

Post by TrevorH » 2012/07/25 15:18:46

Yes, I would not use or recommend use of 8.4 at the present time unless there is some particular new feature in it that you require. I'm using 8.3.13 on all my servers and it seems fairly stable so far.

I would run `rpm -qa \*drbd\*` and then remove anything that it lists then install drbd83-utils and kmod-drbd83 from ELrepo. Check that you have no lines in /etc/modprobe.d/* or /etc/modprobe.conf that mention drbd and then create a basic set of drbd configuration files and run `service drbd start` and see what happens. A reboot between removing the old and installing the new versions of drbd would not hurt :-)

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 15:37:38

Great TrevorH,

I remove all **** drbd84 and I have just install drbd83-utils and kmod-drbd83.
I have also format my feature device in LVM.

In /etc/modprobe.conf I have anything but in /etc/modprobe.d/* I have two files : blacklist.conf and dist.conf. Correct? (What are they?)

And last question for this moment (héhéhé) , "modprobe drbd" is Debian command?

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 16:10:49

Well,

I have configuring my configure files, they are identique ( on cluster1 and cluster2).

I can ping then with IP address or by her name, TrevorH could you explain to me now what I do?
( I don't want make a a mistake, and all your conseil are great..)

Jonas
Posts: 67
Joined: 2012/02/01 12:45:23
Location: France, Rouen

Re: drbd on centos 6

Post by Jonas » 2012/07/25 18:30:03

I want load my drbd module, with "modprode drbd" but when I run it, I have this error :

[code] FATAL: Error inserting drbd (/lib/modules/2.6.32-279.1.1.el6.i686/weak-updates/drbd83/drbd.ko): Cannot allocate memory[/code]

and in /var/log/messages, I have :

[code] Jul 23 07:48:06 cluster1 kernel: drbd: module cleanup done.
Jul 23 07:48:06 cluster1 kernel: drbd: ran out of memory
Jul 23 07:48:15 cluster1 kernel: drbd: module cleanup done.
Jul 23 07:48:15 cluster1 kernel: drbd: ran out of memory
Jul 23 07:49:54 cluster1 kernel: drbd: module cleanup done.
Jul 23 07:49:54 cluster1 kernel: drbd: ran out of memory
Jul 23 07:51:01 cluster1 kernel: drbd: module cleanup done.
Jul 23 07:51:01 cluster1 kernel: drbd: ran out of memory [/code]

I'm not understand,

[code]
Mem: 1030796k total, 101440k used,
Swap: 2064376k total, 0k used,[/code]

Post Reply