From owner-freebsd-questions@FreeBSD.ORG Mon Jul 20 03:43:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4348106564A for ; Mon, 20 Jul 2009 03:43:30 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 900248FC14 for ; Mon, 20 Jul 2009 03:43:30 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by an-out-0708.google.com with SMTP id d14so947161and.13 for ; Sun, 19 Jul 2009 20:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WLKS+T/7ZA7BP1MrJJHW5D2HFF9crgAZZghhlUFh/C8=; b=Us/eeYozEO0E6qxon/xbRJG63Hlmbt7j7iM4tSQ85LCjLyiICPNqktHh6qWAgO+gt5 LPTEzf0HHCTEt6M8Nke64fwG3zmH+M7u53tcqk0AyJapbu8/Vxx/mFh5KSf0YtvApR28 zTpE1oGmd3yOItPGuneW3mUBGffXBCh4HqLiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J3tinU436t4o3mk2KzKAwIhccCseF284TdCD5+MzNhLo7AGZwD3OVZYBz5sLgTnqgF u+ZR9t3TBvypkjYaLqnX5++0ZTz3Dn+L5R+5ZfSvJZcKxyH188eJ0ucrwpA0pW5RnxDj epifbsyZ6uoboxYNPyAtLcH859e+W8Wnxrb5Y= MIME-Version: 1.0 Received: by 10.100.228.6 with SMTP id a6mr5597868anh.163.1248061409892; Sun, 19 Jul 2009 20:43:29 -0700 (PDT) In-Reply-To: <195035.41847.qm@web51008.mail.re2.yahoo.com> References: <195035.41847.qm@web51008.mail.re2.yahoo.com> Date: Sun, 19 Jul 2009 21:43:29 -0600 Message-ID: From: Tim Judd To: mahlerrd@yahoo.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Odd behavior after installing a tape drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2009 03:43:31 -0000 I'm no expert on tape drives either, but I was sure that "losing a SCSI device" is a bad thing for SCSI -- think of it as an IDE drive. you don't just go pulling power or data from a running, booted computer. All the devices in a computer are on, stays on, until the system shuts down= . The PTY/SCSI subject of your email should be unrelated, but a abruptly missing device is never a positive outcome for an OS. Think about the old "removing a mounted USB drive =3D panic" issue we've dealt with for years. I am questioning your reasoning behind turning off a tape drive on a live system. I would never recommend that. On 7/19/09, mahlerrd@yahoo.com wrote: > > After installing a tape drive and SCSI card in my home system, I got some > strange behavior that I think isn't directly related, but would like to g= et > an expert opinion about. > > mobius# uname -a > FreeBSD mobius 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Fri Sep=A0 5 02:= 34:20 > CDT 2008=A0 =A0=A0=A0rich@mobius:/usr/obj/usr/src/sys/GENERIC=A0 i386 > > On July 7, I turned off the system, installed the SCSI card, connected th= e > drive and turned it all back on.=A0 This all got correctly detected as (s= elect > lines from /var/log/messages): > > Jul=A0 7 03:10:40 mobius kernel: asr0: mem > 0xf4000000-0xf5ffffff irq 17 at device 12.1 on pci2 > Jul=A0 7 03:10:40 mobius kernel: asr0: [GIANT-LOCKED] > Jul=A0 7 03:10:40 mobius kernel: asr0: [ITHREAD] > Jul=A0 7 03:10:40 mobius kernel: asr0:=A0=A0=A0ADAPTEC 2100S FW Rev. 370F= , 1 > channel, 256 CCBs, Protocol I2O > Jul=A0 7 03:10:40 mobius kernel: sa0 at asr0 bus 0 target 11 lun 0 > Jul=A0 7 03:10:40 mobius kernel: sa0: Removable > Sequential Access SCSI-3 device > > I stuck in a tape, did a level 0 dump of /home and tested a restore, both= of > which worked perfectly. > > Only July 8, I ejected the tape via the button on the front, and then tur= ned > off the tape drive so the visiting relatives wouldn't complain about the = fan > noise (more from /var/log/messages): > Jul=A0 8 02:27:01 mobius kernel: (sa0:asr0:0:11:0): lost device > > That next week, I tried to SSH to this box from work to do some minor ran= dom > thing or another, and I got this sort of error message: > Jul 14 15:27:16 mobius sshd[64290]: error: openpty: Invalid argument > Jul 14 15:27:16 mobius sshd[64293]: error: session_pty_req: session 0 all= oc > failed > > I believe I had SSHed to it at least twice over the preceding week, on Ju= ly > 10 and early in the day on July 14. > > As the system was running perfectly in all other ways (well, at least the > wife hadn't complained her network files were offline, which is the only > important thing!), it took a few days before I finally got around to logg= ing > in at the console and rebooting it after which it has seemed to be fine. > The system has been eminently stable other than this one issue one time. > > I have not been able to find much from Google about this other than the > following two items- > > A) very specific bugs against different SSH versions than I am using. Do= ubt > this is the problem. > > B) some issues some folks have had with needing to create /dev/pty or > similar items. While it seems far fetched, this is the first time the > system was up with a new device and ... I don't know. New device in the > system and an old device goes wonky within a week seems to be a bit of a > coincidence. > > ** Does anyone have any thoughts if these are related or not? ** > > Also, any tips, tricks or sites with working with tape drives on FreeBSD > would be appreciated! (The handbook is a bit sparse on this point and I'= m > used to autoloaders and better under Windows/Backup Exec). I'm learning = my > way around camcontrol and mt, but should only need such things in certain > circumstances, like to get the tape drive "back" after turning it off for= a > while, right? > > > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >