Josh-D. S. Davis

Xaminmo / Omnimax / Max Omni / Mad Scientist / Midnight Shadow / Radiation Master

Previous Entry Share Next Entry
Openfiler FSCSI ref
Josh 201604 KWP
joshdavis

# https://forums.openfiler.com/viewtopic.php?id=1968
conary updateall
#conary update scst=openfiler.rpath.org@rpl:1-contrib --no-deps
#sctadmin - SCSI Target Admin - works on openfiler for FC target setup on QLA 2GB and 4GB HBAs
#gather WWPNs by doing a 'cat /sys/class/scsi_host/host6/device/fchost\:host6/port_name'
ls -l /proc/scsi_tgt/qla_isp # an indicator of whether target mode is enabled.
#there are special QLA_ISP drivers for SCST that you can get from the SCST site
cat /sys/class/scsi_host/host6/target_mode_enabled
vi /etc/scst.conf
#[HANDLER disk_fileio]
# DEVICE ,,
[Error: Irreparable invalid markup ('<write_through|read_only|o_direct|nv_cache|nullio>') in entry. Owner must fix manually. Raw contents below.]

<lj-cut>
# https://forums.openfiler.com/viewtopic.php?id=1968
conary updateall
#conary update scst=openfiler.rpath.org@rpl:1-contrib --no-deps
#sctadmin - SCSI Target Admin - works on openfiler for FC target setup on QLA 2GB and 4GB HBAs
#gather WWPNs by doing a 'cat /sys/class/scsi_host/host6/device/fchost\:host6/port_name'
ls -l /proc/scsi_tgt/qla_isp # an indicator of whether target mode is enabled.
#there are special QLA_ISP drivers for SCST that you can get from the SCST site
cat /sys/class/scsi_host/host6/target_mode_enabled
vi /etc/scst.conf
#[HANDLER disk_fileio]
# DEVICE <vname>,<path>,<WRITE_THROUGH|READ_ONLY|O_DIRECT|NV_CACHE|NULLIO>,<block size>
DEVICE stg-somefile,/storage/somefile,O_DIRECT,512

[HANDLER vdisk]
#DEVICE <vdisk name>,<device path>,<options>,<block size>
DEVICE fc0-30G-NuecmX,/dev/vg0/fc0-30G,WRITE_THROUGH,512
DEVICE fc2-488G-AYsmL7,/dev/vg0/fc2-488G,WRITE_THROUGH,512
DEVICE raid5,/dev/raid5/500gb3,BLOCKIO,512

[HANDLER vcdrom]
#DEVICE <vdisk name>,<device path>

[GROUP Default]
# This needs to be here for some switches and hosts.

[GROUP FC1-30G]
USER 10:00:00:00:c9:3f:00:00
USER 21:00:00:e0:8b:0e:00:00

[GROUP FC0-30G]
USER 10:00:00:00:c9:38:00:00
USER 10:00:00:00:c9:3f:00:00

[GROUP Macserver]
USER 20:00:00:e0:8b:80:2d:cc

[ASSIGNMENT FC0-30G]
DEVICE fc0-30G-NuecmP,0
DEVICE fc2-488G-AYsmL7,1

[ASSIGNMENT Macserver]
# DEVICE <device>,<vlun>
DEVICE stg-somefile,0
DEVICE raid5,1

[TARGETS enable]
HOST 21:00:00:e0:8b:12:00:00
HOST 21:01:00:e0:8b:32:00:00
HOST 20:00:00:e0:8b:0d:1a:cc

[TARGETS disable]
#HOST <wwn identifier>
################################################
echo "alias scsi_hostadapter qla2x00tgt" >> /etc/modprobe.conf
chkconfig scst on
service scst start
scstadmin -enable host6
scstadmin -forceconfig -config /etc/scst.conf
#In scst source tarball, somewhere in README file does mention about low performance in certain version of Windows, at least Windows 2000, because different cache alignment.

?

Log in

No account? Create an account