Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2000 09:52:18 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Johan Pettersson <johpe159@student.liu.se>
Cc:        FreeBSD question <questions@FreeBSD.ORG>
Subject:   Re: vinum, 24G hd
Message-ID:  <20000313095217.I6807@freebie.lemis.com>
In-Reply-To: <20000310182115.A9258@b41.ryd.student.liu.se>
References:  <20000309185022.A5708@b41.ryd.student.liu.se> <20000310153010.A842@freebie.lemis.com> <20000310182115.A9258@b41.ryd.student.liu.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 10 March 2000 at 18:21:15 +0100, Johan Pettersson wrote:
> On Fri, Mar 10, 2000 at 03:30:10PM +1030, Greg Lehey wrote:
>> On Thursday,  9 March 2000 at 18:50:22 +0100, Johan Pettersson wrote:
>>> Hello!
>>>
>>> Have problem whith vinum (again=)
>>> Got following error:
>>> -------------------------------------------------
>>> vinum -> create config1
>>>    8: sd length 24405m drive c
>>>    ** 8 No space for  on c: No space left on device
>>>    Configuration summary
>>>
>>>    Drives:         3 (4 configured)
>>>    Volumes:        1 (4 configured)
>>>    Plexes:         1 (8 configured)
>>>    Subdisks:       2 (16 configured)
>>>
>>>    D a                     State: up       Device /dev/wd1h        Avail: 0/6149 MB (0%)
>>>    D b                     State: up       Device /dev/wd2h        Avail: 0/6149 MB (0%)
>>>    D c                     State: up       Device /dev/wd3h        Avail: 48809/24405 MB (200%)
>>>
>>>    V daemon                State: up       Plexes:       1 Size:         12 GB
>>>
>>>    P daemon.p0           C State: up       Subdisks:     2 Size:         12 GB
>>>
>>>    S daemon.p0.s0          State: up       PO:        0  B Size:       6149 MB
>>>    S daemon.p0.s1          State: up       PO:     6149 MB Size:       6149 MB
>>> ----------------------------------------------------
>>> Can't vinum handle a 24G hd ?
>>>
>>> ---------config1------------------------------------
>>> drive a device /dev/wd1h
>>> drive b device /dev/wd2h
>>> drive c device /dev/wd3h
>>> volume daemon
>>> plex org concat
>>> sd length 6149m drive a
>>> sd length 6149m drive b
>>> sd length 24405m drive c
>>> -----------------------------------------------------
>>
>> Sure.  But it needs 131.5 kB of space for its configuration.  What
>> puzzles me more is how you were able to configure the other two
>> subdisks.  That may be a bug, but I can't see it in the code.  Which
>> version of FreeBSD are you using?
>
> Dmesg:
> ---------8<--------------------
> wd3: 24405MB (49981680 sectors), 49585 cyls, 16 heads, 63 S/T, 512 B/S
> ---------8<--------------------
>
> when I changed the config from 24405 to 24404 it seems to work!
>
> ---------8<--------------------
> sd length 24404m drive c
> ---------8<--------------------
>
> vinum -> create config1
> Configuration summary
>
> Drives:         3 (4 configured)
> Volumes:        1 (4 configured)
> Plexes:         1 (8 configured)
> Subdisks:       3 (16 configured)
>
> D a                     State: up       Device /dev/wd1h        Avail: 0/6149 MB (0%)
> D b                     State: up       Device /dev/wd2h        Avail: 0/6149 MB (0%)
> D c                     State: up       Device /dev/wd3h        Avail: 0/24405 MB (0%)
>
> V daemon                State: up       Plexes:       1 Size:         35 GB
>
> P daemon.p0           C State: up       Subdisks:     3 Size:         35 GB
>
> S daemon.p0.s0          State: up       PO:        0  B Size:       6149 MB
> S daemon.p0.s1          State: up       PO:     6149 MB Size:       6149 MB
> S daemon.p0.s2          State: up       PO:       12 GB Size:         23 GB
> vinum ->
>
> maybe someone can explain for me what happend ?

Sure, it's a rounding error.  As I mentioned before, Vinum uses 131.5
kB (265 sectors) at the beginning of each drive for config
information.  You can't put subdisks in this area.  You've specified
sizes in MB, which is a bad idea, because you can end up wasting up to
1 MB space.  In this particular case, you have 24405 MB and 240
additional sectors, not quite enough.  In the case of the other
drives, the space left over was enough.  You could have specified the
size of the subdisk as 0 (use the largest chunk available) or as
49981415 sectors (the size of the drive - 265).

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?20000313095217.I6807>