From owner-freebsd-questions@FreeBSD.ORG Fri Sep 30 14:28:02 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A1CA106564A for ; Fri, 30 Sep 2011 14:28:02 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id DD6CA8FC0C for ; Fri, 30 Sep 2011 14:28:01 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id p8UEQpgU050776; Fri, 30 Sep 2011 10:26:51 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id p8UEQo1U050775; Fri, 30 Sep 2011 10:26:50 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 30 Sep 2011 10:26:50 -0400 From: Jerry McAllister To: Damien Fleuriot Message-ID: <20110930142650.GE50464@gizmo.acns.msu.edu> References: <1511250858.20110929223638@yandex.ru> <20110929200920.GB46979@gizmo.acns.msu.edu> <4E85C706.9000809@my.gd> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E85C706.9000809@my.gd> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: dump/restore, how to reduce slice size 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, 30 Sep 2011 14:28:02 -0000 On Fri, Sep 30, 2011 at 03:41:26PM +0200, Damien Fleuriot wrote: > > > On 9/29/11 10:09 PM, Jerry McAllister wrote: > > On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??????? ??????? wrote: > > > >> Hi, Freebsd-questions. > >> > >> # df -h > >> Filesystem Size Used Avail Capacity Mounted on > >> /dev/ad4s1a 2G 206M 1.6G 11% / > >> devfs 1.0k 1.0k 0B 100% /dev > >> /dev/ad4s1e 3.9G 13M 3.6G 0% /tmp > >> /dev/ad4s1f 40G 25G 12G 67% /usr > >> /dev/ad4s1d 31G 3.6G 24G 13% /var > >> procfs 4.0k 4.0k 0B 100% /proc > >> /dev/ad2s1f 39G 25G 10G 71% /mnt > >> devfs 1.0k 1.0k 0B 100% /var/named/dev > >> > >> > >> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G > >> but on ad4s1f only 25G used. > >> > >> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? > >> > >> These commands: > >> #mount /dev/ad2s1f /mnt > >> #cd /mnt > >> #dump -0Lf - /usr | restore -rf - > >> does not help, because of ad2s1f does not have space to restore > >> 'end of ' /dev/ad4s1f. > >> > >> May help any? > > > > Well, you are going to have difficulty putting 50 GB on a 39 GB partition. > > (25GB + 25GB = 50GB). > > It won't work. > > > > You could try compressing the dump, but dump files do not tend > > to compress well and even if you got a 50% compression, you would > > still be really close to overfill. > > > > Probably you need to go to the store and get a nice big USB drive > > and slice and partition it in to a bunch of 50 GB partitions and > > pipe your dump to a restore in those partitions on that drive. > > You can round-robin your backups to those USB partitions. > > > > My backup to a USB hard drive just saved me the beginning of > > this week when the old machine died of heat prostration. > > > > > Dump is supposed to take only the used space. ???? Yes. He already has 25 GB used on the partition and wants to add another approx 25 GB in a 39 GB partition. There ain't room. ////jerry > > @OP, refer the following link for correct dump/restore syntax: > http://www.wonkity.com/~wblock/docs/html/backup.html#_tt_dump_tt_with_compression > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"