stable

python-configshell-1.1.fb25-2.fc28, python-rtslib-2.1.fb69-1.fc28, & 1 more

FEDORA-2018-a2897b0020 created by grover 7 years ago for Fedora 28

update to new versions

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf upgrade --refresh --advisory=FEDORA-2018-a2897b0020

This update has been submitted for testing by grover.

7 years ago

This update has been pushed to testing.

7 years ago

This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes

7 years ago
User Icon pkalever commented & provided feedback 7 years ago
karma

Hello!

I took the chance to test this packages today. And they work like a pro :-)

Env details:

[root@localhost ~]# uname -a Linux localhost.localdomain 4.18.5-200.fc28.x86_64 #1 SMP Tue Sep 4 15:56:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# cat /etc/redhat-release Fedora release 28 (Twenty Eight)

[root@localhost ~]# rpm -qa | grep -e targetcli -e rtslib -e configshell -e tcmu python3-configshell-1.1.fb25-2.fc28.noarch python3-rtslib-2.1.fb69-1.fc28.noarch targetcli-2.1.fb49-1.fc28.noarch

Script with commands:

[root@localhost ~]# cat exec.sh targetcli /backstores/user:glfs create name=block1 size=1073741824 cfgstring=sample@192.168.124.224/block-store/fd1feff9-2282-424a-a182-e411822f28ba wwn=fd1feff9-2282-424a-a182-e411822f28ba targetcli /backstores/user:glfs/block1 set attribute cmd_time_out=130 targetcli /backstores/user:glfs/block1/alua create name=glfs_tg_pt_gp_ao tag=1 targetcli /backstores/user:glfs/block1/alua create name=glfs_tg_pt_gp_ano tag=2 targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ao set alua alua_access_type=1 targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ano set alua alua_access_type=1 targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ao set alua alua_access_state=0 targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ano set alua alua_access_state=1 targetcli /iscsi create iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba create tpg2 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba create tpg3 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/luns create /backstores/user:glfs/block1 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ao targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/portals create 192.168.124.224 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 enable targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 set attribute authentication=1 generate_node_acls=1 demo_mode_write_protect=0 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/luns create /backstores/user:glfs/block1 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ano targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/portals create 192.168.124.17 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2 set attribute tpg_enabled_sendtargets=0 authentication=1 generate_node_acls=1 demo_mode_write_protect=0 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/luns create /backstores/user:glfs/block1 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ano targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/portals create 192.168.124.159 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3 set attribute tpg_enabled_sendtargets=0 authentication=1 generate_node_acls=1 demo_mode_write_protect=0 targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576 targetcli /backstores/user:glfs/block1 saveconfig

Commands output:

[root@localhost ~]# ./exec.sh
Created user-backed storage object block1 size 1073741824.
Parameter cmd_time_out is now '130'.
Created ALUA TPG glfs_tg_pt_gp_ao.
Created ALUA TPG glfs_tg_pt_gp_ano.
Parameter alua_access_type is now '1'.
Parameter alua_access_type is now '1'.
Parameter alua_access_state is now '0'.
Parameter alua_access_state is now '1'.
Created target iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba.
Created TPG 1.
Created TPG 2.
Created TPG 3.
Created LUN 0.
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ao'.
Using default IP port 3260
Created network portal 192.168.124.224:3260.
The TPGT has been enabled.
Parameter authentication is now '1'.
Parameter generate_node_acls is now '1'.
Parameter demo_mode_write_protect is now '0'.
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.
Created LUN 0.
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ano'.
Using default IP port 3260
Created network portal 192.168.124.17:3260.
Parameter tpg_enabled_sendtargets is now '0'.
Parameter authentication is now '1'.
Parameter generate_node_acls is now '1'.
Parameter demo_mode_write_protect is now '0'.
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.
Created LUN 0.
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ano'.
Using default IP port 3260
Created network portal 192.168.124.159:3260.
Parameter tpg_enabled_sendtargets is now '0'.
Parameter authentication is now '1'.
Parameter generate_node_acls is now '1'.
Parameter demo_mode_write_protect is now '0'.
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.
Storage Object 'user:block1' config saved to /etc/target/saveconfig.json.

Targetcli ls output:

[root@localhost ~]# targetcli ls o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- block .................................................................................................. [Storage Objects: 0] | o- fileio ................................................................................................. [Storage Objects: 0] | o- pscsi .................................................................................................. [Storage Objects: 0] | o- ramdisk ................................................................................................ [Storage Objects: 0] | o- user:glfs .............................................................................................. [Storage Objects: 1] | | o- block1 ....................... [sample@192.168.124.224/block-store/fd1feff9-2282-424a-a182-e411822f28ba (1.0GiB) activated] | | o- alua ................................................................................................... [ALUA Groups: 3] | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized] | | o- glfs_tg_pt_gp_ano .................................................................. [ALUA state: Active/non-optimized] | | o- glfs_tg_pt_gp_ao ....................................................................... [ALUA state: Active/optimized] | o- user:qcow .............................................................................................. [Storage Objects: 0] o- iscsi ............................................................................................................ [Targets: 1] | o- iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba ................................................ [TPGs: 3] | o- tpg1 ..................................................................................... [gen-acls, tpg-auth, 1-way auth] | | o- acls .......................................................................................................... [ACLs: 0] | | o- luns .......................................................................................................... [LUNs: 1] | | | o- lun0 ................................................................................. [user/block1 (glfs_tg_pt_gp_ao)] | | o- portals .................................................................................................... [Portals: 1] | | o- 192.168.124.224:3260 ............................................................................................. [OK] | o- tpg2 ........................................................................................................... [disabled] | | o- acls .......................................................................................................... [ACLs: 0] | | o- luns .......................................................................................................... [LUNs: 1] | | | o- lun0 ................................................................................ [user/block1 (glfs_tg_pt_gp_ano)] | | o- portals .................................................................................................... [Portals: 1] | | o- 192.168.124.17:3260 .............................................................................................. [OK] | o- tpg3 ........................................................................................................... [disabled] | o- acls .......................................................................................................... [ACLs: 0] | o- luns .......................................................................................................... [LUNs: 1] | | o- lun0 ................................................................................ [user/block1 (glfs_tg_pt_gp_ano)] | o- portals .................................................................................................... [Portals: 1] | o- 192.168.124.159:3260 ............................................................................................. [OK] o- loopback ......................................................................................................... [Targets: 0] o- vhost ............................................................................................................ [Targets: 0] [root@localhost ~]#

On the initiator side:

[root@localhost ~]# iscsiadm -m discovery -t st -p 192.168.124.224
192.168.124.224:3260,1 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba
192.168.124.17:3260,2 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba
192.168.124.159:3260,3 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba

[root@localhost ~]# iscsiadm -m node -T "iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba" -o update -n node.session.auth.authmethod -v CHAP -n node.session.auth.username -v fd1feff9-2282-424a -a182-e411822f28ba -n node.session.auth.password -v dd4d035f-49c4-446b-86a8-05493a801576

[root@localhost ~]# iscsiadm -m node -T iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba -l
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.224,3260] (multiple)
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.17,3260] (multiple)
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.159,3260] (multiple)
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.224,3260] successful.
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.17,3260] successful.
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.159,3260] successful.

[root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 39G 0 part
├─fedora-root 253:0 0 15G 0 lvm /
└─fedora-swap 253:1 0 4G 0 lvm [SWAP]
sdb 8:16 0 1G 0 disk
└─mpatha 253:2 0 1G 0 mpath
sdc 8:32 0 1G 0 disk
└─mpatha 253:2 0 1G 0 mpath
sdd 8:48 0 1G 0 disk
└─mpatha 253:2 0 1G 0 mpath
sr0 11:0 1 1024M 0 rom

[root@localhost ~]# mkfs.xfs /dev/mapper/mpatha
meta-data=/dev/mapper/mpatha isize=512 agcount=4, agsize=65536 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=0, rmapbt=0, reflink=0
data = bsize=4096 blocks=262144, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0

[root@localhost ~]# mount /dev/mapper/mpatha /mnt/

[root@localhost ~]# cd /mnt/

[root@localhost mnt]# touch {1..100}

[root@localhost mnt]# ls
1 12 16 2 23 27 30 34 38 41 45 49 52 56 6 63 67 70 74 78 81 85 89 92 96
10 13 17 20 24 28 31 35 39 42 46 5 53 57 60 64 68 71 75 79 82 86 9 93 97
100 14 18 21 25 29 32 36 4 43 47 50 54 58 61 65 69 72 76 8 83 87 90 94 98
11 15 19 22 26 3 33 37 40 44 48 51 55 59 62 66 7 73 77 80 84 88 91 95 99
[root@localhost mnt]#

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Thanks Andy & Maurizio!

Cheers!

Prasanna

User Icon pkalever commented & provided feedback 7 years ago
karma

Hello!

I took the chance to test this packages today. And they work like a pro :-)

Env details:

[root@localhost ~]# uname -a
Linux localhost.localdomain 4.18.5-200.fc28.x86_64 #1 SMP Tue Sep 4 15:56:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# cat /etc/redhat-release 
Fedora release 28 (Twenty Eight)

[root@localhost ~]# rpm -qa | grep -e targetcli -e rtslib -e configshell -e tcmu
python3-configshell-1.1.fb25-2.fc28.noarch
python3-rtslib-2.1.fb69-1.fc28.noarch
targetcli-2.1.fb49-1.fc28.noarch

Script with commands:

[root@localhost ~]# cat exec.sh 
targetcli /backstores/user:glfs create name=block1 size=1073741824 cfgstring=sample@192.168.124.224/block-store/fd1feff9-2282-424a-a182-e411822f28ba wwn=fd1feff9-2282-424a-a182-e411822f28ba
targetcli /backstores/user:glfs/block1 set attribute cmd_time_out=130
targetcli /backstores/user:glfs/block1/alua create name=glfs_tg_pt_gp_ao tag=1
targetcli /backstores/user:glfs/block1/alua create name=glfs_tg_pt_gp_ano tag=2
targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ao set alua alua_access_type=1
targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ano set alua alua_access_type=1
targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ao set alua alua_access_state=0
targetcli /backstores/user:glfs/block1/alua/glfs_tg_pt_gp_ano set alua alua_access_state=1
targetcli /iscsi create iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba create tpg2
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba create tpg3
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/luns create /backstores/user:glfs/block1
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ao
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1/portals create 192.168.124.224
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 enable
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 set attribute authentication=1 generate_node_acls=1 demo_mode_write_protect=0
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg1 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/luns create /backstores/user:glfs/block1
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ano
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2/portals create 192.168.124.17
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2 set attribute tpg_enabled_sendtargets=0 authentication=1 generate_node_acls=1 demo_mode_write_protect=0
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg2 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/luns create /backstores/user:glfs/block1
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/luns/lun0 set alua alua_tg_pt_gp_name=glfs_tg_pt_gp_ano
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3/portals create 192.168.124.159
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3 set attribute tpg_enabled_sendtargets=0 authentication=1 generate_node_acls=1 demo_mode_write_protect=0
targetcli /iscsi/iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba/tpg3 set auth userid=fd1feff9-2282-424a-a182-e411822f28ba password=dd4d035f-49c4-446b-86a8-05493a801576
targetcli /backstores/user:glfs/block1 saveconfig

Commands output:

[root@localhost ~]# ./exec.sh                                                                                                                                                                                      
Created user-backed storage object block1 size 1073741824.                                               
Parameter cmd_time_out is now '130'.                
Created ALUA TPG glfs_tg_pt_gp_ao.                  
Created ALUA TPG glfs_tg_pt_gp_ano.                 
Parameter alua_access_type is now '1'.              
Parameter alua_access_type is now '1'.              
Parameter alua_access_state is now '0'.             
Parameter alua_access_state is now '1'.             
Created target iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba.                       
Created TPG 1.                                      
Created TPG 2.                                      
Created TPG 3.                                      
Created LUN 0.                                      
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ao'.                                                  
Using default IP port 3260                          
Created network portal 192.168.124.224:3260.        
The TPGT has been enabled.                          
Parameter authentication is now '1'.                
Parameter generate_node_acls is now '1'.            
Parameter demo_mode_write_protect is now '0'.       
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.                                          
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.                                        
Created LUN 0.                                      
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ano'.                                                 
Using default IP port 3260                          
Created network portal 192.168.124.17:3260.         
Parameter tpg_enabled_sendtargets is now '0'.       
Parameter authentication is now '1'.                
Parameter generate_node_acls is now '1'.            
Parameter demo_mode_write_protect is now '0'.       
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.                                          
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.                                        
Created LUN 0.                                      
Parameter alua_tg_pt_gp_name is now 'glfs_tg_pt_gp_ano'.                                                 
Using default IP port 3260                          
Created network portal 192.168.124.159:3260.        
Parameter tpg_enabled_sendtargets is now '0'.       
Parameter authentication is now '1'.                
Parameter generate_node_acls is now '1'.            
Parameter demo_mode_write_protect is now '0'.       
Parameter userid is now 'fd1feff9-2282-424a-a182-e411822f28ba'.                                          
Parameter password is now 'dd4d035f-49c4-446b-86a8-05493a801576'.                                        
Storage Object 'user:block1' config saved to /etc/target/saveconfig.json.  

Targetcli ls output:

[root@localhost ~]# targetcli ls
o- / ......................................................................................................................... [...]
  o- backstores .............................................................................................................. [...]
  | o- block .................................................................................................. [Storage Objects: 0]
  | o- fileio ................................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................................. [Storage Objects: 0]
  | o- ramdisk ................................................................................................ [Storage Objects: 0]
  | o- user:glfs .............................................................................................. [Storage Objects: 1]
  | | o- block1 ....................... [sample@192.168.124.224/block-store/fd1feff9-2282-424a-a182-e411822f28ba (1.0GiB) activated]
  | |   o- alua ................................................................................................... [ALUA Groups: 3]
  | |     o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
  | |     o- glfs_tg_pt_gp_ano .................................................................. [ALUA state: Active/non-optimized]
  | |     o- glfs_tg_pt_gp_ao ....................................................................... [ALUA state: Active/optimized]
  | o- user:qcow .............................................................................................. [Storage Objects: 0]
  o- iscsi ............................................................................................................ [Targets: 1]
  | o- iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba ................................................ [TPGs: 3]
  |   o- tpg1 ..................................................................................... [gen-acls, tpg-auth, 1-way auth]
  |   | o- acls .......................................................................................................... [ACLs: 0]
  |   | o- luns .......................................................................................................... [LUNs: 1]
  |   | | o- lun0 ................................................................................. [user/block1 (glfs_tg_pt_gp_ao)]
  |   | o- portals .................................................................................................... [Portals: 1]
  |   |   o- 192.168.124.224:3260 ............................................................................................. [OK]
  |   o- tpg2 ........................................................................................................... [disabled]
  |   | o- acls .......................................................................................................... [ACLs: 0]
  |   | o- luns .......................................................................................................... [LUNs: 1]
  |   | | o- lun0 ................................................................................ [user/block1 (glfs_tg_pt_gp_ano)]
  |   | o- portals .................................................................................................... [Portals: 1]
  |   |   o- 192.168.124.17:3260 .............................................................................................. [OK]
  |   o- tpg3 ........................................................................................................... [disabled]
  |     o- acls .......................................................................................................... [ACLs: 0]
  |     o- luns .......................................................................................................... [LUNs: 1]
  |     | o- lun0 ................................................................................ [user/block1 (glfs_tg_pt_gp_ano)]
  |     o- portals .................................................................................................... [Portals: 1]
  |       o- 192.168.124.159:3260 ............................................................................................. [OK]
  o- loopback ......................................................................................................... [Targets: 0]
  o- vhost ............................................................................................................ [Targets: 0]
[root@localhost ~]# 

On the initiator side:

[root@localhost ~]# iscsiadm -m discovery -t st -p 192.168.124.224                                       
192.168.124.224:3260,1 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba                
192.168.124.17:3260,2 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba                 
192.168.124.159:3260,3 iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba                

[root@localhost ~]# iscsiadm -m node -T "iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba" -o update -n node.session.auth.authmethod -v CHAP -n node.session.auth.username -v fd1feff9-2282-424a 
-a182-e411822f28ba -n node.session.auth.password -v dd4d035f-49c4-446b-86a8-05493a801576                 

[root@localhost ~]# iscsiadm -m node -T iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba -l                                                                                                      
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.224,3260] (multiple)                                                                
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.17,3260] (multiple)                                                                 
Logging in to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.159,3260] (multiple)                                                                
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.224,3260] successful.                                                                    
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.17,3260] successful.                                                                     
Login to [iface: default, target: iqn.2016-12.org.gluster-block:fd1feff9-2282-424a-a182-e411822f28ba, portal: 192.168.124.159,3260] successful.                                                                    

[root@localhost ~]# lsblk 
NAME            MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT                                                     
sda               8:0    0   40G  0 disk            
├─sda1            8:1    0    1G  0 part  /boot     
└─sda2            8:2    0   39G  0 part            
  ├─fedora-root 253:0    0   15G  0 lvm   /         
  └─fedora-swap 253:1    0    4G  0 lvm   [SWAP]    
sdb               8:16   0    1G  0 disk            
└─mpatha        253:2    0    1G  0 mpath           
sdc               8:32   0    1G  0 disk            
└─mpatha        253:2    0    1G  0 mpath           
sdd               8:48   0    1G  0 disk            
└─mpatha        253:2    0    1G  0 mpath           
sr0              11:0    1 1024M  0 rom             

[root@localhost ~]# mkfs.xfs /dev/mapper/mpatha     
meta-data=/dev/mapper/mpatha     isize=512    agcount=4, agsize=65536 blks                               
         =                       sectsz=512   attr=2, projid32bit=1                                      
         =                       crc=1        finobt=1, sparse=0, rmapbt=0, reflink=0                    
data     =                       bsize=4096   blocks=262144, imaxpct=25                                  
         =                       sunit=0      swidth=0 blks                                              
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1                                         
log      =internal log           bsize=4096   blocks=2560, version=2                                     
         =                       sectsz=512   sunit=0 blks, lazy-count=1                                 
realtime =none                   extsz=4096   blocks=0, rtextents=0               

[root@localhost ~]# mount /dev/mapper/mpatha /mnt/  

[root@localhost ~]# cd /mnt/                        

[root@localhost mnt]# touch {1..100}                

[root@localhost mnt]# ls  
1    12  16  2   23  27  30  34  38  41  45  49  52  56  6   63  67  70  74  78  81  85  89  92  96      
10   13  17  20  24  28  31  35  39  42  46  5   53  57  60  64  68  71  75  79  82  86  9   93  97      
100  14  18  21  25  29  32  36  4   43  47  50  54  58  61  65  69  72  76  8   83  87  90  94  98      
11   15  19  22  26  3   33  37  40  44  48  51  55  59  62  66  7   73  77  80  84  88  91  95  99      
[root@localhost mnt]#

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Thanks Andy & Maurizio!

Cheers! ~ Prasanna

User Icon xiubli commented & provided feedback 7 years ago
karma

Test this packages and works for me.

Thanks.

User Icon amarts commented & provided feedback 7 years ago
karma

Tested and works :-)

This update has been submitted for batched by bodhi.

7 years ago

This update has been submitted for stable by bodhi.

7 years ago

This update has been pushed to stable.

7 years ago

Please log in to add feedback.

Metadata
Type
enhancement
Karma
3
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
disabled
Dates
submitted
7 years ago
in testing
7 years ago
in stable
7 years ago

Automated Test Results