LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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
  Search this Thread
Old 11-15-2009, 04:32 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
drbd configiration error


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 04:45 AM.
 
Old 11-15-2009, 09:33 PM   #2
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
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.
 
Old 11-16-2009, 01:00 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
Old 11-16-2009, 08:05 PM   #4
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
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.
 
Old 11-16-2009, 10:40 PM   #5
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
Old 11-17-2009, 04:13 AM   #6
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
Old 11-17-2009, 07:44 AM   #7
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
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.
 
Old 11-18-2009, 12:41 AM   #8
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
Old 11-18-2009, 01:31 AM   #9
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
I am sorry I do not know how drbd works. So can't say. I am sure the manual would say.
 
Old 11-18-2009, 01:38 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 11-18-2009, 11:06 PM   #11
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
Old 11-18-2009, 11:50 PM   #12
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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?
 
Old 11-19-2009, 01:02 AM   #13
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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.
 
Old 11-19-2009, 01:06 AM   #14
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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 01:17 AM.
 
Old 11-19-2009, 02:54 AM   #15
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:31 AM
Drbd vsergeev Linux - Networking 0 07-30-2007 10:35 AM
drbd heartbeat saavik Linux - Networking 0 11-29-2005 09:56 AM
DRBD on Fedora? Phaethar Linux - Software 1 03-13-2004 09:47 AM
IP Gatway Configiration ?? fin Linux - Newbie 0 04-22-2002 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration