Date: Fri, 26 Sep 2003 21:13:32 -0400 (EDT) From: Robert Watson <rwatson@FreeBSD.org> To: "Greg 'groggy' Lehey" <grog@FreeBSD.org> Cc: David Gilbert <dgilbert@dclg.ca> Subject: Re: recent changes prohibit vinum swap. Message-ID: <Pine.NEB.3.96L.1030926210250.73471B-100000@fledge.watson.org> In-Reply-To: <20030927003752.GS16008@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1030926210250.73471B-100000>
