LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
Thread Tools
Old 11-15-2009, 05:32 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0
drbd configiration error


[Log in to get rid of this advertisement]
hai friends


I am getting like this error when start drbd service. please help me how to add drbd module in /proc/module. i am getting following error
ERROR: Module drbd does not exist in /proc/modules
Can not load the drbd module.

is it possible to install without heartbeat only for replication purpose or any other way to install
please advise me


i am using centos5

thanks

Last edited by saran_redhat; 11-15-2009 at 05:45 AM..
linuxcentos saran_redhat is offline     Reply With Quote
Old 11-15-2009, 10:33 PM   #2
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Mandriva 2009.1, Debian Etch
Posts: 344
Thanked: 7
Well it looks like you need two packages for this to work:

kmod-drbd-xen.x86_64 : drbd kernel module(s)
kmod-drbd.x86_64 : drbd kernel module(s)
kmod-drbd-xen.x86_64 : drbd kernel module(s)
kmod-drbd.x86_64 : drbd kernel module(s)
kmod-drbd-xen.x86_64 : drbd kernel module(s)
drbd.x86_64 : Distributed Redundant Block Device driver for Linux
drbd.x86_64 : Distributed Redundant Block Device driver for Linux


That's a snippet of what I get.
The module you need will be in the kmod package.

So run:

Code:
rpm -qa "*drbd*"
To see what you have installed.
linux DaveQB is offline     Reply With Quote


Old 11-16-2009, 02:00 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd startup error

Quote:
Originally Posted by DaveQB View Post
Well it looks like you need two packages for this to work:

kmod-drbd-xen.x86_64 : drbd kernel module(s)
kmod-drbd.x86_64 : drbd kernel module(s)
kmod-drbd-xen.x86_64 : drbd kernel module(s)
kmod-drbd.x86_64 : drbd kernel module(s)
kmod-drbd-xen.x86_64 : drbd kernel module(s)
drbd.x86_64 : Distributed Redundant Block Device driver for Linux
drbd.x86_64 : Distributed Redundant Block Device driver for Linux


That's a snippet of what I get.
The module you need will be in the kmod package.

So run:

Code:
rpm -qa "*drbd*"
To see what you have installed.
hai thank u for Your replay

Now installed module but when start the service i getting following error
service drbd restart
Restarting all DRBD resources: 0: Failure: (114) Lower device is already claimed. This usually means it is mounted.
Command '/sbin/drbdsetup 0 disk /dev/sda /dev/sda internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 10

please advise me how to solve it
Thank u
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-16-2009, 09:05 PM   #4
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Mandriva 2009.1, Debian Etch
Posts: 344
Thanked: 7
mount |grep sda

What is the output?

To say thanks, click the blue thumbs up on the bottom right of the post that has helped you.
linux DaveQB is offline     Reply With Quote


Thanked by:
Old 11-16-2009, 11:40 PM   #5
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by DaveQB View Post
mount |grep sda

What is the output?

To say thanks, click the blue thumbs up on the bottom right of the post that has helped you.
Thank u for your help

When i use this command

mount | grep sda

output is

/dev/sda2 on / type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda3 on /var type ext3 (rw)


Any other solutions
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-17-2009, 05:13 AM   #6
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by DaveQB View Post
mount |grep sda

What is the output?

To say thanks, click the blue thumbs up on the bottom right of the post that has helped you.
hai

now i start drbd service in both nodes , i am getting following error.

service drbd restart
Restarting all DRBD resources: 0: Failure: (114) Lower device is already claimed. This usually means it is mounted.
Command '/sbin/drbdsetup 0 disk /dev/sda /dev/sda internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 10
.

please advise me , or any other solutions.

thanks
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-17-2009, 08:44 AM   #7
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Mandriva 2009.1, Debian Etch
Posts: 344
Thanked: 7
Quote:
Originally Posted by saran_redhat View Post
Thank u for your help

When i use this command

mount | grep sda

output is

/dev/sda2 on / type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda3 on /var type ext3 (rw)


Any other solutions

The issue is you are starting this drbd service and you have [or default] it configured to use /dev/sda but /dev/sda is in you mounted as /, /boot/, /home and /var

Check you configuration, try using a disk that is not in use/mounted.
linuxmandriva DaveQB is offline     Reply With Quote


Old 11-18-2009, 01:41 AM   #8
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by DaveQB View Post
The issue is you are starting this drbd service and you have [or default] it configured to use /dev/sda but /dev/sda is in you mounted as /, /boot/, /home and /var

Check you configuration, try using a disk that is not in use/mounted.
Thank for your Reply

then i will create one new partition . like /dev/sda7 and put it in drbd.config file. is it correct. or advise me

Thank u
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-18-2009, 02:31 AM   #9
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Mandriva 2009.1, Debian Etch
Posts: 344
Thanked: 7
I am sorry I do not know how drbd works. So can't say. I am sure the manual would say.
linux DaveQB is offline     Reply With Quote


Old 11-18-2009, 02:38 AM   #10
EricTRA
Member
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: Slackware 13, Ubuntu 9.04,Debian 32 + 64, AIX 5.3, RHEL5, LFS, BackTrack4
Posts: 971
Thanked: 108
Hello,

At this link you'll find an easy to follow, step by step guide for setting up and configuring DRBD on CentOS. Compare it to yours, with special attention to the mounted/unmounted state of the partitions .

Kind regards,

Eric
windows_xp_2003 EricTRA is offline     Reply With Quote


Thanked by:
Old 11-19-2009, 12:06 AM   #11
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by EricTRA View Post
Hello,

At this link you'll find an easy to follow, step by step guide for setting up and configuring DRBD on CentOS. Compare it to yours, with special attention to the mounted/unmounted state of the partitions .

Kind regards,

Eric

hai

I have one doubt. pleae advise me,

1. Is it possible to install DRBD without clustering?

2. Can support DRBD with SATA Harddisk ? or Possible to SCICI


Thanks
SAran
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-19-2009, 12:50 AM   #12
kirukan
Member
 
Registered: Jun 2008
Location: Srilanka
Distribution: Redhat, Solaris, Suse
Posts: 516
Thanked: 45
Quote:
Is it possible to install DRBD without clustering?
Actually DRBD doing replication and distribution of the data among the storage system(say like you have physically 2 different storage areas and you are replicate your data within these two storage system). I do not understand your questions what is your intention to install DRDB and why do you ask this with out clustering?
windows_xp_2003 kirukan is online now     Reply With Quote


Old 11-19-2009, 02:02 AM   #13
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by kirukan View Post
Actually DRBD doing replication and distribution of the data among the storage system(say like you have physically 2 different storage areas and you are replicate your data within these two storage system). I do not understand your questions what is your intention to install DRDB and why do you ask this with out clustering?

I am trying to install drbd with two nodes. it contains sata harddisk with both system same configurations.
i am not able start server it shows /dev/sda already mounted .error code is 10.

Please advise me.
linuxcentos saran_redhat is offline     Reply With Quote


Old 11-19-2009, 02:06 AM   #14
kirukan
Member
 
Registered: Jun 2008
Location: Srilanka
Distribution: Redhat, Solaris, Suse
Posts: 516
Thanked: 45
Before start the DRBD manually unmount the particular partition (the partition that you are using for replication). if everything fine then comments the entry from fstab permanently (for particular partition)

Last edited by kirukan; 11-19-2009 at 02:17 AM..
windows_xp_2003 kirukan is online now     Reply With Quote


Old 11-19-2009, 03:54 AM   #15
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 91
Thanked: 0

Original Poster
drbd error

Quote:
Originally Posted by kirukan View Post
Before start the DRBD manually unmount the particular partition (the partition that you are using for replication). if everything fine then comments the entry from fstab permanently (for particular partition)
Thank u for reply

/dev/sda is fully harddisk device partition inside this lot of sub partition created while installing like this
/dev/sda1 mounted boot
/dev/sda2 mounted in root
/devsda3 for /home

now what can i do
please advise me
linuxcentos saran_redhat is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with drbd KAOZ_IT Linux - Server 1 08-29-2007 02:31 AM
Drbd vsergeev Linux - Networking 0 07-30-2007 11:35 AM
drbd heartbeat saavik Linux - Networking 0 11-29-2005 10:56 AM
DRBD on Fedora? Phaethar Linux - Software 1 03-13-2004 10:47 AM
IP Gatway Configiration ?? fin Linux - Newbie 0 04-22-2002 01:57 PM


All times are GMT -5. The time now is 12:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration