Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 20:20:50 +0300 (EEST)
From:      Nevermind <never@nevermind.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/37231: vinum cannot make mirroring on vn(4) devices
Message-ID:  <200204181720.g3IHKogs045012@mile.nevermind.kiev.ua>

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

>Number:         37231
>Category:       kern
>Synopsis:       vinum cannot make mirroring on vn(4) devices
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 18 10:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nevermind
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Net.Style Ltd.
>Environment:
FreeBSD mile.nevermind.kiev.ua 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Apr 15 18:52:17 EEST 2002 root@mile.nevermind.kiev.ua:/usr/obj/usr/src/sys/mile i386
FreeBSD kurush.unknown.com.ua 4.4-RELEASE-p9 FreeBSD 4.4-RELEASE-p9 #0: Tue Apr 16 17:40:56 EEST 2002     root@kurush.unknown.com.ua:/usr/obj/usr/src/sys/kurush  i386
>Description:
vinum(4) cannot create mirror volume (and, I suppose, all other types of volumes) on vn(4)-created disks:

dd if=/dev/zero of=0 bs=1k count=16k
dd if=/dev/zero of=1 bs=1k count=16k
vnconfig -e -s labels,reserve vn0 0
vnconfig -e -s labels,reserve vn1 1
disklabel -r -w vn0 auto
disklabel -r -w vn1 auto

Then disklabel and create 'h' partition with type vinum:
disklabel -e vn0
#			size   offset    fstype   [fsize bsize bps/cpg]
	c:    32768        0    unused        0     0         # (Cyl.    0 - 15)
	h:    32768        0     vinum                        # (Cyl.    0 - 15)
disklabel -e vn1
#			size   offset    fstype   [fsize bsize bps/cpg]
	c:    32768        0    unused        0     0         # (Cyl.    0 - 15)
	h:    32768        0     vinum                        # (Cyl.    0 - 15)

vinum.conf:
drive drive1 device /dev/vn0h
drive drive2 device /dev/vn1h
	volume mirror setupstate
	plex name mymirror.drive1 org concat
	sd length 16m drive drive1
	plex name mymirror.drive2 org concat
	sd length 16m drive drive2

vinum -> create -f /etc/vinum.conf 
   5:   sd length 16m drive drive1
** 5 No space for  on drive1: No space left on device
   7:   sd length 16m drive drive2
** 7 No space for  on drive2: No space left on device
2 drives:
D drive1                State: up       Device /dev/vn0h        Avail: 31/16 MB (200%)
D drive2                State: up       Device /dev/vn1h        Avail: 31/16 MB (200%)

1 volumes:
V mirror                State: up       Plexes:       1 Size:          0  B

2 plexes:
P mymirror.drive1     C State: up       Subdisks:     0 Size:          0  B
P mymirror.drive2     C State: up       Subdisks:     0 Size:          0  B

-2 subdisks:

Error does not occur when using regular disks, not vn(4)-created.

>How-To-Repeat:
Look at Description: section.
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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