<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi </span><span style="font-size: 12pt;">Brett,</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; 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;">On my plan is as follows:</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;">I have two machine (Server) that will host two VM each. One for database
and one for application. Then the two machine will provide (Load Balance and High availability). My intention is that all application files and data file for the database should reside on the SAN storage for easy access and update.</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;">Therefore the storage should be accessible to both VMs through mounting the SAN storage to the VMs. The connection between SAN storage and the servers is through Fiber Channel.</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;">I have seen somewhere talking about DM-Multipath but i dont know if this can help or the use of VT-d if can help. I will also appreciate if you provide some links to give me insight of how to do this.</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 you need more information, please let me know.</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></div><div> </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> Brett Worth <brett.worth@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;">Sent:</span></b> Wednesday, 3 July 2013, 8:40<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><div id="yiv6149529370">
<div>
<div class="yiv6149529370moz-cite-prefix">On 03/07/13 15:22, denis bahati wrote:<br>
</div>
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span style="background-color:transparent;">Is there any body got
any experience on setting up a virtualized environment in
which the vm's can access a fiber channel SAN storage
connected to host? the host access the SAN through its own
HBA, but the hba is not recognized inside the virtual
machines. Please let me know the step to go through this.</span><br>
</div>
</blockquote>
<br>
How you use this storage depends on whether you plan to do migration
from one server to another.<br>
<br>
If you're not going to be migrating then you can just allocate the
FC LUN to LVM volume group and carve off logical volumes for the KVM
VMs to use. These can then have meaningful LVM names in
/dev/vg_(VG)/lv_(LV) that can be allocated to the VM. See
system-config-lvm.<br>
<br>
If you're planning to migrate between machines then the LVM solution
is not going to work. In that case then you might need to create
volumes on you FC controller that will be seen as individual
devices/luns on the host servers. There is a consistent device name
that can be used that appears under /dev/disk/by-id. This will be
identical on any host servers that can see that volume. This can be
allocated to the VM and will be consistent for a migration. Using
this method requires careful management and meticulous documentation
of which LUNs have been allocated to which VM. The lun ids are not
very user friendly.<br>
<br>
We've also have good results with DRBD for times when you want to be
able to migrate between machines but do not have a SAN. You have
to allocate all the storage on each server but you gain by having a
sort of backup.<br>
<br>
Finally, I can recommend convirt as a good system manager interface.<br>
<br>
<br>
Regards<br>
Brett<br>
<br>
<pre class="yiv6149529370moz-signature">--
/) _ _ _/_/ / / / _ _//
/_)/</= / / (_(_/()/< ///
</pre>
</div>
</div><br><br></div> </div> </div> </blockquote></div> </div></body></html>