From owner-freebsd-bugs@freebsd.org Tue Nov 17 22:01:06 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9956A3161D for ; Tue, 17 Nov 2015 22:01:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF380104C for ; Tue, 17 Nov 2015 22:01:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAHM15TC090422 for ; Tue, 17 Nov 2015 22:01:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204646] 10.2 iSCSI backed zpool shows imporper warnings about non-native block sizes that 10.1 doesn't show Date: Tue, 17 Nov 2015 22:01:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: chris@acsi.ca X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2015 22:01:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204646 Bug ID: 204646 Summary: 10.2 iSCSI backed zpool shows imporper warnings about non-native block sizes that 10.1 doesn't show Product: Base System Version: 10.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: chris@acsi.ca This is similar to Bug 197513, but that is a 9.3 system. Consider this scenario: Virtual FreeBSD Machine Initiator, with a zpool created out of iSCSI disks. Physical FreeBSD Machine Target, with a zpool holding a sparse file that is the target for the iSCSI disk. - The 10.2 Machines are 10.2-p7 RELEASE, updated via freebsd-update, no custom. - The 10.1 Machine are 10.1-p24 RELEASE, updated via freebsd-update, no custom. - iSCSI is all CAM iSCSI, not the old istgt platform. - The iSCSI Target is a sparse file, stored on a zpool (not a vdev Target) The target machine is the same physical machine, with the same zpools - I either boot 10.1 or 10.2 for testing, and use the same zpool/disks to ensure nothing is changing. If I have a 10.2 iSCSI Initiator (client) connected to a 10.2 iSCSI Target, I get eroneous warnings. If I have a 10.1 iSCSI Initiator (client) connected to a 10.1 iSCSI Target, I don't get the warnings. On the iSCSI Target, the file that backs the iSCSI disk is stored in a zpool that has a recordsize=64k set. It's something in the CAM iSCSI Target code that is reporting the zfs recordsize as the sector size. If you use a 10.1 iSCSI Initiator connected to a 10.2 iSCSI Target, or 10.1 iSCSI Target, this is what you see on the Initiator: #zpool status pool: iscsi-nfs state: ONLINE scan: scrub repaired 0 in 0h0m with 0 errors on Tue Nov 17 15:25:51 2015 config: NAME STATE READ WRITE CKSUM iscsi-nfs ONLINE 0 0 0 diskid/DISK-MYSERIAL%20%20%201 ONLINE 0 0 0 errors: No known data errors pool: iscsi-nfs1 state: ONLINE scan: scrub repaired 0 in 0h0m with 0 errors on Tue Nov 17 15:25:51 2015 config: NAME STATE READ WRITE CKSUM iscsi-nfs1 ONLINE 0 0 0 diskid/DISK-MYSERIAL%20%20%200 ONLINE 0 0 0 errors: No known data errors With a 10.2 iSCSI Initiator connected to a 10.2 iSCSI Target, this is what I see on zpool status: # zpool status pool: iscsi-nfs state: ONLINE status: One or more devices are configured to use a non-native block size. Expect reduced performance. action: Replace affected devices with devices that support the configured block size, or migrate data to a properly configured pool. scan: scrub repaired 0 in 0h0m with 0 errors on Tue Nov 17 15:25:51 2015 config: NAME STATE READ WRITE CKSUM iscsi-nfs ONLINE 0 0 0 diskid/DISK-MYSERIAL%20%20%200 ONLINE 0 0 0 block size: 4096B configured, 65536B native errors: No known data errors pool: iscsi-nfs1 state: ONLINE status: One or more devices are configured to use a non-native block size. Expect reduced performance. action: Replace affected devices with devices that support the configured block size, or migrate data to a properly configured pool. scan: scrub repaired 0 in 0h0m with 0 errors on Tue Nov 17 15:25:51 2015 config: NAME STATE READ WRITE CKSUM iscsi-nfs1 ONLINE 0 0 0 diskid/DISK-MYSERIAL%20%20%201 ONLINE 0 0 0 block size: 4096B configured, 65536B native errors: No known data errors Notice the block size warnings. The /etc/ctl.conf on both of the target machines is: portal-group pg0 { discovery-auth-group no-authentication listen 0.0.0.0 listen [::] } lun 0 { path /pool92/iscsi/iscsi.zvol blocksize 4K size 5T option unmap "on" option scsiname "pool92" option vendor "pool92" option insecure_tpc "on" } } target iqn.iscsi1.zvol { auth-group no-authentication portal-group pg0 lun 0 { path /pool92_1/iscsi/iscsi.zvol blocksize 4K size 5T option unmap "on" option scsiname "pool92_1" option vendor "pool92_1" option insecure_tpc "on" } } Note the 4k size for my iSCSI Blocks. I believe this error message to be incorrect, as recordsize=64k on the Target will not affect the ashift value at all, which is what this warning is really designed for, correct? It's going to warn when you have ashift=9 on a 4k drive, or similar mis-matches. The last interesting bit is that somehow the iSCSI Initiator is believing that the Target's sector size _is_ the zfs recordsize, as a zpool creation with a iSCSI drive in this situation trys zet the zpool's ashift to vfs.zfs.max_auto_ashift of 13 (8k Sectors) Thanks. -- You are receiving this mail because: You are the assignee for the bug.