the application of drbd in linux-ha haibo zhang 4/28/2014
TRANSCRIPT
![Page 1: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/1.jpg)
The application of DRBD in Linux-HA
Haibo Zhang4/28/2014
![Page 2: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/2.jpg)
What is DRBD?
• DRBD (Distributed Replicated Block Device) is a software development for high availability clusters
![Page 3: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/3.jpg)
What is the HA?
• The Linux-HA (High-Availability Linux project provides a high availability (clustering) Solution for Linux, FreeBSD, OpenBSD, Solaris and which promotes reliability, availability, and serviceability (RAS).
![Page 4: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/4.jpg)
Easy way to understand
• Disk Array• RAID ( Redundant Arrays of Inexpensive Disks , RAID)
![Page 5: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/5.jpg)
The structure of HA
![Page 6: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/6.jpg)
The structure of HA
• DRBD core functionality by Linux kernel implements, Under the file system it is closest to the IO stack.
• Conducive to the transmission of the data• System should be the shared disk file system like GFS2 ; OCFS2
![Page 7: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/7.jpg)
How the DRBD running
• Mirroring of important data• Fully synchronous• switch between master slave
![Page 8: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/8.jpg)
File transfer
The local write return immediately successfuland the data is sent to the other party, dual both power-down, the data may be lost
Local and the other write successfully identified and returned. Dual power-down or also damaged disk, the data may be lost
Return immediately write local success, the data on buffer. may be lost
Copydata
Asynchronous
Memory
synchronization
synchronization
![Page 9: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/9.jpg)
heartbeat
![Page 10: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/10.jpg)
Split brain
• Each node want to switch to master node when the net broken • Quorum Algorithm to handle split brain
![Page 11: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/11.jpg)
Core of the progress
Inputdata
heartbeat
Copydata
Receive Data
respond
Transfer data to node
Inputdata
heartbeat Copydata
![Page 12: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/12.jpg)
DRBD in the in reality
• Company with big data• Bank • Database system
![Page 13: The application of DRBD in Linux-HA Haibo Zhang 4/28/2014](https://reader035.vdocument.in/reader035/viewer/2022062408/56649ef55503460f94c092c6/html5/thumbnails/13.jpg)
Tha
Thank You!