Linux Fiber Channel Host Setup Basic
Posted
by
Jim
on Server Fault
See other posts from Server Fault
or by Jim
Published on 2012-12-18T20:48:28Z
Indexed on
2012/12/18
23:04 UTC
Read the original article
Hit count: 388
I've been googling for about 4 hours now with no luck. I am trying to setup a Linux server running Oracle Server 6.3 as a Fiber Channel host. And then connect it to a Dell Compellent Fibre Channel Host contain a 500GB Volume.
The Oracle server itself contains two Brocade 815 FC HBAs. I've discovered their WWN(I think) via
cat /sys/class/fc_host/host1/port_name
0x100000051efc3d85
cat /sys/class/fc_host/host2/port_name
0x100000051efc3d9f
The next part is where I am at a loss. I've used iSCSI before...is FC the same deal where you have an initiator and a target? If so where do I specific that in linux?
I'm also new to Fiber Channel as a protocol, so i am unsure what is needed to make a transaction? WWN and port ID? Similar to IP:Port combination in the Ethernet world.
I've read alot regarding using systool, multipath, fc_transport commands, however none of these is recognized as a valid command from Oracle Server 6.3
Appreciate the guidance and assistance.
I installed sccsi-target-utils and can now run rescan-scsi-bus and sg_map -x.
rescan-scsi-bus.sh -l -w -r
Host adapter 0 (megaraid_sas) found.
Host adapter 1 ((null)) found.
Host adapter 2 ((null)) found.
Host adapter 3 (ata_piix) found.
Host adapter 4 (ata_piix) found.
Scanning SCSI subsystem for new devices
and remove devices that have disappeared
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15, LUNs 0 1 2 3 4 5 6 7
Scanning for device 0 2 0 0 ....
OLD: Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: DELL Model: PERC H700 Rev: 2.30
Type: Direct-Access ANSI SCSI revision: 05
Scanning for device 0 2 1 0 ...
OLD: Host: scsi0 Channel: 02 Id: 01 Lun: 00
Vendor: DELL Model: PERC H700 Rev: 2.30
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 1 for all SCSI target IDs, LUNs 0 1 2 3 4 5 6 7
Scanning for device 1 0 3 1 ...
OLD: Host: scsi1 Channel: 00 Id: 03 Lun: 01
Vendor: COMPELNT Model: Compellent Vol Rev: 0505
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 2 for all SCSI target IDs, LUNs 0 1 2 3 4 5 6 7
Scanning host 3 for all SCSI target IDs, LUNs 0 1 2 3 4 5 6 7
Scanning for device 3 0 0 0 ...
REM: Host: scsi3 Channel: 00 Id: 00 Lun: 00
DEL: Vendor: TEAC Model: DVD-ROM DV-28SW Rev: R.2A
Type: CD-ROM ANSI SCSI revision: 05
Scanning host 4 channels 0 for SCSI target IDs 0, LUNs 0 1 2 3 4 5 6 7
0 new device(s) found.
1 device(s) removed.
and
sg_map -x
/dev/sg0 0 0 32 0 13
/dev/sg1 0 2 0 0 0 /dev/sda
/dev/sg2 0 2 1 0 0 /dev/sdb
/dev/sg4 1 0 3 1 0 /dev/sdc
I'm not sure what this all means...
© Server Fault or respective owner