kern/76871: vinum / does not find its second drive

Arne Wörner arne_woerner at yahoo.com
Sun Jan 30 13:40:16 PST 2005


>Number:         76871
>Category:       kern
>Synopsis:       vinum / does not find its second drive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 30 21:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Arne Wörner
>Release:        R5.3
>Organization:
>Environment:
FreeBSD neo.riddick.homeunix.org. 5.3-RELEASE FreeBSD 5.3-RELEASE #24: Wed Jan 26 20:08:08 UTC 2005     aw at neo.riddick.homeunix.org.:/opt/src/sys/i386/compile/RIDDICK  i386

>Description:
After I used a 4.9-STABLE miniinst CD, vinum complained about missing subdisks.

Then I had a little fight with disabling vinum completely (the root partition is a vinum device).


>How-To-Repeat:
after a fresh reboot:

neo# vinum l
1 drives:
D vaako                 State: up       /dev/ad0s1d     A: 0/32768 MB (0%)
D riddick               State: referenced       unknown A: 0/0 MB

2 volumes:
V base                  State: up       Plexes:       2 Size:        512 MB
V user                  State: up       Plexes:       2 Size:         31 GB

4 plexes:
P base0               C State: up       Subdisks:     1 Size:        512 MB
P user1               C State: faulty   Subdisks:     1 Size:         31 GB
P user0               C State: up       Subdisks:     1 Size:         31 GB
P base1               C State: faulty   Subdisks:     1 Size:        512 MB

4 subdisks:
S base0.s0              State: up       D: vaako        Size:        512 MB
S user1.s0              State: stale    D: riddick      Size:         31 GB
S user0.s0              State: up       D: vaako        Size:         31 GB
S base1.s0              State: stale    D: riddick      Size:        512 MB
neo# vinum read 
neo# vinum l
2 drives:
D vaako                 State: up       /dev/ad0s1d     A: 0/32768 MB (0%)
D riddick               State: up       /dev/ad1s1d     A: 32767/32768 MB (100%)

2 volumes:
V base                  State: up       Plexes:       2 Size:        512 MB
V user                  State: up       Plexes:       2 Size:         31 GB

4 plexes:
P base0               C State: up       Subdisks:     1 Size:        512 MB
P user1               C State: faulty   Subdisks:     1 Size:         31 GB
P user0               C State: up       Subdisks:     1 Size:         31 GB
P base1               C State: faulty   Subdisks:     1 Size:        512 MB

4 subdisks:
S base0.s0              State: up       D: vaako        Size:        512 MB
S user1.s0              State: stale    D: riddick      Size:         31 GB
S user0.s0              State: up       D: vaako        Size:         31 GB
S base1.s0              State: stale    D: riddick      Size:        512 MB


Here are both disklabels:
neo# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576      281    4.2BSD        0     0     0 
  b:   102481 67108880      swap                    
  c: 67211361        0    unused        0     0         # "raw" part, don't edit
  d: 67108864       16     vinum                    
  f: 66060023  1048857    4.2BSD        0     0     0 
neo# disklabel ad1s1
# /dev/ad1s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576   524490    4.2BSD        0     0     0 
  b:   524209       16      swap                    
  c: 312581745        0    unused        0     0         # "raw" part, don't edit
  d: 67108864   524225     vinum                    
  e: 244948656 67633089    4.2BSD        0     0     0 
  f: 66060023  1573066    4.2BSD        0     0     0 


Funnily ad0/ad1 have a disklabel, too:
neo# disklabel ad0
# /dev/ad0:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576      281    4.2BSD     2048 16384 28552 
  b:   102481 67108880      swap                    
  c: 67211361        0    unused        0     0         # "raw" part, don't edit
  d: 67108864       16     vinum                    
  f: 66060023  1048857    4.2BSD     2048 16384 28552 
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard system utilities
neo# disklabel ad1
# /dev/ad1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 312581792       16    unused        0     0       
  c: 312581808        0    unused        0     0         # "raw" part, don't edit


Here is my vinum dumpconfig:
neo# vinum dumpconfig
Drive vaako:    Device /dev/ad0s1d
                Created on  at Sun Jan 30 17:09:50 2005
                Config last updated Sun Jan 30 21:26:40 2005
                Size:      34359738368 bytes (32768 MB)
volume base state up
volume user state up
plex name base0 state up org concat vol base 
plex name user1 state faulty org concat vol user 
plex name user0 state up org concat vol user 
plex name base1 state faulty org concat vol base 
sd name base0.s0 drive vaako len 1048576s driveoffset 265s state up plex base0 plexoffset 0s 
sd name user1.s0 drive riddick len 66060023s driveoffset 1048841s state stale plex user1 plexoffset 0s 
sd name user0.s0 drive vaako len 66060023s driveoffset 1048841s state up plex user0 plexoffset 0s 
sd name base1.s0 drive riddick len 1048576s driveoffset 265s state stale plex base1 plexoffset 0s 

Drive /dev/ad0s1d: 32 GB (34359738368 bytes)
Drive riddick:  Device /dev/ad1s1d
                Created on  at Sun Jan 30 17:44:47 2005
                Config last updated Sun Jan 30 21:26:40 2005
                Size:      34359738368 bytes (32768 MB)
volume base state up
volume user state up
plex name base0 state up org concat vol base 
plex name user1 state faulty org concat vol user 
plex name user0 state up org concat vol user 
plex name base1 state faulty org concat vol base 
sd name base0.s0 drive vaako len 1048576s driveoffset 265s state up plex base0 plexoffset 0s 
sd name user1.s0 drive riddick len 66060023s driveoffset 1048841s state stale plex user1 plexoffset 0s 
sd name user0.s0 drive vaako len 66060023s driveoffset 1048841s state up plex user0 plexoffset 0s 
sd name base1.s0 drive riddick len 1048576s driveoffset 265s state stale plex base1 plexoffset 0s 

Drive /dev/ad1s1d: 32 GB (34359738368 bytes)


Here is my mount output:
neo# mount
/dev/vinum/base on / (ufs, local)
devfs on /dev (devfs, local)
/dev/vinum/user on /usr (ufs, local, soft-updates)
/dev/ad1s1e on /opt (ufs, local, soft-updates)
devfs on /var/named/dev (devfs, local)

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list