Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 16:28:53 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        =?ISO-8859-1?Q?Attila_Bog=E1r?= <attila.bogar@linguamatics.com>
Cc:        FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: How to set tape parameters on freebsd?
Message-ID:  <alpine.BSF.2.00.1103251623320.99971@mail.fig.ol.no>
In-Reply-To: <4D8CABB2.2000507@linguamatics.com>
References:  <4D8CABB2.2000507@linguamatics.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1103251623320.99971>