How to create a shared storage for 2 VM machine using iscsi target(VM)
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
so those two VMs are running on that single hypervisor, and should be accessing some shared storage? and the storage should also be on the disk drive of that hypervisor machine?
iSCSI initiator - that's software you use to connect to iSCSI target.
Both (initiator and target) implementations for linux can be found here http://unh-iscsi.sourceforge.net/
iSCSI disk will be exported to client machine as a block device, so you sould use some cluster FS (the list is here: http://www.yolinux.com/TUTORIALS/Lin...leSystems.html) or, if you decide to use ordinary FS, you should use it read-only.
Thanks dyasny.
YES. Actually, I should have told you, I have the storage local to the host of the 2 vm machines. Meaning 1 Physical host w/250GB HD, and 2 VM machines will be created on top of it and would like to share 100gb to both the VM machines. Since there are many options i've read, like SAN, NAS, NFS, iSCSI, i'd like to go with iSCSI.
Thanks pvs.
First let me read the links you provided and get back to you, if I have questions. Iam buying the DELL Poweredge T410 today to implement the above config.
ok, the best and easiest solution would be to use NFS. The reason is, if you use block storage sharing like iSCSI, the provided LUN will have to be formatted with a cluster filesystem, or both VMs will not be able to use it at once. NFS is a network FS, like SMB shares, so you can provide NFS shares to multipale clients simultaneously, without fear of disk corruption. NFS will handle the file access conflicts automatically
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.