Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 1999 14:13:16 +1030
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD current users <FreeBSD-current@FreeBSD.ORG>
Subject:   HEADS UP: New version of Vinum
Message-ID:  <19990121141315.H15785@freebie.lemis.com>

next in thread | raw e-mail | index | archive | help
I've just committed a new version of Vinum with a large number of
changes.  It works fine here, much better than the old version, but
there's just a possibility that things may go wrong.  If you have
trouble, please let me know immediately.

One way you can shoot yourself in the foot: the `read' command has
changed.  In the previous version, you specified the name of exactly
one device containing a vinum partition.  This is suboptimal, because
it doesn't allow you to read multiple configurations, and it doesn't
allow you to move drives around.  In the new version, you *must*
specify the names of *all* disks containing Vinum partitions.  For
example, if you have Vinum partitions /dev/da1h /dev/da2h /dev/da3h
/dev/da4h /dev/da5h and /dev/da6h, you might previously have written:

  vinum read /dev/da3h

Now you *must* write:

  vinum read /dev/da1 /dev/da2 /dev/da3 /dev/da4 /dev/da5 /dev/da6

If you do this wrong, you have the potential to wipe out your on-disk
configuration.  You can avoid this by disabling saving the
configuration.  Do this with the `setdaemon' command:

  # vinum
  vinum -> setdaemon 4
  vinum -> read /dev/da1 /dev/da2 /dev/da3 /dev/da4 /dev/da5 /dev/da6

Yes, I know, specifying bits for the setdaemon command is tacky, and
it'll go away.  Bit 4 disables the configuration save.  When your
configuration is recognized correctly, you can re-enable it with
`setdaemon 0'.  For more information RTFM.

The on-disk configuration has also changed.  Previously, it contained
the names of the drives as well as the other objects; now Vinum finds
the drives by itself.  You can check the versions by looking at the
config copy at offset 9 blocks from the beginning of the partition:

   # dd if=/dev/da2h skip=9 count=1
   volume obj state up
   volume src state up
   volume raid state up
   volume r state up
   volume S state up
   plex name obj.p0 state up org concat vol obj 
   plex name obj.p1 state up org striped 128b vol obj 
   plex name src.p0 state up org striped 128b vol src 
   plex name src.p1 state up org concat vol src 
   plex name raid.p0 state up org raid5 vol raid 
   plex name r.p0 state up org raid5 vol r 
   plex name S.p0 state up org raid5 vol S 
   sd name obj.p0.s0 drive drive2 plex obj.p0 state up len 409600b driveoffset 265b plexof1+0 records in

This version shows the new configuration: it starts with volume
definitions.  The old version starts with drive definitions.  The
new version will ignore any drive definitions it finds in the
configuration.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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



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