gstanden / orabuntu-lxc

Developer and User Guide
https://gstanden.github.io/
GNU General Public License v3.0
46 stars 15 forks source link

SCST fixes needed on uekulele side #128

Closed gstanden closed 3 years ago

gstanden commented 5 years ago

SCST not configured to start on reboot in Oracle Linux (ueuklele)

[ubuntu@oracle76 scst-files]$ sudo service scst start Loading and configuring SCST [ OK ] [ubuntu@oracle76 scst-files]$ ls -l /dev/mapper total 0 crw-------. 1 root root 10, 236 Apr 8 11:09 control lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-home -> ../dm-2 lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-swap -> ../dm-1 [ubuntu@oracle76 scst-files]$ sudo scstadmin -list_groups Unknown option: list_groups [ubuntu@oracle76 scst-files]$ sudo scstadmin -list_group

Collecting current configuration: done.

Driver: copy_manager Target: copy_manager_tgt

Assigned LUNs:

LUN  Device         
--------------------
0    asm_data_103_00
1    asm_mgmt_103_00
2    asm_sysd_103_00

Driver: iscsi Target: iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle

Driver/target 'iscsi/iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle' has no associated LUNs.

Group: lxc1

Assigned LUNs:

LUN  Device         
--------------------
0    asm_sysd_103_00
1    asm_data_103_00
2    asm_mgmt_103_00

Assigned Initiators:

Initiator
-----------------------------------
iqn.1988-12.com.oracle:44d4e970cc27

All done. [ubuntu@oracle76 scst-files]$

Problem 2: Login to initiator not setup in /etc/network/openvswitch/strt_scst.sh files

[ubuntu@oracle76 scst-files]$ sudo iscsiadm --mode node --targetname iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle --portal 10.210.107.103 --login Logging in to [iface: default, target: iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle, portal: 10.210.107.103,3260] (multiple) Login to [iface: default, target: iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle, portal: 10.210.107.103,3260] successful. [ubuntu@oracle76 scst-files]$ sudo iscsiadm --mode node --targetname iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle --portal 10.211.107.103 --login Logging in to [iface: default, target: iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle, portal: 10.211.107.103,3260] (multiple) Login to [iface: default, target: iqn.2019-04.com.urdomain1:oracle76.urdomain1.com.san.asm.oracle, portal: 10.211.107.103,3260] successful. [ubuntu@oracle76 scst-files]$ ls -l /dev/mapper total 0 lrwxrwxrwx. 1 root root 7 Apr 8 11:14 asm_data_103_00 -> ../dm-4 lrwxrwxrwx. 1 root root 7 Apr 8 11:14 asm_mgmt_103_00 -> ../dm-5 lrwxrwxrwx. 1 root root 7 Apr 8 11:14 asm_sysd_103_00 -> ../dm-3 crw-------. 1 root root 10, 236 Apr 8 11:09 control lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-home -> ../dm-2 lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Apr 8 11:09 ol-swap -> ../dm-1 [ubuntu@oracle76 scst-files]$ ls -l /dev/lxc_luns total 0 brw-rw----. 1 grid asmadmin 252, 4 Apr 8 11:14 asm_data_103_00 brw-rw----. 1 grid asmadmin 252, 5 Apr 8 11:14 asm_mgmt_103_00 brw-rw----. 1 grid asmadmin 252, 3 Apr 8 11:14 asm_sysd_103_00 [ubuntu@oracle76 scst-files]$

Need to fix these (only on uekulele side - orabuntu side has these setup already)

gstanden commented 3 years ago

Done. SCST 3.5 in use now. Works on Oracle 6,7,8 and RedHat 6,7,8 and CentOS 6,7,8 and Fedora 22-33. And of course on Ubuntu 16.04 and higher.