From owner-freebsd-stable Sat Nov 9 20:18:40 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B85E37B401 for ; Sat, 9 Nov 2002 20:18:38 -0800 (PST) Received: from topperwein.dyndns.org (acs-24-154-51-184.zoominternet.net [24.154.51.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90FCF43E3B for ; Sat, 9 Nov 2002 20:18:37 -0800 (PST) (envelope-from behanna@zbzoom.net) Received: from topperwein.pennasoft.com ([192.168.168.10]) by topperwein.dyndns.org (8.12.6/8.12.5) with ESMTP id gAA4Icd4030599 for ; Sat, 9 Nov 2002 23:18:38 -0500 (EST) (envelope-from behanna@zbzoom.net) Date: Sat, 9 Nov 2002 23:18:33 -0500 (EST) From: Chris BeHanna Reply-To: Chris BeHanna To: FreeBSD-Stable Subject: Re: backups of SUPERBLOCK In-Reply-To: <3DCDD873.F498DFC2@kuzbass.ru> Message-ID: <20021109231607.W9701-100000@topperwein.pennasoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 10 Nov 2002, Eugene Grosbein wrote: > Phil Kernick wrote: > > > > Eugene Grosbein wrote: > > > > > > Is there an official way to get list of superblock backups for existing > > > filesystem, other than backup/newfs/restore ? > > > > > > > Yes. Use newfs -N which will print out the superblock locations. My > > experience also tells me to also put exactly the same parameters on the newfs > > line that you used when you originally created the volume. > > > > From the newfs(8) manpage: > > -N Cause the file system parameters to be printed out without really > > creating the file system. > > Thank you. But how do I known parameters of existing filesystem? > > disklabel ad0 shows, in partcular: > > [...snip...] Completely unrelated to newfs parameters. Phil meant that you should pass the same blocksize, fragsize, minfree, inode density, etc., to newfs -N that you passed to the original newfs that created the filesystem. If you didn't do any custom tuning with newfs, it's likely that newfs -N -b 8192 -f 1024 # pre 4.6 or newfs -N -b 16384 -f 2048 # 4.6 and up will be sufficient. -- Chris BeHanna http://www.pennasoft.com Principal Consultant PennaSoft Corporation chris@pennasoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message