Skip site navigation (1)Skip section navigation (2)
Date:      18 Dec 2005 18:24:48 +0100
From:      Ludo Koren <lk@tempest.sk>
To:        freebsd-questions@freebsd.org
Subject:   gvinum: adding plex and subdisks to existing volume
Message-ID:  <87acey71y7.fsf@lk.tempest.sk>

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


Hi,

I'm using 5.4-STABLE. One of the mirrored disks died. I want to add
new disk, which has not the same size as the died one.

The output of the gvinum l is the following:
# gvinum l
4 drives:
D rd2                   State: up       /dev/da2s1h   A: 0/1023 MB (0%)
D d2                    State: up       /dev/da2s1f   A: 0/15452 MB (0%)
D d3                    State: up       /dev/da3s1    A: 0/70001 MB (0%)
D d4                    State: up       /dev/da1s1    A: 0/70001 MB (0%)

2 volumes:
V root                  State: up       Plexes:       1 Size:       1023 MB
V usr                   State: up       Plexes:       2 Size:         83 GB

4 plexes:
P usr.p0              C State: down     Subdisks:     1 Size:         68 GB
P usr.p1              C State: up       Subdisks:     2 Size:         83 GB
P root.p1             C State: up       Subdisks:     1 Size:       1023 MB
P root.p0             C State: down     Subdisks:     0 Size:          0  B

6 subdisks:
S usr.p0.s0             State: down     D: d1           Size:         15 GB
S usr.p1.s0             State: up       D: d2           Size:         15 GB
S root.p1.s0            State: up       D: rd2          Size:       1023 MB
S root.p0.s0            State: down     D: rd1          Size:       1023 MB
S usr.p0.s1             State: up       D: d3           Size:         68 GB
S usr.p1.s1             State: up       D: d4           Size:         68 GB

and 

# camcontrol devlist -v
scbus0 on ahd0 bus 0:
<SEAGATE ST373207LW 0004>          at scbus0 target 3 lun 0 (pass0,da0)
<IBM IC35L073UWDY10-0 S25F>        at scbus0 target 9 lun 0 (pass1,da1)
<HP C5683A C005>                   at scbus0 target 10 lun 0 (sa0,pass2)
<  >                               at scbus0 target -1 lun -1 ()
scbus1 on ahd1 bus 0:
<IBM IC35L018UWD210-0 S5BS>        at scbus1 target 1 lun 0 (pass3,da2)
<IBM IC35L073UWDY10-0 S23C>        at scbus1 target 8 lun 0 (pass4,da3)
<  >                               at scbus1 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

I want to have the whole new disk a one vinum slice so the

# disklabel da0s1
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 143363700      281    4.2BSD        0     0     0 
  c: 143363997        0    unused        0     0         # "raw" part, don't edit
  h: 143363981       16     vinum                    

The old one was:

# disklabel da2s1
# /dev/da2s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  2096855      281    4.2BSD     2048 16384     0 
  b:  2097152  2097152      swap                    
  c: 35840952        0    unused        0     0         # "raw" part, don't edit
  f: 31646648  4194304     vinum                    
  h:  2097136       16     vinum     


When I try to do:
# gvinum create gvinum.conf

it ends up in immediate panic (page fault). The gvinum.conf file:

drive d1b device /dev/da0s1h
plex name usr.p2 org concat vol usr
plex name root.p2 org concat vol root
sd name root.p2.s0 drive d1b len 2096871s driveoffset 265s plex root.p2 plexoffset 0s
sd name usr.p2.s0 drive d1b len 31646383s driveoffset 2097136s plex usr.p2 plexoffset 0s

Am I doing something wrong? How can be added a new disk to existing
mirror in gvinum?

Any help appreciated, I cannot find useful hints.

Regards,

lk



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