SlideShare a Scribd company logo
1 of 14
DRBD Replication
DRBD
DRBD was originally conceived and developed in the late 1990s by Philipp Reisner and Lars
Ellenberg.
The developers' purpose was to create a Linux security standard that would offer optimal
reliability at minimum cost.
The software has continuously evolved since that time.
The current version of DRBD can be used with all common flavors of Linux for synchronous
replication of stored data between a passive system and an active system.
DRBD
Data can be read from and written to both systems simultaneously.
DRBD also supports resource-level fencing.
DRBD works in conjunction with a cluster management program known as Heartbeat and has
been bundled into some distributions of Linux.
DRBD
DRBD is a registered trademark of LINBIT Information Technologies GmBH, headquartered in
Vienna, Austria.
The software has been released under the GNU GPL (General Public License) and can be freely
distributed and modified within the limitations of the license agreement.
Avoid pricey storage area network
(SAN) devices and synchronize data
with DRBD, a powerful — and free —
software component available in
Linux.
DRBD
DRBD can be summarized as RAID 1 (mirroring) over the network.
That means you need two nodes and a network to connect them.
On both of these nodes, a storage device — typically a local hard disk — is
reserved for the DRBD device.
Once configured, DRBD takes care of synchronizing these devices in real time
over the network.
The difference between DRBD and other synchronization hardware and
software, such as Rsync, is that DRBD is doing its work at the block layer, which
makes it fit for almost every use.
DRBD Setups
There are two setups for DRBD: active/passive or active/active.
The active/passive setup closely resembles RAID
◦ Data is written to the active device and replicated to the passive device.
◦ Normally, the passive device doesn't do anything, but if failure occurs, it can be switched to become
the active device.
◦ The active/passive setup is very popular in two-node, high-availability (HA) clusters.
DRBD Setups
The alternative is to use DRBD in an active/active setup:
◦ There are still two storage devices involved, but both can be accessed simultaneously,
which means both nodes can operate and serve up data simultaneously.
◦ Therefore, the two nodes can both provide data, servicing more users with better
performance.
◦ This setup comes with several additional requirements, though.
◦ To use an active/active DRBD setup, you also need a cluster-aware file system, such as
Oracle Corp.’s OCFS2 or Red Hat Inc.’s Global File System.
◦ That is because only a cluster-aware file system can guarantee simultaneous writes are
properly synchronized over the network and that two nodes can’t write to the same file at
the same time.
Making the failover successful
DRBD has become very popular because it allows administrators to configure HA clusters
without the need of an expensive SAN.
Imagine the case of a Web server configured for HA: If the host that is currently running the Web
service goes down, another host in the cluster can take over.
In order to continue its work normally, while running on the other node, the Web server needs
access to the same documents it had while running on the original node.
To ensure your Web server always services the same files, you have to put them on a DRBD
device.
Theoretically, you don't need HA clustering software to run DRBD, but having a
cluster makes it easier to manage DRBD.
Without HA software, the administrator needs to make sure a new node is
assigned as the active node after a failure, which involves a manual operation.
When included in a cluster, the cluster software will take care of the failover
automatically, making sure that, after a brief interruption, the service can start
again on the other node.
Also, in an active/active setup, HA cluster software is typically used. This is
because, on top of the DRBD device, a cluster file system must synchronize
access to the device, and a cluster file system is managed by the HA cluster
stack.
Split Brain Problem
The most immediate concern for admins is the connection between DRBD and the HA cluster
stack.
If the HA stack fails to manage the DRBD device properly, you risk ending up in a split-brain
situation where both devices think they're in charge.
Fortunately, there is a good manual procedure to resolve issues like that.
DRBD Installation
Reference: https://computingforgeeks.com/install-and-configure-drbd-on-centos-rhel/
1. Configure hostnames (node01 and node02) and configure hosts files
2. disable Selinux and firewalld
3. Install Packages:
# yum install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm
#rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# yum install -y kmod-drbd9x drbd9x-utils
4. Add new disks (same size)
/etc/drbd.d/resource0.res
resource resource0 {
on node01 {
device /dev/drbd1;
disk /dev/sdc;
address 192.168.83.151:7789;
meta-disk internal;
}
on node02 {
device /dev/drbd1;
disk /dev/sdc;
address 192.168.83.164:7789;
meta-disk internal;
}
}
Create MetaData: #drbdadm create-md resource0
Start the resource UP: #drbdadm up resource0
Set One of the resources as primary: # drbdadm primary --force resource0
Format and mount
(start and enable the drbd service)

More Related Content

Similar to 7.pptx

Similar to 7.pptx (20)

High Availability != High-cost
High Availability != High-costHigh Availability != High-cost
High Availability != High-cost
 
Hadoop seminar
Hadoop seminarHadoop seminar
Hadoop seminar
 
Unit 5
Unit  5Unit  5
Unit 5
 
Cppt Hadoop
Cppt HadoopCppt Hadoop
Cppt Hadoop
 
Cppt
CpptCppt
Cppt
 
Cppt
CpptCppt
Cppt
 
OPERATING SYSTEM .pptx
OPERATING SYSTEM .pptxOPERATING SYSTEM .pptx
OPERATING SYSTEM .pptx
 
2.1-HADOOP.pdf
2.1-HADOOP.pdf2.1-HADOOP.pdf
2.1-HADOOP.pdf
 
RAID LEVELS
RAID LEVELSRAID LEVELS
RAID LEVELS
 
Hadoop overview.pdf
Hadoop overview.pdfHadoop overview.pdf
Hadoop overview.pdf
 
Introduction to Hadoop and Hadoop component
Introduction to Hadoop and Hadoop component Introduction to Hadoop and Hadoop component
Introduction to Hadoop and Hadoop component
 
Hadoop
HadoopHadoop
Hadoop
 
Hadoop installation by santosh nage
Hadoop installation by santosh nageHadoop installation by santosh nage
Hadoop installation by santosh nage
 
Distributed Systems Hadoop.pptx
Distributed Systems Hadoop.pptxDistributed Systems Hadoop.pptx
Distributed Systems Hadoop.pptx
 
Unit 1
Unit 1Unit 1
Unit 1
 
Hadoop Interview Questions and Answers by rohit kapa
Hadoop Interview Questions and Answers by rohit kapaHadoop Interview Questions and Answers by rohit kapa
Hadoop Interview Questions and Answers by rohit kapa
 
Hdfs design
Hdfs designHdfs design
Hdfs design
 
LINBIT_HA_Business_Apr2016
LINBIT_HA_Business_Apr2016LINBIT_HA_Business_Apr2016
LINBIT_HA_Business_Apr2016
 
project report on hadoop
project report on hadoopproject report on hadoop
project report on hadoop
 
Hadoop cluster configuration
Hadoop cluster configurationHadoop cluster configuration
Hadoop cluster configuration
 

More from alaakaraja1

More from alaakaraja1 (6)

13.pptx
13.pptx13.pptx
13.pptx
 
1.pptx
1.pptx1.pptx
1.pptx
 
ES-CH6.ppt
ES-CH6.pptES-CH6.ppt
ES-CH6.ppt
 
ES-CH1.ppt
ES-CH1.pptES-CH1.ppt
ES-CH1.ppt
 
Embedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.pptEmbedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.ppt
 
ES-CH5.ppt
ES-CH5.pptES-CH5.ppt
ES-CH5.ppt
 

Recently uploaded

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 

Recently uploaded (20)

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 

7.pptx

  • 2. DRBD DRBD was originally conceived and developed in the late 1990s by Philipp Reisner and Lars Ellenberg. The developers' purpose was to create a Linux security standard that would offer optimal reliability at minimum cost. The software has continuously evolved since that time. The current version of DRBD can be used with all common flavors of Linux for synchronous replication of stored data between a passive system and an active system.
  • 3. DRBD Data can be read from and written to both systems simultaneously. DRBD also supports resource-level fencing. DRBD works in conjunction with a cluster management program known as Heartbeat and has been bundled into some distributions of Linux.
  • 4. DRBD DRBD is a registered trademark of LINBIT Information Technologies GmBH, headquartered in Vienna, Austria. The software has been released under the GNU GPL (General Public License) and can be freely distributed and modified within the limitations of the license agreement.
  • 5. Avoid pricey storage area network (SAN) devices and synchronize data with DRBD, a powerful — and free — software component available in Linux.
  • 6. DRBD DRBD can be summarized as RAID 1 (mirroring) over the network. That means you need two nodes and a network to connect them. On both of these nodes, a storage device — typically a local hard disk — is reserved for the DRBD device. Once configured, DRBD takes care of synchronizing these devices in real time over the network. The difference between DRBD and other synchronization hardware and software, such as Rsync, is that DRBD is doing its work at the block layer, which makes it fit for almost every use.
  • 7. DRBD Setups There are two setups for DRBD: active/passive or active/active. The active/passive setup closely resembles RAID ◦ Data is written to the active device and replicated to the passive device. ◦ Normally, the passive device doesn't do anything, but if failure occurs, it can be switched to become the active device. ◦ The active/passive setup is very popular in two-node, high-availability (HA) clusters.
  • 8. DRBD Setups The alternative is to use DRBD in an active/active setup: ◦ There are still two storage devices involved, but both can be accessed simultaneously, which means both nodes can operate and serve up data simultaneously. ◦ Therefore, the two nodes can both provide data, servicing more users with better performance. ◦ This setup comes with several additional requirements, though. ◦ To use an active/active DRBD setup, you also need a cluster-aware file system, such as Oracle Corp.’s OCFS2 or Red Hat Inc.’s Global File System. ◦ That is because only a cluster-aware file system can guarantee simultaneous writes are properly synchronized over the network and that two nodes can’t write to the same file at the same time.
  • 9. Making the failover successful DRBD has become very popular because it allows administrators to configure HA clusters without the need of an expensive SAN. Imagine the case of a Web server configured for HA: If the host that is currently running the Web service goes down, another host in the cluster can take over. In order to continue its work normally, while running on the other node, the Web server needs access to the same documents it had while running on the original node. To ensure your Web server always services the same files, you have to put them on a DRBD device.
  • 10. Theoretically, you don't need HA clustering software to run DRBD, but having a cluster makes it easier to manage DRBD. Without HA software, the administrator needs to make sure a new node is assigned as the active node after a failure, which involves a manual operation. When included in a cluster, the cluster software will take care of the failover automatically, making sure that, after a brief interruption, the service can start again on the other node. Also, in an active/active setup, HA cluster software is typically used. This is because, on top of the DRBD device, a cluster file system must synchronize access to the device, and a cluster file system is managed by the HA cluster stack.
  • 11. Split Brain Problem The most immediate concern for admins is the connection between DRBD and the HA cluster stack. If the HA stack fails to manage the DRBD device properly, you risk ending up in a split-brain situation where both devices think they're in charge. Fortunately, there is a good manual procedure to resolve issues like that.
  • 12. DRBD Installation Reference: https://computingforgeeks.com/install-and-configure-drbd-on-centos-rhel/ 1. Configure hostnames (node01 and node02) and configure hosts files 2. disable Selinux and firewalld 3. Install Packages: # yum install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm #rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org # yum install -y kmod-drbd9x drbd9x-utils 4. Add new disks (same size)
  • 13. /etc/drbd.d/resource0.res resource resource0 { on node01 { device /dev/drbd1; disk /dev/sdc; address 192.168.83.151:7789; meta-disk internal; } on node02 { device /dev/drbd1; disk /dev/sdc; address 192.168.83.164:7789; meta-disk internal; } }
  • 14. Create MetaData: #drbdadm create-md resource0 Start the resource UP: #drbdadm up resource0 Set One of the resources as primary: # drbdadm primary --force resource0 Format and mount (start and enable the drbd service)