From owner-freebsd-stable@FreeBSD.ORG Sat Mar 15 02:26:27 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E58924F for ; Sat, 15 Mar 2014 02:26:27 +0000 (UTC) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DC206D63 for ; Sat, 15 Mar 2014 02:26:26 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id e16so3842707qcx.27 for ; Fri, 14 Mar 2014 19:26:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=HsIDQfgZtKopKORL/ym5zL1wIErd8TLIPer4jpRbhNg=; b=SI7DIWhecTmy65OVoQG1mSYJ76Lb8dTfFpHw6BAC1824vcN98SfEG7lfDBA65fvJtD 3NQvP6wWCpfgzzSV6qBy5OpUs/3ZhAz/kk70CQtH2wRXhdBsroCaUePtfiNr8y1ozS2o Qj2jR5bWej28b0bzbINHmePd6xp9xHRqK7iZl39CAGK975ySnBV4J6CQ9vx2ZShN5x4H pIim5uAI6wV0Cz6hrU7SFgBAWgDkW9tqHR8Dxf9EHOyiYGhXT5H21O5p4kXnAoiHXXb1 hxdfLlQHy7sNm2zfTWmnySSTzLS7DVR+O7GszhaqvNkrEOEOB6GU9DabCD0baN+h2011 RqtA== X-Gm-Message-State: ALoCoQmvZrepoD9J+xeYJFWPkKWh2+V5f5Amo6Vw1ao2S324MZCdVVzwCtVpVhKcf82TayARPje8 X-Received: by 10.224.50.72 with SMTP id y8mr14115004qaf.36.1394850379358; Fri, 14 Mar 2014 19:26:19 -0700 (PDT) Received: from [192.168.11.33] (ool-4356784d.dyn.optonline.net. [67.86.120.77]) by mx.google.com with ESMTPSA id p67sm10781524qgd.8.2014.03.14.19.26.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 19:26:17 -0700 (PDT) Subject: Re: sa0 devices disappear after power cycling tape library References: <0EA8C46E-9903-4602-8F82-2BB9BA1180A6@langille.org> From: Mark Saad Content-Type: text/plain; charset=utf-8 X-Mailer: iPhone Mail (11D167) In-Reply-To: <0EA8C46E-9903-4602-8F82-2BB9BA1180A6@langille.org> Message-Id: <09A7582E-ED1C-44A2-B235-ED9A8C7711F8@longcount.org> Date: Fri, 14 Mar 2014 22:26:15 -0400 To: "freebsd-stable@freebsd.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2014 02:26:27 -0000 On Mar 14, 2014, at 10:15 PM, Dan Langille wrote: >>> On Mar 14, 2014, at 8:14 PM, Dan Langille wrote: >>> =3D20 >>> I have a tape library which acts up from time to time and I power cycle i= t=3D >> . >>> =3D20 >>> After running camcontrol devlist rescan, some of the devices are missing= >>> =3D20 >>> This what I see in dev after power cycling the FreeBSD 9.2 server: >>> =3D20 >>> $ ls *sa* >>> lrwxr-xr-x 1 root wheel 6 Mar 8 02:12 esa0 -> esa0.0 >>> crw-rw---- 1 root operator 0x70 Mar 8 02:12 esa0.0 >>> crw-rw---- 1 root operator 0x76 Mar 8 02:12 esa0.1 >>> crw-rw---- 1 root operator 0x79 Mar 8 02:12 esa0.2 >>> crw-rw---- 1 root operator 0x7c Mar 8 02:12 esa0.3 >>> crw-rw---- 1 root operator 0x75 Mar 8 02:12 nsa0.1 >>> crw-rw---- 1 root operator 0x78 Mar 8 02:12 nsa0.2 >>> crw-rw---- 1 root operator 0x7b Mar 8 02:12 nsa0.3 >>> crw-rw---- 1 root operator 0x74 Mar 8 02:12 sa0.1 >>> crw-rw---- 1 root operator 0x77 Mar 8 02:12 sa0.2 >>> crw-rw---- 1 root operator 0x7a Mar 8 02:12 sa0.3 >>> =3D20 >>> This is what I see after rebooting the FreeBSD server: >>> =3D20 >>> $ ls -l *sa* >>> lrwxr-xr-x 1 root wheel 6 Mar 15 00:09 esa0 -> esa0.0 >>> crw-rw---- 1 root operator 0x70 Mar 15 00:09 esa0.0 >>> crw-rw---- 1 root operator 0x76 Mar 15 00:09 esa0.1 >>> crw-rw---- 1 root operator 0x79 Mar 15 00:09 esa0.2 >>> crw-rw---- 1 root operator 0x7c Mar 15 00:09 esa0.3 >>> lrwxr-xr-x 1 root wheel 6 Mar 15 00:09 nsa0 -> nsa0.0 >>> crw-rw---- 1 root operator 0x6f Mar 15 00:09 nsa0.0 >>> crw-rw---- 1 root operator 0x75 Mar 15 00:09 nsa0.1 >>> crw-rw---- 1 root operator 0x78 Mar 15 00:09 nsa0.2 >>> crw-rw---- 1 root operator 0x7b Mar 15 00:09 nsa0.3 >>> lrwxr-xr-x 1 root wheel 5 Mar 15 00:09 sa0 -> sa0.0 >>> crw-rw---- 1 root operator 0x6e Mar 15 00:09 sa0.0 >>> crw-rw---- 1 root operator 0x74 Mar 15 00:09 sa0.1 >>> crw-rw---- 1 root operator 0x77 Mar 15 00:09 sa0.2 >>> crw-rw---- 1 root operator 0x7a Mar 15 00:09 sa0.3 >>> crw-rw---- 1 root operator 0x6d Mar 15 00:09 sa0.ctl >>> =3D20 >>> Should I just do some ln -s? Something easier, I=3DE2=3D80=3D99m sure=3D= E2=3D80=3DA6.=3D >>=20 >>> =3D20 >>=20 >>=20 >> Have you tried a camcontrol rescan ? >=20 > Yes, that=E2=80=99s what I meant by 'camcontrol devlist rescan=E2=80=99 ab= ove=E2=80=A6 >=20 Sorry I missed that , I think that syntax may not do what you want=20 > I ran: camcontrol rescan all. The output above is after that command. >=20 How is the dlt drive attached , fc-al , sas or SCSI ?=20 >> Also what does camcontrol devlist -v s=3D >> how before and after the reboot ?=3D20 >=20 > I don=E2=80=99t have before, but after is: >=20 > $ sudo camcontrol devlistol devlist > Password: > at scbus0 target 2 lun 0 (pass0,da0) > at scbus0 target 10 lun 0 (pass1,da1) > at scbus0 target 11 lun 0 (pass2,da2) > at scbus0 target 12 lun 0 (pass3,da3) > at scbus0 target 13 lun 0 (pass4,da4) > at scbus0 target 14 lun 0 (pass5,da5) > at scbus0 target 16 lun 0 (pass6,da6) > at scbus0 target 17 lun 0 (pass7,da7) > at scbus5 target 0 lun 0 (ada0,pass8) > at scbus5 target 1 lun 0 (ada1,pass9) > at scbus7 target 4 lun 0 (sa0,pass10) > at scbus7 target 6 lun 0 (pass11,ch0) >=20 > IIRC, before I ran the command, the last two entries were missing. >=20 So this is a robotic library and drive ?=20 Also do I I read you right the sa0 entry is back,or you still just have have= sa0.0 ? You could use etc/devfs.conf to make a link entry , see the end of the fil= e for examples. But I suspect something else is up . I have seen this before= but I can't remember what caused it off hand .=20 > --=20 > Dan Langille - http://langille.org >=20 Mark saad | mark.saad@longcount.org=20=