From owner-freebsd-fs@freebsd.org Mon Apr 23 18:56:14 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DAF2FA95F3 for ; Mon, 23 Apr 2018 18:56:14 +0000 (UTC) (envelope-from zmey20000@yahoo.com) Received: from sonic315-35.consmr.mail.gq1.yahoo.com (sonic315-35.consmr.mail.gq1.yahoo.com [98.137.65.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1244468E2F for ; Mon, 23 Apr 2018 18:56:13 +0000 (UTC) (envelope-from zmey20000@yahoo.com) X-YMail-OSG: 6Ca.hm8VM1nkFLbYHBwn7MgI3YCAj7jOWhH1bpm_wGZ3I6ZMFIgY8pYrzDsh67t Ngi9KICIXXIa00xKj_Sug42g4B2xYtO.gxh1iLSQYWND44R5.80IKsAFKTSb7bNJ.Gw6kQEOiNhr vKIFEkH8a169Jjw724dL6L5DSf.zR7BNUIoBGaA8kmHWZRRNiBoV3zJ4AgHRp3OC5LPrVJbNMQfk I0.0h81xaG7bOp_YqOSf3uEn95Mi7aae8PUjKtjXr0m2fjJbgf0wR9X_wCkF4E6UMeFJVoZwZZQv 5hqNUYkDK6adNt.CeWHWXIj2dW1aOSIxkxv2zibdpNid9RyqAw5O9PvNIzbrGrC_twyaBtITTfJi hVzT7Ut6Bg6pwpGtBsvVwjWoYVz8cBaS3hBhTHLwuzEmTcNUXMUee2YIEvG2IQGmU028k.hGJpfY xANVSCREeFS1clIhl6h0BUtGZ.EFGd6jE.fWsbDQhPzY8Cc5uq3_q.VGX8z_Blaliq14GMK6dcok OnPx05kNg42GxyzsDjM6LWXz1B_h.zT9lGxD5uCES4LTqN_WW4Q2qZzNR7SfGH0EdQpACk8oJhQ1 JHq3.L07vTOQ8IOeMpbd0Qw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 23 Apr 2018 18:56:12 +0000 Received: from athe-hcsd-peer.customers.otenet.gr (EHLO [192.168.130.11]) ([195.167.103.234]) by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d4fa2d3c1d83e447501ea45c6dabe011; Mon, 23 Apr 2018 17:41:21 +0000 (UTC) Mime-Version: 1.0 (1.0) Subject: Re: ctl_isc_lun_sync: Received conflicting HA LUN From: Mikhail Zakharov X-Mailer: iPad Mail (15E216) In-Reply-To: <1e1e7cd5-0797-c168-fbce-a36edc6a432e@sentex.net> Date: Mon, 23 Apr 2018 20:41:18 +0300 Cc: "freebsd-fs@freebsd.org" Message-Id: <14CC6AF1-C1AB-48D2-925D-A46989AD7B3C@yahoo.com> References: <4cb4aa83-bd49-0c20-4e41-c11c682b0570@sentex.net> <1e1e7cd5-0797-c168-fbce-a36edc6a432e@sentex.net> To: Mike Tancsa X-Mailman-Approved-At: Mon, 23 Apr 2018 21:03:19 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 18:56:14 -0000 Hi,=20 and thank you! You have different Lun0 definitions in ctl.conf: check path /dev/zvol/tank1/= v1 vs path /dev/zvol/zroot/v1 as well as different device-ids. These values s= hould describe the same =E2=80=9Cdrive=E2=80=9D in both configuration, are y= ou sure if it=E2=80=99s the same disk? :) WBR, Mike > 23 =D0=B0=D0=BF=D1=80. 2018 =D0=B3., =D0=B2 20:11, Mike Tancsa =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 >> On 4/23/2018 12:59 PM, Mikhail Zakharov wrote: >> Hello Mike, >>=20 >> Thank you for your interest to my paper. I appreciate it very much! >> Your error may be a consequence of the initial HA misconfiguration. What i= s in your /boot/loader.conf? Although the described config is quite simple, I= can recheck the instruction in my paper in a couple of weeks only, unfortun= ately I=E2=80=99m on vacation right now. >=20 > Hi, > Config is pretty well copied from your article. Thanks for responding, > and have a good holiday! >=20 > a) > kern.geom.label.disk_ident.enable=3D"0" > kern.geom.label.gptid.enable=3D"0" > vfs.zfs.min_auto_ashift=3D12 > zfs_load=3D"YES" > t5fw_cfg_load=3D"YES" > if_cxgbe_load=3D"YES" > vm.pmap.pti=3D0 > vfs.zfs.arc_max=3D22161185792 > ctl_load=3D"YES" > iscsi_load=3D"YES" > cfiscsi_load=3D"YES" > kern.cam.ctl.ha_id=3D1 > kern.cam.ctl.ha_mode=3D2 > kern.cam.ctl.ha_role=3D0 >=20 > b) > kern.geom.label.disk_ident.enable=3D"0" > kern.geom.label.gptid.enable=3D"0" > vfs.zfs.min_auto_ashift=3D12 > zfs_load=3D"YES" > console=3D"comconsole,vidconsole" > comconsole_speed=3D"115200" # Set the current serial console speed > comconsole_port=3D"0x2f8" > ipmi_load=3D"YES" > ctl_load=3D"YES" > cfiscsi_load=3D"YES" > iscsi_load=3D"YES" > kern.cam.ctl.ha_id=3D2 > kern.cam.ctl.ha_mode=3D2 > kern.cam.ctl.ha_role=3D1 >=20 >=20 >=20 >=20 >=20 > a) > # cat /etc/ctl.conf > debug 1 > portal-group pg0 { > discovery-auth-group no-authentication > listen 192.168.242.6 > listen 192.168.79.1 > } >=20 > target iqn.2018-01.ca.sentexcloud1:target0 { > auth-group no-authentication > portal-group pg0 >=20 > lun 0 { > backend block > path /dev/zvol/tank1/v1 > blocksize 4096 > device-id MULTI > serial 20180423 > } > } >=20 > b) > }# cat /etc/ctl.conf > debug 1 > portal-group pg0 { > discovery-auth-group no-authentication > listen 192.168.79.2 > listen 192.168.242.11 > } >=20 > target iqn.2018-01.ca.sentexcloud1:target0 { > auth-group no-authentication > portal-group pg0 >=20 > lun 0 { > backend block > path /dev/zvol/zroot/v1 > blocksize 4096 > device-id FBSDMULTI > serial 20180423 > } > } >=20 > a) > # cat start.sh > sysctl -w kern.cam.ctl.ha_peer=3D"listen 192.168.79.1:7777" > sysctl -w kern.iscsi.fail_on_disconnection=3D1 > /etc/rc.d/ctld onestart >=20 > b) > # cat start.sh > sysctl -w kern.cam.ctl.ha_peer=3D"connect 192.168.79.1:7777" > sysctl -w kern.iscsi.fail_on_disconnection=3D1 > /etc/rc.d/ctld onestart >=20 >=20