Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I currently have 2 Linux boxes. One is the Samba server for the company and one is there just because. I want to set up a cluster between the two machines, and I want to use heartbeat and drbd, but there are some questions just not answered.
1) The first machine uses RAID. Do I have to implement RAID on the second machine in order to have drbd work?
2)Can I use the existing (supported) file system, or do I have to create the file system using drbd (like it seems to say in the documentation I have read)?
I am new to Linux and new to networking in general so I do need some help please and thank you!
I guess you guys aren't as helpfull to newbies as I have been told. I came here looking for help and no one as even attempted to help me. Thanks for nothing.
Drbd is a block device which is designed to build high availability clusters. This is done by mirroring a whole block device via (a dedicated) network. You could see it as a network raid-1.
What is the scope of drbd, what else do I need to build a HA cluster?
Drbd takes over the data, writes it to the local disk and sends it to the other host. On the other host, it takes it to the disk there.
The other components needed are a cluster membership service, which is supposed to be heartbeat, and some kind of application that works on top of a block device.
Examples:
A filesystem & fsck.
A journaling FS.
A database with recovery capabilities.
How does it work ?
Each device (drbd provides more than one of these devices) has a state, which can be 'primary' or 'secondary'. On the node with the primary device the application is supposed to run and to access the device (/dev/nbX). Every write is sent to the local 'lower level block device' and to the node with the device in 'secondary' state. The secondary device simply writes the data to its lower level block device. Reads are always carried out locally.
If the primary node fails, heartbeat is switching the secondary device into primary state and starts the application there. (If you are using it with a non-journaling FS this involves running fsck)
If the failed node comes up again, it is a new secondary node and has to synchronise its content to the primary. This, of course, will happen whithout interruption of service in the background.
How is drbd related to current HA clusters ?
To my knowledge most current HA clusters (HP, Compaq, ...) are using shared storage devices, thus the storage devices are connected to more than one node (This can be done with shared SCSI busses or Fibre Channel).
Drbd gives you about the same semantics as a shared device, but it does not need any uncommon hardware. It runs on top of IP networks, which are to my impression less expensive than special storage networks.
Currently drbd grants read-write access only to one node at a time, which is sufficient for the usual fail-over HA cluster. Although it is currently not on my task list, it would not be a great effort to allow both nodes read-write access. This would be useful with GFS for example.
1) The first machine uses RAID. Do I have to implement RAID on the second machine in order to have drbd work?
2)Can I use the existing (supported) file system, or do I have to create the file system using drbd (like it seems to say in the documentation I have read)?
This is alot easier than you probably think it is.
my question is have you tried using drbd and heartbeat with the two machines.
cause asking a question relating to a sophisticated knowledge in something(which youve shown you have)
then saying that nobody is of much help is retarded.
Why would you have to implement raid on the other machine to use drbd?
The question is how to make the data sync in realtime .
and if the primary fails secondary will be online serving the same data and access .if the primary comes online again ip will switch over.
how to set this up,thought drbd will be sufficient but setting it up on red hat is really mind blogging ,
any help will appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.