As the server's IO starts to be slightly inadequate, a QLogic FC card needs to be installed to increase server and storage performance. This article describes the example
Where Openfiler 2.99 enables FC and creates target. (Note: Please replace the characters in <>)
1.unmap a volume, this step can be done through the Openfiler Web interface.
2. Enable FC Target in the service of the Web interface
3. Run the following command to enable Vdisk_fileio and Vdisk_blockio
| The code is as follows |
Copy Code |
Modprobe Scst_disk
Modprobe Scst_vdisk
Modprobe qla2x00tgt
Modprobe Scst_vdisk
Modprobe Scst_user
Modprobe Scst_modisk
Modprobe Scst_processor
Modprobe Scst_raid
Modprobe Scst_tape
Modprobe Scst_cdrom
Modprobe Scst_changer
Modprobe ib_srpt
|
4. Create a SCST device
| The code is as follows |
Copy Code |
|
Scstadmin-open_dev <device-name>-handler <vdisk_fileio or vdisk_blockio>-attributes
Filename=<path of Logical volume> |
5. Create a security group for the server
| The code is as follows |
Copy Code |
|
# Add Group
Scstadmin-add_group <group-name>-driver qla2x00t-target <onboard FC card wwn>
# Assign server FC to security group
Scstadmin-add_init <server wwn>-driver qla2x00t-target <onboard FC card wwn>-group
<group-name> |
6. Assigning virtual disks to security groups and LUNs
| The code is as follows |
Copy Code |
|
Scstadmin-add_lun 0-driver qla2x00t-target <onboard FC card wwn>-group <group-name>-
Device <device-name> |
7. Save the actions you just made to the config file
| The code is as follows |
Copy Code |
Scstadmin-write_config/etc/scst.conf
|
After saving, the following information should be kept in the scst.conf:
| The code is as follows |
Copy Code |
|
HANDLER Vdisk_fileio {
DEVICE <device-name> {
t10_dev_id "Fc_vol 3d61d0df"
USN 3D61D0DF
Filename/dev/group_1/logical_volumn_1
}
}
Target_driver qla2x00t {
TARGET <onboard FC Wwn 1> {
REL_TGT_ID 1
Enabled 0
}
TARGET <onboard FC Wwn 2> {
REL_TGT_ID 2
Enabled 1
GROUP <group-name> {
LUN 0 <device-name>
Initiator <server FC Wwn>
}
}
}
|
In fact, this configuration file can be modified at will, as needed, you can run the following command to make it effective
| The code is as follows |
Copy Code |
|
Scstadmin-config/etc/scst.conf |