From owner-freebsd-questions Wed Aug 7 6:22:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CA8D37B400 for ; Wed, 7 Aug 2002 06:22:41 -0700 (PDT) Received: from spin.web.net (spin.web.net [192.139.37.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AD4343E70 for ; Wed, 7 Aug 2002 06:22:41 -0700 (PDT) (envelope-from rob@web.net) Received: by spin.web.net (Postfix, from userid 1000) id 2130E12F022; Wed, 7 Aug 2002 09:22:33 -0400 (EDT) Date: Wed, 7 Aug 2002 09:22:33 -0400 From: Rob Ellis To: freebsd-questions@FreeBSD.ORG Subject: Re: Questions about vinum and failure of root partition Message-ID: <20020807132232.GA47309@web.ca> Mail-Followup-To: Rob Ellis , freebsd-questions@FreeBSD.ORG References: <200208070101.g7711iU06306@clunix.cl.msu.edu> <005e01c23dcb$061acbb0$6602a8c0@swbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005e01c23dcb$061acbb0$6602a8c0@swbell.net> User-Agent: Mutt/1.3.28i 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 one workaround for having to have a non-mirrored boot partition with 2 disks is to put 2 slices on each disk -- one for fbsd system partitions, and one for mirrored data... ad0s1, ad2s1 -> small bootable slices for os partitions ad0s2, ad2s2 -> rest of the disk for mirrored data partitions install fbsd on ad0s1, with partitions for / and swap and maybe tmp. partition ad2s1 the same way. create your vinum mirror using partitions on ad0s2 and ad2s2 and symlink /var and whatever else you want to directories on the mirror. then create a backup of the fbsd partitions on the first disk, copying everything from ad0s1 to ad2s1: dd if=/dev/ad0s1 of=/dev/ad2s1 bs=102400 fsck the newly copied filesystems: # a, e... are partitions for i in a e f g h ; do fsck -y /dev/ad2s1$i ; done install ad0's master boot record to ad2 fdisk -B /dev/ad2 and now the second disk is a bootable copy of the first; if the first disk fails, you swap the cables on the disks (make the secondary the primary) and reboot -- the os and vinum come back up. - rob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message