<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Gspc_Architecture_with_LUN_Management</id>
	<title>Gspc Architecture with LUN Management - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Gspc_Architecture_with_LUN_Management"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Gspc_Architecture_with_LUN_Management&amp;action=history"/>
	<updated>2026-07-27T11:10:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Gspc_Architecture_with_LUN_Management&amp;diff=4291&amp;oldid=prev</id>
		<title>Admin: Auto-created from uploaded PDF text extraction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Gspc_Architecture_with_LUN_Management&amp;diff=4291&amp;oldid=prev"/>
		<updated>2026-07-26T16:27:09Z</updated>

		<summary type="html">&lt;p&gt;Auto-created from uploaded PDF text extraction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Auto-generated from the uploaded PDF [[:File:Gspc_Architecture_with_LUN_Management.pdf|Gspc_Architecture_with_LUN_Management.pdf]]. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Set Of Actions for Detecting and mounting LUN:&lt;br /&gt;
Requirement: 2 LUNS were projected to two hosts (gspc-cloud1 and gspc-cloud2) that has to be in high&lt;br /&gt;
availability environment. Detail:-&lt;br /&gt;
&lt;br /&gt;
   1) Wwid = 36005076300808652a000000000000004 , to be projected to Linux hosts(gspc-cloud1 and&lt;br /&gt;
      gspc-cloud2) with alias mpathd.&lt;br /&gt;
   2) Wwid = 36005076300808652a000000000000005 , to be projected to Window_FS VM (running&lt;br /&gt;
      over /storage) with alias mpathe.&lt;br /&gt;
&lt;br /&gt;
Architecture:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                      VM1&lt;br /&gt;
                                                                               VM2&lt;br /&gt;
&lt;br /&gt;
                                                          SAN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                        HBA1&lt;br /&gt;
                                                            HP S\W 1&lt;br /&gt;
&lt;br /&gt;
                                                   HBA2                  HP S\W2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                       HOST1=                            HOST2=&lt;br /&gt;
                                     Gspc-cloud1                       Gspc-cloud2&lt;br /&gt;
&lt;br /&gt;
NETWORK ARCHITECTURE:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                           HP S\W 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                    eth1&lt;br /&gt;
                                                     HP S\W 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                eth2&lt;br /&gt;
&lt;br /&gt;
                    eth0&lt;br /&gt;
&lt;br /&gt;
                                                                 eth2&lt;br /&gt;
                                                     E&lt;br /&gt;
                                                     T               E&lt;br /&gt;
                                                     H               T&lt;br /&gt;
                                                     0               H&lt;br /&gt;
                                                                     3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                      HOST1=           eth3                HOST2=&lt;br /&gt;
                    Gspc-cloud1                          Gspc-cloud2&lt;br /&gt;
                    (10.100.10.2)                        (10.100.10.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                              eth1&lt;br /&gt;
&lt;br /&gt;
SCENARIO:&lt;br /&gt;
&lt;br /&gt;
      Firstly, 2 LUNs from SAN are projected at the time of implementation only. One is mounted to both Linux&lt;br /&gt;
       hosts (i.e, gspc-cloud1 and gspc-cloud2) on “/storage” directory and another is mounted to VM&lt;br /&gt;
       (Window_FS).&lt;br /&gt;
&lt;br /&gt;
      These two host (gspc-cloud1 gspc-cloud2) are running in “High Availability” environment, i.e, in failure&lt;br /&gt;
       of any one host, services configured in this environment will be migrated to another without any impact.&lt;br /&gt;
&lt;br /&gt;
      The services configured in H.A environment is “virtual machine”. This “virtual machine” as-a-service is&lt;br /&gt;
       running from /storage. Running VM are- Window_FS and Window_RODC.&lt;br /&gt;
&lt;br /&gt;
      Apart from this one Virtual_IP is also configured as a service in H.A environment which is “10.100.10.4”.&lt;br /&gt;
      Now, according to modifications 2 more LUNs have been projected in same way for backup purpose.&lt;br /&gt;
&lt;br /&gt;
Accessing LUN:&lt;br /&gt;
&lt;br /&gt;
   1. As LUNs are projected to both hosts from SAN using HBA, multipathing comes into context. Multi-pathing&lt;br /&gt;
      is used when single storage device (LUN) is connected via various routes. This results in, same storage to be&lt;br /&gt;
      visible as a separate hard-disks, otherwise.&lt;br /&gt;
&lt;br /&gt;
   2. Multi-pathing makes that same single device (LUN) visible and accessible by single name (as settings&lt;br /&gt;
      configured here).&lt;br /&gt;
&lt;br /&gt;
   3. Here, one LUN is projected to “/storage” on both hosts as “mpathb” and second is mounted to VM as&lt;br /&gt;
      “mpathc”.&lt;br /&gt;
&lt;br /&gt;
   4. Also, newly projection are – third LUN projected on directory named “/linux_lun” on both hosts as&lt;br /&gt;
      “mpathd” and fourth to same VM is “mpathe”.&lt;br /&gt;
&lt;br /&gt;
Challenge :&lt;br /&gt;
The name assigned to newly projected 2 LUNs on gspc-cloud1 was reciprocate to names assigned by&lt;br /&gt;
gspc-cloud2. This would contradict in fail-over scenario. Thus, signifying that the name assign via&lt;br /&gt;
multipath daemon is incorrect.&lt;br /&gt;
Solution:&lt;br /&gt;
Rectifying Naming convention-&lt;br /&gt;
   1. Login to gspc-cloud1 (as services running from gspc-cloud2)-- “ssh 10.100.10.2” .&lt;br /&gt;
   2. Disable all of your multipath devices on your other machines&lt;br /&gt;
# service multipathd stop&lt;br /&gt;
       # multipath -F&lt;br /&gt;
   3. Copy the /etc/multipath/bindings file from gspc-cloud2 to gspc-cloud1.&lt;br /&gt;
   4. Re-enable the multipathd daemon.&lt;br /&gt;
        # service multipathd start&lt;br /&gt;
Finally, the 2 LUNs are assigned same name on both hosts. Next is mounting on different machines.&lt;br /&gt;
Mounting on VM-&lt;br /&gt;
   1. LUN with name &amp;#039;mpathe&amp;#039; has to be mounted on VM, so firstly need to edit xml file with below&lt;br /&gt;
        command--&lt;br /&gt;
        “virsh edit Window_FS”&lt;br /&gt;
   2. Now add below perimeters (after already described virtio disk).&lt;br /&gt;
      &amp;lt;/disk&amp;gt;&lt;br /&gt;
      &amp;lt;disk type=&amp;#039;block&amp;#039; device=&amp;#039;disk&amp;#039;&amp;gt;&lt;br /&gt;
      &amp;lt;driver name=&amp;#039;qemu&amp;#039; type=&amp;#039;raw&amp;#039; cache=&amp;#039;none&amp;#039;/&amp;gt;&lt;br /&gt;
      &amp;lt;source dev=&amp;#039;/dev/mapper/mpathe&amp;#039;/&amp;gt;&lt;br /&gt;
      &amp;lt;target dev=&amp;#039;vdd&amp;#039; bus=&amp;#039;virtio&amp;#039;/&amp;gt;&lt;br /&gt;
      &amp;lt;address type=&amp;#039;pci&amp;#039; domain=&amp;#039;0x0000&amp;#039; bus=&amp;#039;0x00&amp;#039; slot=&amp;#039;0x06&amp;#039; function=&amp;#039;0x0&amp;#039;/&amp;gt;&lt;br /&gt;
   3. Save and exit the file. Copy the xml file to “/storage/KVMCLUSTXML/” .&lt;br /&gt;
      “cp /etc/libvirt/qemu/Window_FS.xml /storage/KVMCLUSTXML/ ”&lt;br /&gt;
   4. Now run the command to attach-disk in live environment.&lt;br /&gt;
      “virsh attach-disk Window_FS /dev/mapper/mpathe vdd --cache none –persistent”&lt;br /&gt;
   5. Thus, LUN projected as &amp;#039;mpathe&amp;#039; is permanently mounted to Window_FS VM.&lt;br /&gt;
&lt;br /&gt;
Mounting on Linux Hosts-&lt;br /&gt;
  1. LUN mapped as &amp;#039;mpathd&amp;#039; has to be mounted on both hosts with gfs2 file system within same&lt;br /&gt;
      cluster.&lt;br /&gt;
  2. For this, we have to add this in existing volume group (i.e, cinder—volumes) for which we have&lt;br /&gt;
      have initialize it as physical volume. This will be done by below command--&lt;br /&gt;
      “pvcreate /dev/mapper/mpathd”&lt;br /&gt;
   3. Extend the volume group.&lt;br /&gt;
      “vgextend cinder-volumes /dev/mappper/mpathd”&lt;br /&gt;
   4. Create the new LV of size 400GB.&lt;br /&gt;
      “lvcreate -L 400G -n lsan1 cinder-volumes”&lt;br /&gt;
      -L    for size of LVM.&lt;br /&gt;
      -n    for name of lvm.&lt;br /&gt;
   5. Format with gfs2 file-system.&lt;br /&gt;
      mkfs -t gfs2 -p lock_dlm -t gspc-cloud:new -j 4 /dev/mapper/cinder-volumes-lsan1&lt;br /&gt;
      -t    for file system type&lt;br /&gt;
      -p    for locking protocol&lt;br /&gt;
      -t    for lock table {related to cluster}&lt;br /&gt;
      -j    for number of journals.&lt;br /&gt;
   6. Create a directory - “mkdir /linux_lun”&lt;br /&gt;
   7. Make its entry in fstab file as below-&lt;br /&gt;
      “/dev/cinder-volumes/lsan1                 /linux_lun    gfs2    defaults         0 0”&lt;br /&gt;
   8. Check the gfs2 status to verify currently activated mounts and activate the newly created.&lt;br /&gt;
      “service gfs2 status” | “service gfs2 reload”&lt;br /&gt;
   9. Go to another host- “ssh 10.100.10.3”&lt;br /&gt;
   10. Verify the volume group status -- “vgs”&lt;br /&gt;
   11. Finally activate the LVM-- “vgchange -ay cinder-vloumes”&lt;br /&gt;
&lt;br /&gt;
Links:&lt;br /&gt;
Cosistent device name to LUN-&lt;br /&gt;
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/mul&lt;br /&gt;
tipath_consistent_names.html&lt;br /&gt;
&lt;br /&gt;
adding to existing vg-&lt;br /&gt;
https://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/VG_remove_PV.html&lt;br /&gt;
&lt;br /&gt;
formatting with gfs2&lt;br /&gt;
1)     https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Global_File_&lt;br /&gt;
System_2/ch-manage.html#s1-manage-makefs&lt;br /&gt;
2)     http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/ch08s03s0&lt;br /&gt;
2.html&lt;br /&gt;
3)     https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Globa&lt;br /&gt;
l_File_System_2/index.html&lt;br /&gt;
4)     https://access.redhat.com/solutions/17401&lt;br /&gt;
&lt;br /&gt;
ACTIVATING LVM&lt;br /&gt;
http://www.unixarena.com/2013/10/how-to-install-cluster-lvm2-and-gfs2-on.html&lt;br /&gt;
&lt;br /&gt;
SMB MOUNTING-&lt;br /&gt;
COMMAND- /usr/bin/smbclient \\\\10.100.11.59\\pub -U kamal&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>