From owner-freebsd-current@FreeBSD.ORG Fri Sep 26 18:14:04 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D93216A4BF; Fri, 26 Sep 2003 18:14:04 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4EBE4400F; Fri, 26 Sep 2003 18:14:02 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id h8R1DW7R089594; Fri, 26 Sep 2003 21:13:32 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h8R1DWc6089591; Fri, 26 Sep 2003 21:13:32 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 26 Sep 2003 21:13:32 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Greg 'groggy' Lehey" In-Reply-To: <20030927003752.GS16008@wantadilla.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org cc: David Gilbert Subject: Re: recent changes prohibit vinum swap. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 01:14:04 -0000 On Sat, 27 Sep 2003, Greg 'groggy' Lehey wrote: > > I recently noticed that Vinum may be averse to blocksizes other than > > 512 bytes. > > It shouldn't be. There's never been any dependency on it. I've attached the output from trying to use a swap md set below the malloc md set. > > I also noticed that the vinum commandline tool is a bit > > devfs-unfriendly, or at least, it gets pretty verbose about how all > > the files/directories it wants to create are already present. It > > could be that a test for devfs conditionally causing a test for > > EEXIST would go a long way in muffling the somewhat loud complaining > > :-). > > I'm not sure I understand this. Can you give me a concrete example? none# vinum vinum -> quit none# mdconfig -a -t malloc -s 4m md0 none# mdconfig -a -t malloc -s 4m md1 none# mdconfig -a -t malloc -s 4m md2 none# mdconfig -a -t malloc -s 4m md3 none# vinum vinum -> concat -v /dev/md0 /dev/md1 /dev/md2 /dev/md3 volume vinum0 plex name vinum0.p0 org concat drive vinumdrive0 device /dev/md0 sd name vinum0.p0.s0 drive vinumdrive0 size 0 drive vinumdrive1 device /dev/md1 sd name vinum0.p0.s1 drive vinumdrive1 size 0 drive vinumdrive2 device /dev/md2 sd name vinum0.p0.s2 drive vinumdrive2 size 0 drive vinumdrive3 device /dev/md3 sd name vinum0.p0.s3 drive vinumdrive3 size 0 Can't create /dev/vinum/vinum0: File exists Can't create /dev/vinum/vol/vinum0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex: No such file or directory Can't create /dev/vinum/plex/vinum0.p0: File exists Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0.sd: No such file or directory Can't create /dev/vinum/sd/vinum0.p0.s0: File exists Can't create /dev/vinum/sd/vinum0.p0.s1: File exists Can't create /dev/vinum/sd/vinum0.p0.s2: File exists Can't create /dev/vinum/sd/vinum0.p0.s3: File exists V vinum0 State: up Plexes: 1 Size: 15 MB P vinum0.p0 C State: up Subdisks: 4 Size: 15 MB S vinum0.p0.s0 State: up D: vinumdrive0 Size: 3963 kB S vinum0.p0.s1 State: up D: vinumdrive1 Size: 3963 kB S vinum0.p0.s2 State: up D: vinumdrive2 Size: 3963 kB S vinum0.p0.s3 State: up D: vinumdrive3 Size: 3963 kB Just to demonstrate it's not because of -v: none# vinum vinum -> concat /dev/md0 /dev/md1 /dev/md2 /dev/md3 Can't create /dev/vinum/vinum0: File exists Can't create /dev/vinum/vol/vinum0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex: No such file or directory Can't create /dev/vinum/plex/vinum0.p0: File exists Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0.sd: No such file or directory Can't create /dev/vinum/sd/vinum0.p0.s0: File exists Can't create /dev/vinum/sd/vinum0.p0.s1: File exists Can't create /dev/vinum/sd/vinum0.p0.s2: File exists Can't create /dev/vinum/sd/vinum0.p0.s3: File exists Attached below is the swap-backed version. Previously when I've bumped into compatability problems involving different types of md devices, it's come down to the blocksize on swap-backed nodes. Doesn't have to be the actual cause, but it might be a good place to start. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories none# mdconfig -a -t swap -s 4m md0 none# mdconfig -a -t swap -s 4m md1 none# mdconfig -a -t swap -s 4m md2 none# mdconfig -a -t swap -s 4m md3 none# vinum vinum -> concat -v /dev/md0 /dev/md1 /dev/md2 /dev/md3 volume vinum0 plex name vinum0.p0 org concat drive vinumdrive0 device /dev/md0 sd name vinum0.p0.s0 drive vinumdrive0 size 0 drive vinumdrive1 device /dev/md1 sd name vinum0.p0.s1 drive vinumdrive1 size 0 drive vinumdrive2 device /dev/md2 sd name vinum0.p0.s2 drive vinumdrive2 size 0 drive vinumdrive3 device /dev/md3 sd name vinum0.p0.s3 drive vinumdrive3 size 0 Can't create /dev/vinum/vinum0: File exists Can't create /dev/vinum/vol/vinum0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex: No such file or directory Can't create /dev/vinum/plex/vinum0.p0: File exists Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0: No such file or directory Can't create /dev/vinum/vol/vinum0.plex/vinum0.p0.sd: No such file or directory Can't create /dev/vinum/sd/vinum0.p0.s0: File exists Can't create /dev/vinum/sd/vinum0.p0.s1: File exists Can't create /dev/vinum/sd/vinum0.p0.s2: File exists Can't create /dev/vinum/sd/vinum0.p0.s3: File exists V vinum0 State: down Plexes: 1 Size: 15 MB P vinum0.p0 C State: faulty Subdisks: 4 Size: 15 MB S vinum0.p0.s0 State: crashed D: vinumdrive0 Size: 3963 kB S vinum0.p0.s1 State: crashed D: vinumdrive1 Size: 3963 kB S vinum0.p0.s2 State: crashed D: vinumdrive2 Size: 3963 kB S vinum0.p0.s3 State: crashed D: vinumdrive3 Size: 3963 kB