From owner-freebsd-sparc64@FreeBSD.ORG Sat May 13 18:40:21 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80AAD16A407 for ; Sat, 13 May 2006 18:40:21 +0000 (UTC) (envelope-from bob@skq.ath.cx) Received: from cemetery.homeunix.org (88-96-14-236.dsl.zen.co.uk [88.96.14.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id E64B543D78 for ; Sat, 13 May 2006 18:39:58 +0000 (GMT) (envelope-from bob@skq.ath.cx) Received: from snot.privnet (localhost [127.0.0.1]) by cemetery.homeunix.org (Postfix) with ESMTP id 450D06891 for ; Sat, 13 May 2006 19:39:57 +0100 (BST) Date: Sat, 13 May 2006 19:39:56 +0100 From: Andrew Basterfield To: freebsd-sparc64@freebsd.org Message-ID: <20060513193956.44b26835@snot.privnet> X-Mailer: Sylpheed-Claws 1.0.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: gvinum root X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 18:40:21 -0000 Hi I want to move to mirrored root using gvinum on 6.1-RELEASE/sparc64. First I need to build my setup on my second disk da1 I have tried using da1c as my gvinum drive but I found gvinum trod on my disklabel, so now I have slice 'h' for gvinum that skips cylinder 0 and I use VTOC compatible disklabel so I can have overlapping slices. [bob@spoogle ~]$ sudo disklabel da1 # /dev/da1: text: FreeBSD8G cyl 4924 alt 2 hd 27 sec 133 bytes/sector: 512 sectors/cylinder: 3591 sectors/unit: 17682084 8 partitions: # # Size is in sectors. # Offset is in cylinders. # size offset tag flag # ---------- ---------- ---------- ---- a: 1052163 2 root wm c: 17682084 0 backup wu h: 17678493 1 unassigned wu The root filesystem needs to begin at the start of cylinder 2 so I have an driveoffset that should consume all of the space in cylinder 1 minus 265 sectors for the gvinum config. 3591 sec/track - 265 = 3326 sectors offset gvinum config: #drive disk0 device /dev/da0h drive disk1 device /dev/da1h volume root #plex org concat #sd length 512m driveoffset 3326s drive disk0 plex org concat sd length 512m driveoffset 3326s drive disk1 Now I don't understand why /dev/gvinum/root and /dev/da1a don't point to the same disk area? This is what I am trying to follow http://216.239.59.104/search?q=cache:rrHJabrK314J:list.droso.net/9/60876+freebsd+vinum+offset+sparc64&hl=en&gl=uk&ct=clnk&cd=4