Skip to content

Instantly share code, notes, and snippets.

@inntran
Created November 21, 2020 14:16
Show Gist options
  • Save inntran/d4c29744a1ae513ff909465959d2c0a5 to your computer and use it in GitHub Desktop.
Save inntran/d4c29744a1ae513ff909465959d2c0a5 to your computer and use it in GitHub Desktop.
Enable qla2xxx Linux target support on Oracle Linux 8

The RHEL8 offcial kernel and Oracle RHCK kernel have removed FC target support of QLogic HBAs. But Oracle's UEK kernel still has relevant kernel modules. Userland tools like targetcli depends on python3-rtslib, qla2xxx support is implemented but commented out. Commands below would unmask qla2xxx support, so it will show up in targetcli's ls output.

sed -i s'/^#    "qla2xxx"/    "qla2xxx"/' /usr/lib/python3.6/site-packages/rtslib/fabric.py
sed -i s'/^#    "qla2xxx"/    "qla2xxx"/' /usr/lib/python3.6/site-packages/rtslib_fb/fabric.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment