Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2005 13:48:01 -0600
From:      Michael Lea <michael.lea@gmail.com>
To:        freebsd-geom@freebsd.org
Subject:   issues setting up gvinum
Message-ID:  <9c393a720512201148g13819dc2u9730a5c7a77ca814@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm having some issues setting up gvinum on a new system. My ultimate
goals are to:
  a) leave some free space on the disk for me to grow into (either
with new filesystems or using growfs) as needed, and
  b) mirror essential filesystems (/, /usr, etc) onto a second disk

But at this point I can't even get the gvinum configuration to survive a re=
boot.

Here's my info:

-- CUT HERE --
Fixit# uname -a
FreeBSD  6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC
2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
Fixit# kldstat
Id Refs Address    Size     Name
 1    4 0xc0400000 63070c   kernel
 2    1 0xc0e69000 fc5c     geom_vinum.ko
 3   16 0xc0e79000 568dc    acpi.ko
Fixit# fdisk ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=3D17753 heads=3D15 sectors/track=3D63 (945 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3D17753 heads=3D15 sectors/track=3D63 (945 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 16776522 (8191 Meg), flag 80 (active)
=09beg: cyl 0/ head 1/ sector 1;
=09end: cyl 344/ head 14/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
Fixit# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 16776522        0    unused        0     0         # "raw" part, don't=
 edit
  d: 16776506       16     vinum
Fixit# gvinum printconfig
# Vinum configuration of , saved at Tue Dec 20 12:28:05 2005
drive d0 device /dev/ad0s1d
volume usr
volume tmp
volume var
volume swap
volume root
plex name usr.p0 org concat vol usr
plex name tmp.p0 org concat vol tmp
plex name var.p0 org concat vol var
plex name swap.p0 org concat vol swap
plex name root.p0 org concat vol root
sd name usr.p0.s0 drive d0 len 2097152s driveoffset 3068169s plex
usr.p0 plexoffset 0s
sd name tmp.p0.s0 drive d0 len 524288s driveoffset 2543881s plex
tmp.p0 plexoffset 0s
sd name var.p0.s0 drive d0 len 524288s driveoffset 2019593s plex
var.p0 plexoffset 0s
sd name swap.p0.s0 drive d0 len 970752s driveoffset 1048841s plex
swap.p0 plexoffset 0s
sd name root.p0.s0 drive d0 len 1048576s driveoffset 265s plex root.p0
plexoffset 0s
-- CUT HERE --

However, following a reboot, my gvinum config looks like:

-- CUT HERE --
Fixit# gvinum printconfig
# Vinum configuration of , saved at Tue Dec 20 13:41:03 2005
drive d0 device /dev/ad0s1d
volume usr
volume tmp
volume var
volume swap
volume root
plex name usr.p0 org concat
plex name tmp.p0 org concat
plex name var.p0 org concat
plex name swap.p0 org concat
plex name root.p0 org concat
sd name usr.p0.s0 drive d0 len 2097152s driveoffset 3068169s
sd name tmp.p0.s0 drive d0 len 524288s driveoffset 2543881s
sd name var.p0.s0 drive d0 len 524288s driveoffset 2019593s
sd name swap.p0.s0 drive d0 len 970752s driveoffset 1048841s
sd name root.p0.s0 drive d0 len 1048576s driveoffset 265s
-- CUT HERE --

The subdisks seem to be getting detached from the plexes, which are
getting detached from the volumes. The "attach" command doesn't seem
to be supported in 6.0's vinum implementation, so at this point I need
to recreate the plexes & subdisks.

Any thoughts? Am I missing something?

Thanks.

- Mike



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