Re: vinum: no drives found partitiontype=vinum ?

2003-09-09 Thread Greg Lehey
On Sunday,  7 September 2003 at 11:31:41 +0200, Simon Strandgaard wrote:
 one question; Why does vinum not start at system startup ?

 At the bottom of my rc.conf file, I have added:
 start_vinum=YES

 When I reboot the system, all I see in dmesg is:
 vinum: no drives found


 I can start it manualy:

 server# vinum create config1
 2 drives:
 D a State: up   /dev/ad1s1c A: 39166/39266 MB (99%)
 D b State: up   /dev/ad2s1c A: 229/329 MB (69%)

This is a bug in Vinum.  It shouldn't let you start it manually.

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):

 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:81920   3440644.2BSD0 0 0   # (Cyl.  240*- 297*)
   b:   26214481920  swap# (Cyl.   57*- 240*)
   c:  42267250unused0 0 # (Cyl.0 - 2955*)
   e:8192004.2BSD0 0 0   # (Cyl.0 - 57*)
   f:  190   4259844.2BSD0 0 0   # (Cyl.  297*- 1626*)
   g:  1900741  2325984 vinum0 0 0   # (Cyl. 1626*- 2955*)

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

 The vinum utility uses the first 265 sectors on each partition for con-
 figuration information, so the maximum size of a subdisk is 265 sectors
 smaller than the drive.

Choose a different partition, and reset partition c to unused.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
Finger [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vinum: no drives found partitiontype=vinum ?

2003-09-09 Thread Simon Strandgaard
On Tue, 2003-09-09 at 17:29, Greg Lehey grog-at-lemis.com |stuff| wrote:
 On Sunday,  7 September 2003 at 11:31:41 +0200, Simon Strandgaard wrote:
[snip]
  I can start it manualy:
 
  server# vinum create config1
  2 drives:
  D a State: up   /dev/ad1s1c A: 39166/39266 MB (99%)
  D b State: up   /dev/ad2s1c A: 229/329 MB (69%)
 
 This is a bug in Vinum.  It shouldn't let you start it manually.

It feelt really ackward.  I had overseen the 'setupstate' flag and it
solved the problem partialy for me :-)


 From the man page:
 
 DRIVE LAYOUT CONSIDERATIONS
[snip]
  In this example, partition ``g'' may be used as a vinum partition.  Par-
  titions ``a'', ``e'' and ``f'' may be used as UFS file systems or ccd
  partitions.  Partition ``b'' is a swap partition, and partition ``c''
  represents the whole disk and should not be used for any other purpose.
[snip]
 Choose a different partition, and reset partition c to unused.

Yes, I also oversaw this in the man pages. I figured it out last night
with trial'n'error, Now im using partition 'e:'.


Now vinum works perfectly for me. I appreciate your help, thanks :-) 

I find vinums man pages is very good, but maybe the dd/fdisk/disklabel
sections are a bit vague and confusing for newcomers. What do you think?

--
Simon Strandgaard

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]