Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 10:39:03 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Rick Moore <rick@geckobot.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Vinum problem
Message-ID:  <20000510103903.X75157@freebie.lemis.com>
In-Reply-To: <004201bfb9e7$6f92f870$fd64a8c0@patches>
References:  <004201bfb9e7$6f92f870$fd64a8c0@patches>

next in thread | previous in thread | raw e-mail | index | archive | help
[Format recovered--see http://www.lemis.com/email/email-format.html]

On Tuesday,  9 May 2000 at 11:50:23 -0700, Rick Moore wrote:
> Hello!
>
> I'm running a fresh load of FreeBSD 4.0.  I've got 10 SCSI disks
> running on an Adaptec 39160 which appear to work fine with file
> systems.
>
> I remove the file systems from fstab and reboot.  All the labels
> look like this:
>
> # /dev/rda0c:
> type: SCSI
> disk: da0s1
> label:
> flags:
> bytes/sector: 512
> sectors/track: 51
> tracks/cylinder: 166
> sectors/cylinder: 8466
> cylinders: 2118
> sectors/unit: 17938986
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0
>
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c: 17938986        0    unused        0     0         # (Cyl.    0 - 2118*)
>   e: 17938986        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 2118*)

You need a vinum partition somewhere.

> I start vinum with "kldload vinum"

You don't need to do that.  Starting vinum will load the kld
automatically.

> and issue the following command:
>
> vinum "create -f striping" where "striping" is the following:
>
> drive d0 device /dev/da0e

This won't work.  You need a partition of type 'vinum'.  From the man
page:

   DRIVE LAYOUT CONSIDERATIONS
     vinum drives are currently BSD disk partitions.  They must be of type
     vinum in order to avoid overwriting data used for other purposes.  Use
     disklabel -e to edit a partition type definition.  The following display
     shows a typical partition layout as shown by disklabel:

     8 partitions:
     #        size   offset    fstype   [fsize bsize bps/cpg]
       a:    81920   344064    4.2BSD        0     0     0   # (Cyl.  240*- 297*)
       b:   262144    81920      swap                        # (Cyl.   57*- 240*)
       c:  4226725        0    unused        0     0         # (Cyl.    0 - 2955*)
       e:    81920        0    4.2BSD        0     0     0   # (Cyl.    0 - 57*)
       f:  1900000   425984    4.2BSD        0     0     0   # (Cyl.  297*- 1626*)
       g:  1900741  2325984     vinum        0     0     0   # (Cyl. 1626*- 2955*)

     In this example, partition g may be used as a vinum partition.  Parti-
     tions a, e and f may be used as UFS file systems or ccd partitions.  Par-
     tition b is a swap partition, and partition c represents the whole disk
     and should not be used for any other purpose.

> This works OK every now and then.

That surprises me.

> Very often the server crashes!

If you have a crash, please supply the information I ask for in the
man page:

   Reporting problems with Vinum

     If you find any bugs in vinum, please report them to Greg Lehey
     <grog@lemis.com>.  Supply the following information:

     o   The output of the vinum list command.

     o   Any messages printed in /var/log/messages. All such messages will be
         identified by the text vinum at the beginning.

     o   If you have a panic, a stack trace as described above.

You can get more detail at http://www.lemis.com/vinum/how-to-debug.html.

> Of course, the resulting volume is too small to be useful.

The output of 'vinum list' would be interesting here.

> As a test I run "vinum resetconfig" followed by "vinum create -f
> striping" again.  This time the server crashes.  It's the exact same
> config file!

I'd like to see the dump.  It looks like your disk layout is hosed,
but it shouldn't cause a panic.

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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