LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   drbd configiration error (https://www.linuxquestions.org/questions/linux-newbie-8/drbd-configiration-error-769263/)

saran_redhat 11-15-2009 04:32 AM

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

DaveQB 11-15-2009 09:33 PM

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.

saran_redhat 11-16-2009 01:00 AM

drbd startup error
 
Quote:

Originally Posted by DaveQB (Post 3758370)
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

DaveQB 11-16-2009 08:05 PM

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.

saran_redhat 11-16-2009 10:40 PM

drbd error
 
Quote:

Originally Posted by DaveQB (Post 3759428)
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

saran_redhat 11-17-2009 04:13 AM

drbd error
 
Quote:

Originally Posted by DaveQB (Post 3759428)
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

DaveQB 11-17-2009 07:44 AM

Quote:

Originally Posted by saran_redhat (Post 3759526)
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.

saran_redhat 11-18-2009 12:41 AM

drbd error
 
Quote:

Originally Posted by DaveQB (Post 3759931)
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

DaveQB 11-18-2009 01:31 AM

I am sorry I do not know how drbd works. So can't say. I am sure the manual would say.

EricTRA 11-18-2009 01:38 AM

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

saran_redhat 11-18-2009 11:06 PM

drbd error
 
Quote:

Originally Posted by EricTRA (Post 3760935)
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

kirukan 11-18-2009 11:50 PM

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?

saran_redhat 11-19-2009 01:02 AM

drbd error
 
Quote:

Originally Posted by kirukan (Post 3762221)
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.

kirukan 11-19-2009 01:06 AM

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)

saran_redhat 11-19-2009 02:54 AM

drbd error
 
Quote:

Originally Posted by kirukan (Post 3762274)
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


All times are GMT -5. The time now is 06:45 PM.