Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2006 21:12:36 +0100
From:      bob@skq.ath.cx
To:        freebsd-sparc64@freebsd.org
Subject:   Re: gvinum root
Message-ID:  <20060513201235.GA3719@snot.privnet>
In-Reply-To: <20060513193956.44b26835@snot.privnet>
References:  <20060513193956.44b26835@snot.privnet>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 13, 2006 at 07:39:56PM +0100, Andrew Basterfield wrote:
> 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

The driveoffset value includes the gvinum setup

I just needed to set driveoffset to 3591s (1 cyl)

--Andrew




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060513201235.GA3719>