[Bug 1409904] Re: Needed patches for InfiniBand Support: Flow Steering and Offload Support + Fixes
Rafael David Tinoco
rafael.tinoco at canonical.com
Thu Sep 3 02:07:07 UTC 2015
Verified TGT iSER support:
Linux iserserver.main 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Linux iserclient.main 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
### SERVER
root at iserserver:~# dd if=/dev/zero of=/disks/lunit1 bs=1M count=1024 oflag=direct
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.3035 s, 104 MB/s
root at iserserver:~# tgt-setup-lun -n lunit1 -d /disks/lunit1 -t iser
Using transport: iser
Creating new target (name=iqn.2001-04.com.iserserver-lunit1, tid=1)
Adding a logical unit (/disks/lunit1) to target, tid=1
Accepting connections from all initiators
root at iserserver:~# ifconfig ib0
ib0 Link encap:UNSPEC HWaddr 80-00-05-8A-FE-80-00-00-00-00-00-00-00-00-00-00
inet addr:172.16.0.21 Bcast:172.16.0.127 Mask:255.255.255.128
### CLIENT
inaddy at iserclient:~$ sudo apt-get install open-iscsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
open-iscsi
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 268 kB of archives.
After this operation, 2,221 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main open-iscsi amd64 2.0.873-3ubuntu9 [268 kB]
Fetched 268 kB in 0s (466 kB/s)
Selecting previously unselected package open-iscsi.
(Reading database ... 80686 files and directories currently installed.)
Preparing to unpack .../open-iscsi_2.0.873-3ubuntu9_amd64.deb ...
Unpacking open-iscsi (2.0.873-3ubuntu9) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up open-iscsi (2.0.873-3ubuntu9) ...
Processing triggers for ureadahead (0.100.0-16) ...
inaddy at iserclient:~$ sudo su -
root at iserclient:~# update-rc.d -f open-iscsi remove
Removing any system startup links for /etc/init.d/open-iscsi ...
/etc/rc0.d/K81open-iscsi
/etc/rc1.d/K81open-iscsi
/etc/rc6.d/K81open-iscsi
/etc/rcS.d/S45open-iscsi
root at iserclient:~# service open-iscsi stop
* Unmounting iscsi-backed filesystems [ OK ]
* Disconnecting iSCSI targets [ OK ]
* Stopping iSCSI initiator service [ OK ]
root at iserclient:~# service open-iscsi start
* Starting iSCSI initiator service iscsid [ OK ]
* Setting up iSCSI targets
iscsiadm: No records found
[ OK ]
* Mounting network filesystems [ OK ]
root at iserclient:~# ifconfig bi0
bi0: error fetching interface information: Device not found
root at iserclient:~# ifconfig ib0
ib0 Link encap:UNSPEC HWaddr 80-00-05-8B-FE-80-00-00-00-00-00-00-00-00-00-00
inet addr:172.16.0.22 Bcast:172.16.0.127 Mask:255.255.255.128
inet6 addr: fe80::214:500:0:85/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:2044 Metric:1
RX packets:3960620 errors:0 dropped:0 overruns:0 frame:0
TX packets:1107686 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:256
RX bytes:7078431089 (7.0 GB) TX bytes:62030601 (62.0 MB)
root at iserclient:~# iscsiadm -m discovery --op=show --type sendtargets --portal 172.16.0.21 -I iser
172.16.0.21:3260,1 iqn.2001-04.com.iserserver-lunit1
root at iserclient:~# iscsiadm -m discovery --op=new --op=del --type sendtargets --portal 172.16.0.21 -I iser
172.16.0.21:3260,1 iqn.2001-04.com.iserserver-lunit1
root at iserclient:~# iscsiadm -m node -l
Logging in to [iface: iser, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260] (multiple)
Login to [iface: iser, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260] successful.
root at iserclient:~# dmesg | tail -3
[17385.747524] sd 4:0:0:1: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[17385.751051] sda: unknown partition table
[17385.752130] sd 4:0:0:1: [sda] Attached SCSI disk
root at iserclient:~# dd if=/dev/zero of=/dev/sda bs=1M count=1024 oflag=direct
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 1.8081 s, 594 MB/s
root at iserclient:~# service open-iscsi stop
* Unmounting iscsi-backed filesystems [ OK ]
* Disconnecting iSCSI targets
Logging out of session [sid: 3, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260]
Logout of [sid: 3, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260] successful.
[ OK ]
* Stopping iSCSI initiator service [ OK ]
root at iserclient:~#
root at iserclient:~# service open-iscsi start
* Starting iSCSI initiator service iscsid [ OK ]
* Setting up iSCSI targets
iscsiadm: No records found
[ OK ]
* Mounting network filesystems [ OK ]
root at iserclient:~# ls -lah /dev/sd*
ls: cannot access /dev/sd*: No such file or directory
root at iserclient:~# iscsiadm -m node -l
Logging in to [iface: iser, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260] (multiple)
Login to [iface: iser, target: iqn.2001-04.com.iserserver-lunit1, portal: 172.16.0.21,3260] successful.
root at iserclient:~# dd if=/dev/zero of=/dev/sda bs=1M count=1024 oflag=direct
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 1.52628 s, 704 MB/s
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libibverbs in Ubuntu.
https://bugs.launchpad.net/bugs/1409904
Title:
Needed patches for InfiniBand Support: Flow Steering and Offload
Support + Fixes
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/corosync/+bug/1409904/+subscriptions
More information about the Ubuntu-server-bugs
mailing list