<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi Team,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Thanks for the good explanation. </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">If that is not workable for the database, can anyone recommend me for the setup of the database clients and data files in order to achieve HA and load balancing? How should I set up my VMs and stations (Two machines with two VMs each)? I will appreciate for a workable
approach and that is practical for the HA/Load balancing.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span
style="font-weight:bold;">From:</span></b> Nico Kadel-Garcia <nkadel@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> denis bahati <djbahati@yahoo.co.uk>; Discussion about the virtualization on CentOS <centos-virt@centos.org> <br><b><span style="font-weight: bold;">Cc:</span></b> "brett@worth.id.au" <brett@worth.id.au> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 4 July 2013, 18:32<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [CentOS-virt] KVM virtual machine and SAN storage with FC<br> </font> </div> <div class="y_msg_container"><br>On Thu, Jul 4, 2013 at 12:44 AM, denis bahati <<a ymailto="mailto:djbahati@yahoo.co.uk" href="mailto:djbahati@yahoo.co.uk">djbahati@yahoo.co.uk</a>> wrote:<br>> Hi Brett,<br>><br>> On my plan is as follows:<br>><br>> I have two machine (Server) that will host two VM each. One for database and<br>> one for application.
Then the two machine will provide (Load Balance and<br>> High availability). My intention is that all application files and data file<br>> for the database should reside on the SAN storage for easy access and<br>> update.<br><br>Don't... do this. Two database clients writing to the same database<br>filesystem back ends, simultaneously, is an enormous source of excited<br>sounding flow charts and proposals which simply do not work and are<br>very, very likely to corrupt your database beyond recover. These<br>problems have been examined, for *decades* with shared home<br>directories and saved email and for high performance or clustered<br>databases that need to not have "split brain" skew, It Does Not Work.<br><br>Set up a proper database *cluster* with distinct back ends.<br><br>> Therefore the storage should be accessible to both VMs through mounting the<br>> SAN storage to the VMs. The connection between SAN storage and the
servers<br>> is through Fiber Channel.<br><br>Survey says *bzzzt*. See above for databases. For shared storage, you<br>should really be using some sort of network based access to a<br>filesystem back end. NetApp and EMC spend *billions* in research<br>building high availability shared storage, and even they don't pull<br>stunts like this the last I looked. I can vaguely imagine one of the<br>hosts doing write access and the other having read-only access. But<br>really, most databases today support good clustering configurations<br>that avoid precisely these issues.<br><br>> I have seen somewhere talking about DM-Multipath but i dont know if this can<br>> help or the use of VT-d if can help. I will also appreciate if you provide<br>> some links to give me insight of how to do this.<br><br>Multipath does not mean "multiple clients of the same hardware<br>storage". That's effectively like letting two kernels write to the<br>same actual disk at
the same time, and it's quite dangerous.<br><br>Now, if you want each client to access their own fiber channel disk<br>resource, that should be workable. Even if you have to mount the fiber<br>channel resources on the KVM host, and make disk images for the KVM<br>guest, that should at least get you a testable resource. But the<br>normal approach is have a fiber channel storage server that makes disk<br>images available via NFS, so that the guest VM's can be migrated from<br>one server to another with the shared storage more safely.<br><br><br></div> </div> </div> </blockquote></div> </div></body></html>