List Info

Thread: gvinum root




gvinum root
user name
2006-05-13 18:39:56
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.

[bobspoogle ~]$ 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+off
set+sparc64&hl=en&gl=uk&ct=clnk&cd=4



_______________________________________________
freebsd-sparc64freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc
64
To unsubscribe, send any mail to
"freebsd-sparc64-unsubscribefreebsd.org"
gvinum root
user name
2006-05-13 20:12:36
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.
> 
> [bobspoogle ~]$ 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+off
set+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

_______________________________________________
freebsd-sparc64freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc
64
To unsubscribe, send any mail to
"freebsd-sparc64-unsubscribefreebsd.org"
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )