From owner-freebsd-stable@FreeBSD.ORG Sat Mar 15 02:15:26 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E1D2F37 for ; Sat, 15 Mar 2014 02:15:26 +0000 (UTC) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F188FC56 for ; Sat, 15 Mar 2014 02:15:25 +0000 (UTC) Received: from nyi.unixathome.org (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id AB8005083F for ; Sat, 15 Mar 2014 02:15:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by nyi.unixathome.org (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2xBpmriep0LR for ; Sat, 15 Mar 2014 02:15:24 +0000 (UTC) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 2094B50830 for ; Sat, 15 Mar 2014 02:15:23 +0000 (UTC) From: Dan Langille Content-Type: multipart/signed; boundary="Apple-Mail=_A8ECCF76-898F-42A0-A3F1-ADB84C6A8E67"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Re: sa0 devices disappear after power cycling tape library Date: Fri, 14 Mar 2014 22:15:13 -0400 Message-Id: <0EA8C46E-9903-4602-8F82-2BB9BA1180A6@langille.org> To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Mark Saad 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:15:26 -0000 --Apple-Mail=_A8ECCF76-898F-42A0-A3F1-ADB84C6A8E67 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > > 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 it=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=3DE2=3D80=3DA6.=3D >=20 > >=3D20 >=20 >=20 > Have you tried a camcontrol rescan ? Yes, that=92s what I meant by 'camcontrol devlist rescan=92 above=85 I ran: camcontrol rescan all. The output above is after that command. > Also what does camcontrol devlist -v s=3D > how before and after the reboot ?=3D20 I don=92t have before, but after is: $ 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) IIRC, before I ran the command, the last two entries were missing. --=20 Dan Langille - http://langille.org --Apple-Mail=_A8ECCF76-898F-42A0-A3F1-ADB84C6A8E67 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlMjt7gACgkQCgsXFM/7nTxl1wCg4zev16fO+SbR3fOHgD1If8Q3 9aUAnRJnk/y59OJcm6lFAPH+MsYpzIK5 =WzUk -----END PGP SIGNATURE----- --Apple-Mail=_A8ECCF76-898F-42A0-A3F1-ADB84C6A8E67--