LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-02-2013, 07:46 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
iet: iscsi_trgt: open_path(119) Can't open /dev/blah -2


Hi!

I'm trying to set up a pacemaker-based cluster using a SAN.

I have added the iSCSITarget resource and now I'm trying to set up a iSCSILogicalUnit. So far, I've been unable to do it with pacemaker so I decided to take matters into my own hands and I'm doing things by hand. So I've reached the point where I can call the ietadm command where the iscsi LUN is set up.

Code:
root@cluster1:/usr/lib/ocf# ietadm --op new --tid=1 --lun=1 --params Path=/dev/sdc,Type=fileio,ScsiId=default,ScsiSN=c21f969b,
Operation not permitted.
On syslog I get this:
Code:
Jan  2 09:08:13 cluster1 kernel: [ 1663.626555] iscsi_trgt: open_path(119) Can't open /dev/sdc -2
Jan  2 09:08:13 cluster1 kernel: [ 1663.711196] iscsi_trgt: fileio_attach(283) -2
Jan  2 09:08:13 cluster1 ietd: Can't create a logical unit 2 1 1 Path=/dev/sdc,Type=fileio,ScsiId=default,ScsiSN=c21f969b,
What's going on over here? Thanks in advance
 
Old 01-02-2013, 08:02 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Ok.... apparently the "path" is not just any desired device I want it to be called once set up. From ietadm man page:

Code:
add a new logical unit with [lun] to specific target with [id]. The logical unit is offered to the initiators. [path] must be block device files (including LVM and RAID devices) or regular files.
So I created a regular file in my FS and then I reissued the command with the new path and it worked. But I can't see the device yet:

Code:
Jan  2 09:27:57 cluster1 iSCSILogicalUnit[3373]: DEBUG: Calling ietadm --op new --tid=1 --lun=1 --params Path=/usr/local/sanoswww,Type=fileio,ScsiId=sanwwwsanos,ScsiSN=151c9bde,
Jan  2 09:27:57 cluster1 iSCSILogicalUnit[3373]: DEBUG: Exit code 0
Jan  2 09:27:57 cluster1 iSCSILogicalUnit[3373]: DEBUG: Command output: ""
Sweet! But the san resource is not anywhere to be found if you ask me:

Code:
root@cluster1:/usr/lib/ocf# fdisk -lu

Disk /dev/sda: 10.5 GB, 10485760000 bytes
255 heads, 63 sectors/track, 1274 cylinders, total 20480000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008089e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2046    16623615     8310785    5  Extended
/dev/sda5            2048      999423      498688   82  Linux swap / Solaris
/dev/sda6         1001472    16623615     7811072   83  Linux
So, where's the logical unit?
 
Old 01-02-2013, 09:01 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
I know what's going on. ietadm (and iSCSITarget/iSCSILogicalUnit in pacemaker) are use to set up target/logical units on the server/san, not on the initiator/client. In other words, I'm not doing the right thing. I needed to setup a ocf:heartbeat:iscsi resourcein pacemaker.
 
  


Reply

Tags
ietadm, iscsi, pacemaker



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
where can i locate the config file containing DAEMONS=(blah blah blah) ? sneakyimp Linux - Newbie 5 02-16-2011 09:08 PM
When can access("blah", R_OK) succeed and open("blah", O_RDONLY) fail? cyent Programming 3 08-03-2010 09:01 PM
LXer: SCO boss to customers: 'Blah. Blah. Blah' LXer Syndicated Linux News 0 02-06-2009 10:10 AM
newbie issues....kernel panic: blah blah blah Rio Nishida Slackware 16 11-29-2002 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:41 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
Open Source Consulting | Domain Registration