From owner-freebsd-questions@FreeBSD.ORG Fri Jun 9 11:12:42 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B5D16A41B for ; Fri, 9 Jun 2006 11:12:42 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A369743D77 for ; Fri, 9 Jun 2006 11:12:41 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.138] (helo=anti-virus01-09) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1Foeut-0004je-NC; Fri, 09 Jun 2006 12:12:39 +0100 Received: from [80.192.2.223] (helo=[192.168.0.2]) by asmtp-out6.blueyonder.co.uk with esmtp (Exim 4.52) id 1Foeus-0006VW-Ul; Fri, 09 Jun 2006 12:12:38 +0100 Message-ID: <448957A6.8030200@dial.pipex.com> Date: Fri, 09 Jun 2006 12:12:38 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Nick References: <986949843.20060608121530@skif.itcom.net.ua> <44882109.50507@dial.pipex.com> <4810525656.20060608162052@skif.itcom.net.ua> <4488290C.4060801@dial.pipex.com> <478980468.20060608170201@skif.itcom.net.ua> <448831D3.1060006@dial.pipex.com> <631137238.20060609102825@skif.itcom.net.ua> In-Reply-To: <631137238.20060609102825@skif.itcom.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org Subject: Re: Question in occasion of SCSI devices (the tape store) 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: Fri, 09 Jun 2006 11:12:42 -0000 Nick wrote: >thanks for help Alex I found the best way for me to write info to the >tape. > >Can You answered on the last question How can I see free size on the >tape or size what I filled? > > My experience is that you can't really do either. If anyone know better, I'd be glad to know! If the tape is positioned at the end of data then you can issue an "mt -f /dev/nsa0 status" command but I have no idea how to interpret the result in terms of how much space is used or left. Using dump, I write full backups to one tape which then gets put away. I just judge from how big the filesystems are how many will fit on one tape. The if I do incrementals, they all go on one tape. If the tape does run out, dump will just ask for a new one. If you use a system like bacula, then it may keep track of how much data you have written, but with a compressing tape drive (which most are) you don't know exactly how that corresponds to how much data was written to tape because you can't accurately predict the compression ratio. An estimate of 1.5:1 works OK for mixed filesystems, but if you having nothing but jpegs and mp3s (which are compressed already) then you may get 1:1. For a database full of text you might get 2:1. Not much help. Sorry. --Alex