From owner-freebsd-questions@FreeBSD.ORG Thu Sep 29 19:36:53 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 DF492106564A for ; Thu, 29 Sep 2011 19:36:53 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward8.mail.yandex.net (forward8.mail.yandex.net [IPv6:2a02:6b8:0:202::3]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5B18FC16 for ; Thu, 29 Sep 2011 19:36:53 +0000 (UTC) Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward8.mail.yandex.net (Yandex) with ESMTP id CD1BAF63904 for ; Thu, 29 Sep 2011 23:36:51 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317325011; bh=bTMG+eVcWblHlfoMFFs2Fa0hbMYAsiarC3sCm0IVMGo=; h=Date:From:Reply-To:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=lBCRT/oS4h8Ti1zjnYeI9humG+XJnCgf/1NZsGCygsfnruk3zvOgWCCr4MV9c3A4D zs0JoXYP/7BVvPp5aSiHTdiy5S1jody8micq7TyqXUmVGXpSFJiXjnW/ckgI3jFH8N wJb1ww+usSlZioeVRZeZbH5XoSb8/vkpfFfs5hOI= Received: from smtp9.mail.yandex.net (localhost [127.0.0.1]) by smtp9.mail.yandex.net (Yandex) with ESMTP id AC5EE1520408 for ; Thu, 29 Sep 2011 23:36:51 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317325011; bh=bTMG+eVcWblHlfoMFFs2Fa0hbMYAsiarC3sCm0IVMGo=; h=Date:From:Reply-To:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=lBCRT/oS4h8Ti1zjnYeI9humG+XJnCgf/1NZsGCygsfnruk3zvOgWCCr4MV9c3A4D zs0JoXYP/7BVvPp5aSiHTdiy5S1jody8micq7TyqXUmVGXpSFJiXjnW/ckgI3jFH8N wJb1ww+usSlZioeVRZeZbH5XoSb8/vkpfFfs5hOI= Received: from unknown (unknown [77.93.52.20]) by smtp9.mail.yandex.net (nwsmtp/Yandex) with ESMTP id apuCJXBd-apu02WZH; Thu, 29 Sep 2011 23:36:51 +0400 X-Yandex-Spam: 1 Date: Thu, 29 Sep 2011 22:36:38 +0300 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1511250858.20110929223638@yandex.ru> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Subject: dump/restore, how to reduce slice size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 19:36:54 -0000 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? -- Konkov mailto:kes-kes@yandex.ru