iSCSI, multiple initiators for the same LUNWindows 7 iSCSI initiator disconnect issuesESXi 4.1: how to make use of an iSCSI LUN bigger than 2 TB?iSCSI volume for hyper-vMultiple iSCSI Targets or 1 that's shared?ZFS over iSCSI high-availability solutionSAN: is it better to have separate LUNs for operating system and data of virtual machines?Multiple iSCSI LUNs to one ServerEMC NS-480 Celerra - Way to verify which iSCSI initiators are currently connected to a LUN?iscsi add a new storage machine to the san network and configure as one large diskSeeking iSCSI file copy flow clarification

If the Moon were impacted by a suitably sized meteor, how long would it take to impact the Earth?

How does the barbarian bonus damage interact with two weapon fighting?

If I buy and download a game through second Nintendo account do I own it on my main account too?

How would a lunar colony attack Earth?

Easy way to get process information from a window

What is a Mono Word™?

Why isn't LOX/UDMH used in staged combustion rockets now-a-days?

How does Asimov's second law deal with contradictory orders from different people?

NULL value causes blank row in SELECT results for text concatenation

Just how much information should you share with a former client?

What Marvel character has this 'W' symbol?

How to prevent a single-element caster from being useless against immune foes?

How to get Planck length in meters to 6 decimal places

integration of absolute value

Why would an invisible personal shield be necessary?

Why do we need a voltage divider when we get the same voltage at the output as the input?

Why does Latex make a small adjustment when I change section color

Numerically Stable IIR filter

Can you remove a blindfold using the Telekinesis spell?

Can living where Rare Earth magnetic ore is abundant provide any protection?

How can a class have multiple methods without breaking the single responsibility principle

UX writing: When to use "we"?

Why is Searing Smite not listed in the Roll20 Spell books?

Word for giving preference to the oldest child



iSCSI, multiple initiators for the same LUN


Windows 7 iSCSI initiator disconnect issuesESXi 4.1: how to make use of an iSCSI LUN bigger than 2 TB?iSCSI volume for hyper-vMultiple iSCSI Targets or 1 that's shared?ZFS over iSCSI high-availability solutionSAN: is it better to have separate LUNs for operating system and data of virtual machines?Multiple iSCSI LUNs to one ServerEMC NS-480 Celerra - Way to verify which iSCSI initiators are currently connected to a LUN?iscsi add a new storage machine to the san network and configure as one large diskSeeking iSCSI file copy flow clarification






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















I have a web application that is distributed over 3 servers. These 3 servers need a shared storage to access files. Since iSCSI is just a protocol, not a filesystem, it will not have any implementation of locking files; so if I just connect it as it is, I will just destroy all of the data.



According to my research, I would need an actual filesystem on these LUNs in order to function as I intend to use it.



How would that work? How can I implement a file system for the LUN?



OS Used: Ubuntu 16.* or 18.*










share|improve this question


























  • Hi, We need more information, especially what OS would access it.

    – yagmoth555
    Jul 21 at 18:16











  • @yagmoth555 sorry, added now. any other information would be useful ?

    – Anton Stafeyev
    Jul 21 at 18:18

















5















I have a web application that is distributed over 3 servers. These 3 servers need a shared storage to access files. Since iSCSI is just a protocol, not a filesystem, it will not have any implementation of locking files; so if I just connect it as it is, I will just destroy all of the data.



According to my research, I would need an actual filesystem on these LUNs in order to function as I intend to use it.



How would that work? How can I implement a file system for the LUN?



OS Used: Ubuntu 16.* or 18.*










share|improve this question


























  • Hi, We need more information, especially what OS would access it.

    – yagmoth555
    Jul 21 at 18:16











  • @yagmoth555 sorry, added now. any other information would be useful ?

    – Anton Stafeyev
    Jul 21 at 18:18













5












5








5








I have a web application that is distributed over 3 servers. These 3 servers need a shared storage to access files. Since iSCSI is just a protocol, not a filesystem, it will not have any implementation of locking files; so if I just connect it as it is, I will just destroy all of the data.



According to my research, I would need an actual filesystem on these LUNs in order to function as I intend to use it.



How would that work? How can I implement a file system for the LUN?



OS Used: Ubuntu 16.* or 18.*










share|improve this question
















I have a web application that is distributed over 3 servers. These 3 servers need a shared storage to access files. Since iSCSI is just a protocol, not a filesystem, it will not have any implementation of locking files; so if I just connect it as it is, I will just destroy all of the data.



According to my research, I would need an actual filesystem on these LUNs in order to function as I intend to use it.



How would that work? How can I implement a file system for the LUN?



OS Used: Ubuntu 16.* or 18.*







storage-area-network iscsi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 22 at 11:19









fNek

1034 bronze badges




1034 bronze badges










asked Jul 21 at 18:08









Anton StafeyevAnton Stafeyev

828 bronze badges




828 bronze badges















  • Hi, We need more information, especially what OS would access it.

    – yagmoth555
    Jul 21 at 18:16











  • @yagmoth555 sorry, added now. any other information would be useful ?

    – Anton Stafeyev
    Jul 21 at 18:18

















  • Hi, We need more information, especially what OS would access it.

    – yagmoth555
    Jul 21 at 18:16











  • @yagmoth555 sorry, added now. any other information would be useful ?

    – Anton Stafeyev
    Jul 21 at 18:18
















Hi, We need more information, especially what OS would access it.

– yagmoth555
Jul 21 at 18:16





Hi, We need more information, especially what OS would access it.

– yagmoth555
Jul 21 at 18:16













@yagmoth555 sorry, added now. any other information would be useful ?

– Anton Stafeyev
Jul 21 at 18:18





@yagmoth555 sorry, added now. any other information would be useful ?

– Anton Stafeyev
Jul 21 at 18:18










3 Answers
3






active

oldest

votes


















11














You need to have some sort of either a clustered file system or distributed lock manager to avoid metadata damage done to your file system with concurrent writes.



There's a good summary of this issue on StarWind forum.



https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392






share|improve this answer
































    5














    Generally speaking, you need a cluster in order to share storage between multiple systems (unless you want one of them to act as a file server).



    I don't actually know anything about building clusters on Ubuntu, but this looks promising: http://manpages.ubuntu.com/manpages/cosmic/man7/ocfs2.7.html.






    share|improve this answer

























    • thanks man, thats exactly what i was lookign for

      – Anton Stafeyev
      Jul 21 at 20:51











    • it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

      – Anton Stafeyev
      Jul 22 at 10:37


















    1














    So after some research, I came up with few solutions that would be interesting for those who are looking to set up remote storage or a cluster.



    1. Reconsider your network and your needs. One thing that I ran into is setting up an iscsi with cluster-aware file systems is not an easy task. Additionally GFS and OCFS2 do not have well-documented troubleshooting guide available to the public. In the case of OCFS2, you would need to be Oracle's customer and have an active support account. same with GFS2. if you are Centos user, you are stuck with online tutorials and no support for it.


    2. Most likely it is out of your budget anyway. Consider using NFS for hobby-small-medium business. it is much easier to set up, it has plenty of documentation online.


    3. If you really need an iscsi LUN to be shared across multiple machines, then there are 3 solutions available out there. Oracles OCFS2, Red Hat GFS2, VMFS. all 3 are cluster-aware file systems. OCFS2 is simpler to set up but requires you to have access to oracle support which is not free, GFS2 is not as simple as OCFS2 because you would have to manually set up bits of it but it also makes it more customizable. ad VMFS which is cool to use with your ESXI server to keep your VM machines there.


    I hope that helps some users in the future when deciding what you actually need for your network and storage. I personally opted for NFS as storage and dedicated iscsi to ESXI server for image booting.






    share|improve this answer





























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "2"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f976116%2fiscsi-multiple-initiators-for-the-same-lun%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      11














      You need to have some sort of either a clustered file system or distributed lock manager to avoid metadata damage done to your file system with concurrent writes.



      There's a good summary of this issue on StarWind forum.



      https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392






      share|improve this answer





























        11














        You need to have some sort of either a clustered file system or distributed lock manager to avoid metadata damage done to your file system with concurrent writes.



        There's a good summary of this issue on StarWind forum.



        https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392






        share|improve this answer



























          11












          11








          11







          You need to have some sort of either a clustered file system or distributed lock manager to avoid metadata damage done to your file system with concurrent writes.



          There's a good summary of this issue on StarWind forum.



          https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392






          share|improve this answer













          You need to have some sort of either a clustered file system or distributed lock manager to avoid metadata damage done to your file system with concurrent writes.



          There's a good summary of this issue on StarWind forum.



          https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 21 at 19:10









          BaronSamedi1958BaronSamedi1958

          7,8621 gold badge13 silver badges30 bronze badges




          7,8621 gold badge13 silver badges30 bronze badges


























              5














              Generally speaking, you need a cluster in order to share storage between multiple systems (unless you want one of them to act as a file server).



              I don't actually know anything about building clusters on Ubuntu, but this looks promising: http://manpages.ubuntu.com/manpages/cosmic/man7/ocfs2.7.html.






              share|improve this answer

























              • thanks man, thats exactly what i was lookign for

                – Anton Stafeyev
                Jul 21 at 20:51











              • it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

                – Anton Stafeyev
                Jul 22 at 10:37















              5














              Generally speaking, you need a cluster in order to share storage between multiple systems (unless you want one of them to act as a file server).



              I don't actually know anything about building clusters on Ubuntu, but this looks promising: http://manpages.ubuntu.com/manpages/cosmic/man7/ocfs2.7.html.






              share|improve this answer

























              • thanks man, thats exactly what i was lookign for

                – Anton Stafeyev
                Jul 21 at 20:51











              • it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

                – Anton Stafeyev
                Jul 22 at 10:37













              5












              5








              5







              Generally speaking, you need a cluster in order to share storage between multiple systems (unless you want one of them to act as a file server).



              I don't actually know anything about building clusters on Ubuntu, but this looks promising: http://manpages.ubuntu.com/manpages/cosmic/man7/ocfs2.7.html.






              share|improve this answer













              Generally speaking, you need a cluster in order to share storage between multiple systems (unless you want one of them to act as a file server).



              I don't actually know anything about building clusters on Ubuntu, but this looks promising: http://manpages.ubuntu.com/manpages/cosmic/man7/ocfs2.7.html.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jul 21 at 18:50









              MassimoMassimo

              53.9k45 gold badges172 silver badges289 bronze badges




              53.9k45 gold badges172 silver badges289 bronze badges















              • thanks man, thats exactly what i was lookign for

                – Anton Stafeyev
                Jul 21 at 20:51











              • it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

                – Anton Stafeyev
                Jul 22 at 10:37

















              • thanks man, thats exactly what i was lookign for

                – Anton Stafeyev
                Jul 21 at 20:51











              • it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

                – Anton Stafeyev
                Jul 22 at 10:37
















              thanks man, thats exactly what i was lookign for

              – Anton Stafeyev
              Jul 21 at 20:51





              thanks man, thats exactly what i was lookign for

              – Anton Stafeyev
              Jul 21 at 20:51













              it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

              – Anton Stafeyev
              Jul 22 at 10:37





              it solved the problem partially, since ocfs2 allows storage up to 16TB, what would be a solution if my storage needs are about 60-80TB

              – Anton Stafeyev
              Jul 22 at 10:37











              1














              So after some research, I came up with few solutions that would be interesting for those who are looking to set up remote storage or a cluster.



              1. Reconsider your network and your needs. One thing that I ran into is setting up an iscsi with cluster-aware file systems is not an easy task. Additionally GFS and OCFS2 do not have well-documented troubleshooting guide available to the public. In the case of OCFS2, you would need to be Oracle's customer and have an active support account. same with GFS2. if you are Centos user, you are stuck with online tutorials and no support for it.


              2. Most likely it is out of your budget anyway. Consider using NFS for hobby-small-medium business. it is much easier to set up, it has plenty of documentation online.


              3. If you really need an iscsi LUN to be shared across multiple machines, then there are 3 solutions available out there. Oracles OCFS2, Red Hat GFS2, VMFS. all 3 are cluster-aware file systems. OCFS2 is simpler to set up but requires you to have access to oracle support which is not free, GFS2 is not as simple as OCFS2 because you would have to manually set up bits of it but it also makes it more customizable. ad VMFS which is cool to use with your ESXI server to keep your VM machines there.


              I hope that helps some users in the future when deciding what you actually need for your network and storage. I personally opted for NFS as storage and dedicated iscsi to ESXI server for image booting.






              share|improve this answer































                1














                So after some research, I came up with few solutions that would be interesting for those who are looking to set up remote storage or a cluster.



                1. Reconsider your network and your needs. One thing that I ran into is setting up an iscsi with cluster-aware file systems is not an easy task. Additionally GFS and OCFS2 do not have well-documented troubleshooting guide available to the public. In the case of OCFS2, you would need to be Oracle's customer and have an active support account. same with GFS2. if you are Centos user, you are stuck with online tutorials and no support for it.


                2. Most likely it is out of your budget anyway. Consider using NFS for hobby-small-medium business. it is much easier to set up, it has plenty of documentation online.


                3. If you really need an iscsi LUN to be shared across multiple machines, then there are 3 solutions available out there. Oracles OCFS2, Red Hat GFS2, VMFS. all 3 are cluster-aware file systems. OCFS2 is simpler to set up but requires you to have access to oracle support which is not free, GFS2 is not as simple as OCFS2 because you would have to manually set up bits of it but it also makes it more customizable. ad VMFS which is cool to use with your ESXI server to keep your VM machines there.


                I hope that helps some users in the future when deciding what you actually need for your network and storage. I personally opted for NFS as storage and dedicated iscsi to ESXI server for image booting.






                share|improve this answer





























                  1












                  1








                  1







                  So after some research, I came up with few solutions that would be interesting for those who are looking to set up remote storage or a cluster.



                  1. Reconsider your network and your needs. One thing that I ran into is setting up an iscsi with cluster-aware file systems is not an easy task. Additionally GFS and OCFS2 do not have well-documented troubleshooting guide available to the public. In the case of OCFS2, you would need to be Oracle's customer and have an active support account. same with GFS2. if you are Centos user, you are stuck with online tutorials and no support for it.


                  2. Most likely it is out of your budget anyway. Consider using NFS for hobby-small-medium business. it is much easier to set up, it has plenty of documentation online.


                  3. If you really need an iscsi LUN to be shared across multiple machines, then there are 3 solutions available out there. Oracles OCFS2, Red Hat GFS2, VMFS. all 3 are cluster-aware file systems. OCFS2 is simpler to set up but requires you to have access to oracle support which is not free, GFS2 is not as simple as OCFS2 because you would have to manually set up bits of it but it also makes it more customizable. ad VMFS which is cool to use with your ESXI server to keep your VM machines there.


                  I hope that helps some users in the future when deciding what you actually need for your network and storage. I personally opted for NFS as storage and dedicated iscsi to ESXI server for image booting.






                  share|improve this answer















                  So after some research, I came up with few solutions that would be interesting for those who are looking to set up remote storage or a cluster.



                  1. Reconsider your network and your needs. One thing that I ran into is setting up an iscsi with cluster-aware file systems is not an easy task. Additionally GFS and OCFS2 do not have well-documented troubleshooting guide available to the public. In the case of OCFS2, you would need to be Oracle's customer and have an active support account. same with GFS2. if you are Centos user, you are stuck with online tutorials and no support for it.


                  2. Most likely it is out of your budget anyway. Consider using NFS for hobby-small-medium business. it is much easier to set up, it has plenty of documentation online.


                  3. If you really need an iscsi LUN to be shared across multiple machines, then there are 3 solutions available out there. Oracles OCFS2, Red Hat GFS2, VMFS. all 3 are cluster-aware file systems. OCFS2 is simpler to set up but requires you to have access to oracle support which is not free, GFS2 is not as simple as OCFS2 because you would have to manually set up bits of it but it also makes it more customizable. ad VMFS which is cool to use with your ESXI server to keep your VM machines there.


                  I hope that helps some users in the future when deciding what you actually need for your network and storage. I personally opted for NFS as storage and dedicated iscsi to ESXI server for image booting.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 2 days ago









                  peterh

                  4,46610 gold badges25 silver badges42 bronze badges




                  4,46610 gold badges25 silver badges42 bronze badges










                  answered Jul 25 at 12:07









                  Anton StafeyevAnton Stafeyev

                  828 bronze badges




                  828 bronze badges






























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Server Fault!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f976116%2fiscsi-multiple-initiators-for-the-same-lun%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                      Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?