LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 09-14-2010, 09:57 AM   #1
cshanmug
LQ Newbie
 
Registered: Sep 2010
Location: CT, USA
Posts: 3

Rep: Reputation: 0
How to create a shared storage for 2 VM machine using iscsi target(VM)


Hello All,

Could anyone please let me know how the below config can be achieved?

2 VM Machines (Red Hat 5) or OEL(Oracle Unbreakable Linux 5)

The above 2 VM Machines should access a shared storage using iSCSI target
(Iam keep hearing about iSCSI initiator, i dont' know about that)

I have only one Dell Poweredge T410 machine w/ required resources.

Thanks for all.
Shan
 
Old 09-15-2010, 03:21 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
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?
 
Old 09-15-2010, 06:51 AM   #3
pvs
Member
 
Registered: Jan 2005
Location: Lviv, Ukraine
Distribution: Something self-made
Posts: 69

Rep: Reputation: 16
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.
 
Old 09-15-2010, 09:13 AM   #4
cshanmug
LQ Newbie
 
Registered: Sep 2010
Location: CT, USA
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 09-15-2010, 09:15 AM   #5
cshanmug
LQ Newbie
 
Registered: Sep 2010
Location: CT, USA
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 09-16-2010, 01:45 AM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install livecd to iscsi target aclhkaclhk Linux - Software 1 01-30-2010 06:24 PM
ISCSI target image sizing nowlinuxed Linux - General 1 10-19-2009 02:05 AM
Can you map a folder as an iSCSI target? Duren Linux - Server 0 08-18-2008 12:49 PM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
setting up iscsi initiator and target gauthamk Linux - Software 0 10-05-2007 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration