LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-09-2021, 09:05 AM   #1
FabianlPHD
LQ Newbie
 
Registered: May 2021
Posts: 3

Rep: Reputation: Disabled
Tape Drive over Fiber Channel with Emulex HBA


Hi!



My problem is that i don't get my Tape Drives & Library show up under Proxmox(Debian) over Fiber Channel.

Under Windows i installed OCManager from Emulex and everything showed up in Device Manager, easy, but under Linux i don't know.



My HBA(emulex lpe11002) is recognized and show up:

Code:
root@HPE-DL-02:~# ls -l /sys/class/fc_host

total 0

lrwxrwxrwx 1 root root 0 May  8 10:46 host0 -> ../../devices/pci0000:00/0000:00:03.0/0000:10:00.0/host0/fc_host/host0

lrwxrwxrwx 1 root root 0 May  8 10:46 host2 -> ../../devices/pci0000:00/0000:00:03.0/0000:10:00.1/host2/fc_host/host2
now i try get things running:

Code:
echo "1" > /sys/class/fc_host/host2/issue_lip

echo "- - -" > /sys/class/scsi_host/host2/scan

(Yes host2 is Online)
But no device from this HBA is showing up under scsi:

Code:
root@HPE-DL-02:~# cat /proc/scsi/scsi

Attached devices:

Host: scsi1 Channel: 00 Id: 00 Lun: 00

  Vendor: HP       Model: P410i            Rev: 6.40

  Type:   RAID                             ANSI  SCSI revision: 05

Host: scsi1 Channel: 01 Id: 00 Lun: 00

  Vendor: HP       Model: LOGICAL VOLUME   Rev: 6.40

  Type:   Direct-Access                    ANSI  SCSI revision: 05

Host: scsi1 Channel: 01 Id: 00 Lun: 01

  Vendor: HP       Model: LOGICAL VOLUME   Rev: 6.40

  Type:   Direct-Access                    ANSI  SCSI revision: 05

Host: scsi1 Channel: 01 Id: 00 Lun: 02

  Vendor: HP       Model: LOGICAL VOLUME   Rev: 6.40

  Type:   Direct-Access                    ANSI  SCSI revision: 05
Now what i have to do to get it working?

I can't find information about tape drives over Fiber Channel... Maybe they are handled different to normal Storage?

Thanks for you help!!!
 
Old 05-10-2021, 09:46 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,269

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Tape is a whole different profile than disk. Different SCSI commands, variable block sizes, etc. issue_lip will find remote ports in loop mode. Is that how you're connected?
 
Old 05-10-2021, 11:01 AM   #3
FabianlPHD
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
I don't know. It's directly connected to the HBA without Switch.
I'm new in Fiber Channel so i don't know so much about it.

Thanks
 
Old 05-10-2021, 11:53 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,275

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
There's one issue I see here is Asynchronous vs Synchronous systems

Tape I would see as Asynchrouous - bit rates differ, tapes can stretch or the drive can slow, then speed up again. Now all that sort of stuff got adapted for. Fibre channel I would see as Synchronous, not suited to the variables inherent in tape at all. So maybe you could do
Tape --> file, followed by file --> fibre channel easier that Tape --> fibre channel. Bit rates in fibreoptic are inclined to be known.
 
Old 05-11-2021, 10:55 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,269

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Code:
grep "" /sys/class/fc_host/host2/*
should list the interesting things about the HBA, including the connection topology.
 
Old 05-18-2021, 10:42 AM   #6
FabianlPHD
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi guys! Sorry i was in hospital, but now i can replay.

Sooo....
Code:
root@HPE-DL-02:~# grep "" /sys/class/fc_host/host2/*
/sys/class/fc_host/host2/active_fc4s:0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
grep: /sys/class/fc_host/host2/device: Is a directory
/sys/class/fc_host/host2/dev_loss_tmo:30
/sys/class/fc_host/host2/fabric_name:0x0
grep: /sys/class/fc_host/host2/issue_lip: Permission denied
/sys/class/fc_host/host2/maxframe_size:2048 bytes
/sys/class/fc_host/host2/max_npiv_vports:127
/sys/class/fc_host/host2/node_name:0x20000000c9a9ac5d
/sys/class/fc_host/host2/npiv_vports_inuse:0
/sys/class/fc_host/host2/port_id:0x000001
/sys/class/fc_host/host2/port_name:0x10000000c9a9ac5d
/sys/class/fc_host/host2/port_state:Online
/sys/class/fc_host/host2/port_type:LPort (private loop)
grep: /sys/class/fc_host/host2/power: Is a directory
/sys/class/fc_host/host2/speed:4 Gbit
grep: /sys/class/fc_host/host2/statistics: Is a directory
grep: /sys/class/fc_host/host2/subsystem: Is a directory
/sys/class/fc_host/host2/supported_classes:Class 3
/sys/class/fc_host/host2/supported_fc4s:0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
/sys/class/fc_host/host2/supported_speeds:1 Gbit, 2 Gbit, 4 Gbit
/sys/class/fc_host/host2/symbolic_name:Emulex LPe11002-M4 FV2.72A2 DV12.6.0.4 HN:HPE-DL-02 OS:Linux
/sys/class/fc_host/host2/tgtid_bind_type:wwpn (World Wide Port Name)
grep: /sys/class/fc_host/host2/vport_create: Permission denied
grep: /sys/class/fc_host/host2/vport_delete: Permission denied
The Tape Drives are connected over a Tape Library, the Management Buffers the Data so i don't think that's a problem. It's build to work this way.

Thanks.
 
  


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
[SOLVED] Fibre channel HBA, HBA port, and multipath question ilesterg Linux - Hardware 3 01-30-2017 12:22 PM
LXer: How To Create A Fiber Channel SAN Using SCST With QLogic HBA On Linux Debian 6 LXer Syndicated Linux News 0 07-01-2013 01:50 PM
difference between Fibre Channel Controller & Fibre Channel Adapter & HBA hahacc Linux - Hardware 1 02-06-2012 04:52 PM
Can not see LUNs attached to FA's above 255 on EMC DMX using RHEL5.1 and emulex HBA'a dfezz1 Linux - Enterprise 1 04-17-2008 10:42 AM
AIX 5.1 Emulex HBA drivers jamesps AIX 4 02-01-2005 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:10 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