gvinum root
bob at skq.ath.cx
bob at skq.ath.cx
Sat May 13 20:12:38 UTC 2006
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 at 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
More information about the freebsd-sparc64
mailing list