LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2014, 07:49 AM   #1
vk33
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
mounting an FC Target Disk ( CentOS 6.5) on to an Initiator ( CentOS 6.5)


Our system as a FC SAN Storage setup on CentOS 6.5. I am trying to access the FC disks from an initiator (CentOS 6.5) I do see the disks, but I am not sure on how to mount them.
When I try to mount them with
mount /dev/sda1 /mnt/datastore
I get the following message
mount: unknown filesystem type 'VMFS_volume_member'

My question is, how does one mount an FC Target Disk on an FC Initiator in Linux?
The disks are readily mounted on ESXi 5.1 through VSphere client.
Any guidance is appreciated.
 
Old 05-11-2014, 04:35 PM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 609

Rep: Reputation: 32
could help

http://franksvault.blogspot.de/2013/...in-centos.html

maybe, if please respond, as i am interested in the result!
 
Old 05-11-2014, 08:27 PM   #3
vk33
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Saavik, Thanks for the response!
Yes I did already try that before posting the query here. I get the following output ( which seems natural, as these disks are not VMFS. I know that they are formatted as ext4.)

ioctl: Inappropriate ioctl for device
ioctl: Inappropriate ioctl for device
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option


That being said, the FC Target disk is mounted as read-only and I am able to browse the disks.

My objective is to create VMs using KVM and use the FC-SAN as the VM location. We are trying to replace ESXi infrastructures with CentOS.
 
Old 05-12-2014, 01:33 PM   #4
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 609

Rep: Reputation: 32
cool project, might we exchange more infos ?

how big is you environment ?
 
Old 05-13-2014, 08:42 AM   #5
vk33
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hello Saavik: Yes it is a very interesting and a money saving project! Talk about austerity!
We have 4 Dual Xeon machines (Xeon E5-2640, 512 GB Memory) all assembled in house and have about 20 VMS each in production, dev and test environment. All machines are running ESXi. All machines have QLogic FC cards and communicate with each other through an HP StorageWorks FC Switch. Our predicament is now, on our ever-expanding systems, VMWare license may turn out to be more expensive than the hardware itself. So I am exploring viable alternatives.
We want to move to KVM based virtualization. So emptied one machine and converted it into an FC Storage Server with plenty of storage ( Three LUN's with 24 TB each). We configured the FC Storage using SCST . We were tempted to use Openfiler, which made verything happen in a breeze, but decided to go the more geeky way of CentOS + SCST. It was more or less straight-forward , thanks to the so-very-excellent guide at sourceforge. The ESXi initiators could communicate with the target SAN box right away. We were able to migrate the VM's without any problem.

The problem came with a newly installed Linux box which would not get write permissions on the storage disks like the ESXi boxes have.
I may have to wait till tomorrow before I can remove this machine from the list of initiators and add it again, both in the switch and in the SCST configuration file. I will post the outcomes as soon as I can get my hands on the SAN box.
 
Old 05-14-2014, 09:29 AM   #6
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 609

Rep: Reputation: 32
keep me up to date

Hello!

Just keep me informed. We have an environment with more than 200 virtual servers an about 40 vhosts, which also get expensive by now.

So i was already looking for an alternative, but did not found anyone really doing it with kvm.

Would be nice to here how it is going in the future.

Thanks
 
Old 06-12-2014, 01:12 AM   #7
vk33
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Finally I took some time out to study the problem, and I got the result right away and a little dejected for not putting enough thought to the problem.

When the LVM's were presented to the ESXi initiators, by the CentOS target, they were seen as unformatted. So when they were formatted ( via VSphere Administration client) as VMFS Storage, they were obviously not accessible to the Linux Initiators for write.
So I could only see the disks but coud not even mount them without the VMFS-Fuse. And as mentioned in the Fuse Document and elsewhere, they could only be mount as ro and not rw.

So my only lasting work around was to redistribute the volumes in way that some disks are not with VMFS but with ext4 as the file system.
Once the disks were reconfigured ( which was quite a lengthy pain, due to the production data, and sudden failure of the on-board raid and the delay in acquiring LSI Megaraid card), the disks with ext4 FS were available for rw to all the CentOS initiators. All I had to do was send an issue-lip and then mount the disks as ext4 on each initiator.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using ATA Over Ethernet (AoE) On CentOS 6.3 (Initiator And Target) LXer Syndicated Linux News 0 12-16-2012 09:03 AM
Delete from target a LUN that is mounted on initiator slavash Linux - Newbie 0 10-03-2012 10:40 AM
LXer: Using iSCSI On Ubuntu 10.04 (Initiator And Target) LXer Syndicated Linux News 0 08-17-2010 05:01 PM
setting up iscsi initiator and target gauthamk Linux - Software 0 10-05-2007 10:16 AM
CentOS 4.4 iscsi-initiator IanDMac Linux - Software 0 01-01-2007 03:04 PM


All times are GMT -5. The time now is 04:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration