From owner-freebsd-questions Sat Jun 2 6:49:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id CB79337B424 for ; Sat, 2 Jun 2001 06:49:41 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f52DkTk10619; Sat, 2 Jun 2001 09:46:29 -0400 (EDT) Message-ID: <3B18EEB4.B5BFE6C7@iowna.com> Date: Sat, 02 Jun 2001 09:48:36 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: rene@xs4all.nl Cc: freebsd-questions@FreeBSD.ORG Subject: Re: restore fails when trying to run from fixit.flp (freeBSD) References: <20010602124146.A12549@xs4all.nl> Content-Type: text/plain; charset=us-ascii 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 It seems to me that you had more than 5G worth of data on your /usr part. Remake the partitions to match the original sizes (or bigger) and try the procedure again. -Bill rene@xs4all.nl wrote: > > Hi. I've got a 4.3-stable box for which I'm testing a backup procedure. > > I have 4 disks in the box: > da0 scsi 8G (bootdisk) > da1 scsi 2G > ad0 IDE 10G > ad1 IDE 10G > > I have made a single slice of ad0, ad0s1 and newFSed that, then mounted it > somewhere. > > I have done the following on my running system: > > dump -0ua /mnt/ad0/l0/da0s1a / > dump -0ua /mnt/ad0/l0/da0s1e /var > dump -0ua /mnt/ad0/l0/da0s1f /usr > disklabel da0 | /mnt/ad0/l0/da0.disklabel.txt > dmesg | /mnt/ad0/dmesg.txt > cp /etc/fstab /mnt/ad0/fstab > > This produced the correct files without errors in the /mnt/ad0/ structure > > I then used MSDos to format the da0 disk, simulating a complete failure. > > Now, restoration of my volumes I want to have done via the simplest > procedure possible; I think this is to boot a fixit.flp (after kern.flp > and mfsroot.flp ofcourse) and start a shell. > > So, in this case, I use the installation menu of mfsroot.flp to re-create > the partitions/slices (slightly changed in size, decreased 7G /usr to 5G, > then enlarged / and /var) on the ad0 disk. > > I then newfs'ed those new partitions (da0s1a, da0s1e and da0s1f), and > mounted them as /mnt/da0s1*. > > Restoring the first two volumes, / and /var, is done without problems. I > simply use > cd /mnt/da0s1a && restore -rf /mnt/ad0/l0/da0s1a > and the same for da0s1e ofcourse, they both work without any messages and > re-create files so I guess they work just fine. > > Now, the problem starts with restoring /mnt/da0s1f with > > cd /mnt/da0s1f && restore -rf /mnt/ad0/l0/da0s1f > > the first set of errors I get is > > /: write failed, file system is full > > I get this one quite often, but the process continues anyway, and then > starts outputting a new set of errors: > > warning: '.' missing from directory ./include/ > > or > > warning: '..' missing from directory ./include/ > > Now, a quick look at df output shows me that my / filesystem is indeed > full. mount shows me that / is in fact /dev/md0c which is a 2.88M ramdisk. > > I thought of remounting / as /dev/da0s1a (since its restored already), but > ofcourse(?) I can't remount a filesys that's in use...(?) > > I would appreciate some clues here, I never thought that the > backup-restore procedure of fbsd would be so complicated :(( > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If a bird in the hand is worth two in the bush, then what can I get for two hands in the bush? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message