From owner-freebsd-questions Thu Sep 27 4:53:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from amerika.comm.uni-bremen.de (amerika.comm.uni-bremen.de [134.102.176.15]) by hub.freebsd.org (Postfix) with ESMTP id CF38137B637 for ; Thu, 27 Sep 2001 04:53:33 -0700 (PDT) Received: from oslo.comm.uni-bremen.de ([134.102.176.80] helo=comm.uni-bremen.de ident=rebehn) by amerika.comm.uni-bremen.de with esmtp (Exim 3.16 #1) id 15mZhF-0002dV-00; Thu, 27 Sep 2001 13:51:17 +0200 Message-ID: <3BB312EE.8090404@comm.uni-bremen.de> Date: Thu, 27 Sep 2001 13:52:14 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 X-Accept-Language: en-us MIME-Version: 1.0 To: Mark Rowlands Cc: questions@FreeBSD.ORG Subject: Re: PLEASE HELP: Problem backing up multiple filesystems on tape References: <3BB1AFE6.4040106@comm.uni-bremen.de> <3BB2D618.1040705@comm.uni-bremen.de> <20010927085741.4970937B40C@hub.freebsd.org> <20010927093217.7765B37B421@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Rowlands wrote: > On Thursday 27 September 2001 10:57 am, Mark Rowlands wrote: > >>On Thursday 27 September 2001 9:32 am, Heinrich Rebehn wrote: >> >>>Hi, >>> >>>since i did not receive any reply to my post below, i repost. >>>Does nobody on the list backup his or her data to tape? >>>Or are you using other tools than dump? >>> >>yes, tar! >> >> >>>Please help, since my new server is useless if i cannot back it up! >>> >>ok ...send it to me then >> >> >>>The question again: How can i write and retrieve more than one filesystem >>>to one tape? >>> >>hang on and I'll try it here >> >> >>>TIA >>> >>>Heinrich Rebehn wrote: >>> >>>>Hi list, >>>> >>>>I have successfully set up our new department server using 4.3-RELEASE. >>>>I attached our DLT1 tape drive to the system and tried to do a backup. >>>>However i am unable to write and retrieve multiple filesystems to one >>>>tape. I had no problems with that under Solaris, Linux and OpenBSD , >>>>but under FreeBSD things seem to be a bit different. >>>> >>>>What i tried was: >>>> >>>>----------------------------------------------------------------- >>>> >>>>root@antsrv1 [~] # mt rewind >>>>root@antsrv1 [~] # dump 0caf /dev/nrsa0 / >>>> >>why c? >> >> >>>> DUMP: Date of this level 0 dump: Wed Sep 26 12:29:25 2001 >>>> DUMP: Date of last level 0 dump: the epoch >>>> DUMP: Dumping /dev/ad0s1a (/) to /dev/nrsa0 >>>> DUMP: mapping (Pass I) [regular files] >>>> DUMP: mapping (Pass II) [directories] >>>> DUMP: estimated 49239 tape blocks. >>>> DUMP: dumping (Pass III) [directories] >>>> DUMP: dumping (Pass IV) [regular files] >>>> DUMP: DUMP: 49254 tape blocks on 1 volume >>>> DUMP: finished in 31 seconds, throughput 1588 KBytes/sec >>>> DUMP: Closing /dev/nrsa0 >>>> DUMP: DUMP IS DONE >>>> >>>>root@antsrv1 [~] # dump 0caf /dev/nrsa0 /var >>>> >>>> DUMP: Date of this level 0 dump: Wed Sep 26 12:30:15 2001 >>>> DUMP: Date of last level 0 dump: the epoch >>>> DUMP: Dumping /dev/ad0s1e (/var) to /dev/nrsa0 >>>> DUMP: mapping (Pass I) [regular files] >>>> DUMP: mapping (Pass II) [directories] >>>> DUMP: estimated 4495 tape blocks. >>>> DUMP: dumping (Pass III) [directories] >>>> DUMP: dumping (Pass IV) [regular files] >>>> DUMP: DUMP: 4489 tape blocks on 1 volume >>>> DUMP: finished in 1 seconds, throughput 4489 KBytes/sec >>>> DUMP: Closing /dev/nrsa0 >>>> DUMP: DUMP IS DONE >>>> >>>>root@antsrv1 [~] # mt rewind >>>>root@antsrv1 [~] # restore tf /dev/nrsa0 > /dev/null >>>> >>>>Level 0 dump of / on antsrv1.comm.uni-bremen.de:/dev/ad0s1a >>>>Label: none >>>> >>>>root@antsrv1 [~] # restore tf /dev/nrsa0 > /dev/null >>>> >>>>Tape is not a dump tape <===! >>>> >>>>root@antsrv1 [~] # >>>> >>>>----------------------------------------------------------------- >>>> >>>>Why am i unable to retrieve the second dump? I also played with >>>>filemarks, but to no avail. >>>>Any suggestions? >>>> > > dump -0 -a -f /dev/nrsa0 /var > dump -0 -a -f /dev/nrsa0 /spare > mt -f /dev/nrsa0 rewind > restore -t -f /dev/nrsa0 > bunch of stuff indicating data from /var > mt -f /dev/nrsa0 rewind > mt -f /dev/nrsa0 fsf 1 > restore -t -f /dev/nrsa0 > bunch of stuff indicating data from /spare > > so it works here - minus that funny little "c" option :- > -c Change the defaults for use with a cartridge tape drive, with a > density of 8000 bpi, and a length of 1700 feet. > > Thank you for your help, Mark. I didn't know about 'mt fsf 1'. Did not need it on other OS's. Now dump of multiple filesystems works, but unreliable :-( (see my new post 'dump unreliable?' Heinric Heinrich Rebehn "Have disk - will travel" University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - E-mail: mailto:rebehn@comm.uni-bremen.de Phone : +49/421/218-4664 Fax : -3341 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message