From owner-freebsd-stable@FreeBSD.ORG Fri Mar 25 15:28:58 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A560B106566B for ; Fri, 25 Mar 2011 15:28:58 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id 303658FC15 for ; Fri, 25 Mar 2011 15:28:57 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.4/8.14.4) with ESMTP id p2PFSrcs002182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Mar 2011 16:28:53 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.4/8.14.4/Submit) with ESMTP id p2PFSrNd002179; Fri, 25 Mar 2011 16:28:53 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 25 Mar 2011 16:28:53 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: =?ISO-8859-1?Q?Attila_Bog=E1r?= In-Reply-To: <4D8CABB2.2000507@linguamatics.com> Message-ID: References: <4D8CABB2.2000507@linguamatics.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: =?ISO-8859-1?Q?Fagskolen_i_Gj=F8vik?= OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-501752186-1301066933=:99971" X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on mail.fig.ol.no Cc: FreeBSD stable Subject: Re: How to set tape parameters on freebsd? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 15:28:58 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-501752186-1301066933=:99971 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Fri, 25 Mar 2011 14:50-0000, Attila Bogár wrote: > Dear FreeBSD list, > > I'm currently using FreeBSD on my backup server (w/ Amanda). > > I'm wondering if exists out there a utility for setting tape > parameters (during boot). > > Linux had /sbin/stinit and /etc/stinit.def. > Is there something similar for FreeBSD? > > Another problem I'm experiencing is: > During power cycling, the controller resets the tape drives the > drives eject the tape. > If I use 'mt -f /dev/nsa0 comp off' in a boot script it fails with > an error tape drive not configured. > Is there a pretty solution for this or you just put mt into a loop > until it succeeds? Have you tried using /dev/sa0.ctl? E.g.: mt -f /dev/sa0.ctl comp off I run AMANDA using a shell script from cron, and one of the things my shell script does before running amdump is to turn off compression. By the time the shell script runs, a tape cartridge is already loaded in the drive. With the tape cartridge loaded, it's OK to use /dev/nsa0. > Is there a way pushing compression and block size parameters to the > sa driver? I've already RTFM sa(8) and checked sysctl settings and I > couldn't find the answer. > > Thanks for your constructive comments in advance, > > Attila Trond. -- ---------------------------------------------------------------------- Trond Endrestřl | Trond.Endrestol@fagskolen.gjovik.no ACM, NAS, NUUG, SAGE, USENIX | FreeBSD 8.1-STABLE & Alpine 2.00 --2055831798-501752186-1301066933=:99971--