From owner-freebsd-questions@freebsd.org Tue Jan 5 13:40:26 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADE46A6105C for ; Tue, 5 Jan 2016 13:40:26 +0000 (UTC) (envelope-from shahinhasanov@hotmail.com) Received: from DUB004-OMC1S35.hotmail.com (dub004-omc1s35.hotmail.com [157.55.0.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3AF3D179C; Tue, 5 Jan 2016 13:40:25 +0000 (UTC) (envelope-from shahinhasanov@hotmail.com) Received: from DUB127-W44 ([157.55.0.238]) by DUB004-OMC1S35.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 5 Jan 2016 05:39:16 -0800 X-TMN: [oSaUMc4EaxSiEezT+zQ+2W46zfHEs15M] X-Originating-Email: [shahinhasanov@hotmail.com] Message-ID: From: Shahin Hasanov To: Matthew Seaman , FREEBSD_QUESTION Subject: RE: There is problem during dump/restore. Date: Tue, 5 Jan 2016 17:39:16 +0400 Importance: Normal In-Reply-To: <568BC37C.2010903@FreeBSD.org> References: , <568BC37C.2010903@FreeBSD.org> MIME-Version: 1.0 X-OriginalArrivalTime: 05 Jan 2016 13:39:16.0246 (UTC) FILETIME=[788F2360:01D147BE] Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 13:40:26 -0000 Thank you Matthew=2C I have two HDD da0=2Cda1 da0 is 147GB - ufs da1 is 1.1TB - zfs I did like bellow: =20 # zpool import -f HASTPOOL # mount -t zfs HASTPOOL /mnt # newfs /dev/da0p2 # mkdir /mnt/test=20 # mount /dev/da0p2 /mnt/test # mkdir /mnt/tmp # export TMPDIR=3D/mnt/tmp # cd /mnt/test # restore -r -f /mnt/NODE_2.dump=20 =20 When it gave message I type 'n' cannot find directory inode 10032011 > > abort? [yn] n > > cannot find directory inode 10032013 > > abort? [yn] n # cd .. # umount /mnt/test # fsck -t ufs -p /dev/da0p2 # reboot =20 It seems it works =20 Is it normal? =20 =20 Best regards Shahin Hasanov =20 =20 =20 > Subject: Re: There is problem during dump/restore. > To: freebsd-questions@freebsd.org > From: matthew@FreeBSD.org > Date: Tue=2C 5 Jan 2016 13:22:04 +0000 >=20 > On 2016/01/05 12:32=2C Shahin Hasanov wrote: > > =20 > > I had server FreeBSD 10.1 > > I make dump: > >=20 > > dump -0 -a -f /home/USER/node2.dump /dev/da0p2 > >=20 > > When I trying > > # restore -r -f /mnt/node2.dump > >=20 > > I was gave error message=20 > >=20 > > cannot find directory inode 10032011 > > abort? [yn] n > > cannot find directory inode 10032013 > > abort? [yn] n >=20 > How big is the filesystem you're restoring to compared to the one you > dumped? >=20 > You did create a new=2C empty filesystem to restore into=2C mount that an= d > change directory to the mount point before attempting the restore? And > you didn't copy the dumpfile 'node2.dump' into the filesystem you're > attempting to restore to -- 'restore -r' wants a brand new=2C empty > filesystem initially? >=20 > Are you using SU+J (Soft Updates + Journalling) on the newly created > filesystem? While that's the default for the system installer nowadays= =2C > it doesn't actually play well with dump/restore. >=20 > Cheers=2C >=20 > Matthew >=20 >=20 >=20 =