Date: Thu, 20 May 1999 02:29:13 +0200 From: Palle Girgensohn <girgen@partitur.se> To: Greg Lehey <grog@lemis.com> Cc: FreeBSD Questions <questions@FreeBSD.org> Subject: Re: vinum reporting 99% free on half used drive! Message-ID: <37435759.8F7A1AA4@partitur.se> References: <37432890.C7AEAC69@partitur.se> <19990520092705.N89091@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! I checked again, and the subdisks had offsets. I have tape backups, so I dared set up the second drive as mirror for the two plexes on the first. After that, vinum reported quite correct all the way. Seems there might be a bug in reporting disk size with only one drive? Not very common setup, I guess, but it can be handy initially, to start things off. The figures looked fine right after creating the second drive and its plexes and subdisks, and starting them. I didn't save a copy from the 'list' command before adding a third plex, but as you can see, it looks great now. Oh yes: uname-> 3.2-BETA FreeBSD, May 16th. It's fresh. Here's what I did to get it back on track: vinum4.conf: drive disk4 device /dev/da4s1 volume usr plex org concat sd length 220m drive disk4 volume local plex org concat sd length 4g drive disk4 create vinum4.conf start usr.p1.s0 start local.p1.s0 Oh, another question. Shall I not be using /dev/da4s1 when issuing the drive command? If I have a disklabel where I use some part of the disk for ufs or swap, and have say da4s1e set up for vinum, shall I say device /dev/da4e instead? Is that important when creating the drives? I start vinum with 'vinum start' and it last reported > vinum: loaded > vinum: reading configuration from /dev/da5e on startup. Looks fine to me ;-) thanks for your support, and also for this fine piece of software! /Palle PS. Here's the new list -V output: $ vinum list -V Configuration summary Drives: 2 (4 configured) Volumes: 6 (4 configured) Plexes: 6 (8 configured) Subdisks: 8 (16 configured) Drive disk5: Device /dev/da5e Created on trumpet.partitur.se at Mon May 17 04:27:23 1999 Config last updated Thu May 20 01:42:37 1999 Size: 9101858304 bytes (8680 MB) Used: 9096532480 bytes (8675 MB) Available: 5325824 bytes (5 MB) State: up Last error: none Free list contains 1 entries: Offset Size 17766665 10402 Drive disk4: Device /dev/da4s1 Created on trumpet.partitur.se at Thu May 20 00:13:24 1999 Config last updated Thu May 20 01:42:37 1999 Size: 9097127424 bytes (8675 MB) Used: 9096532480 bytes (8675 MB) Available: 594944 bytes (0 MB) State: up Last error: none Free list contains 1 entries: Offset Size 17766665 1162 Volume usr: Size: 230686720 bytes (220 MB) State: up Flags: open 2 plexes Read policy: round robin Plex 0: usr.p0 (concat), 220 MB Plex 1: usr.p1 (concat), 220 MB Volume local: Size: 4294967296 bytes (4096 MB) State: up Flags: open 2 plexes Read policy: round robin Plex 0: local.p0 (concat), 4096 MB Plex 1: local.p1 (concat), 4096 MB Volume x11: Size: 536870912 bytes (512 MB) State: up Flags: open 1 plexes Read policy: round robin Plex 0: x11.p0 (striped), 512 MB Volume home: Size: 8604614656 bytes (8206 MB) State: up Flags: open 1 plexes Read policy: round robin Plex 0: home.p0 (striped), 8206 MB Plex usr.p0: Size: 230686720 bytes (220 MB) Subdisks: 1 State: up Organization: concat Part of volume usr Subdisk 0: usr.p0.s0 state: up size 230686720 (220 MB) offset 0 (0x0) Plex local.p0: Size: 4294967296 bytes (4096 MB) Subdisks: 1 State: up Organization: concat Part of volume local Subdisk 0: local.p0.s0 state: up size 4294967296 (4096 MB) offset 0 (0x0) Plex usr.p1: Size: 230686720 bytes (220 MB) Subdisks: 1 State: up Organization: concat Part of volume usr Subdisk 0: usr.p1.s0 state: up size 230686720 (220 MB) offset 0 (0x0) Plex local.p1: Size: 4294967296 bytes (4096 MB) Subdisks: 1 State: up Organization: concat Part of volume local Subdisk 0: local.p1.s0 state: up size 4294967296 (4096 MB) offset 0 (0x0) Plex x11.p0: Size: 536870912 bytes (512 MB) Subdisks: 2 State: up Organization: striped Stripe size: 256 kB Part of volume x11 Subdisk 0: x11.p0.s0 state: up size 268435456 (256 MB) Subdisk 1: x11.p0.s1 state: up size 268435456 (256 MB) Plex home.p0: Size: 8604614656 bytes (8206 MB) Subdisks: 2 State: up Organization: striped Stripe size: 256 kB Part of volume home Subdisk 0: home.p0.s0 state: up size 4302307328 (4103 MB) Subdisk 1: home.p0.s1 state: up size 4302307328 (4103 MB) Subdisk usr.p0.s0: Size: 230686720 bytes (220 MB) State: up Plex usr.p0 at offset 0 (0 B) Drive disk5 (/dev/da5e) at offset 135680 (132 kB) Subdisk local.p0.s0: Size: 4294967296 bytes (4096 MB) State: up Plex local.p0 at offset 0 (0 B) Drive disk5 (/dev/da5e) at offset 230822400 (220 MB) Subdisk usr.p1.s0: Size: 230686720 bytes (220 MB) State: up Plex usr.p1 at offset 0 (0 B) Drive disk4 (/dev/da4s1) at offset 135680 (132 kB) Subdisk local.p1.s0: Size: 4294967296 bytes (4096 MB) State: up Plex local.p1 at offset 0 (0 B) Drive disk4 (/dev/da4s1) at offset 230822400 (220 MB) Subdisk x11.p0.s0: Size: 268435456 bytes (256 MB) State: up Plex x11.p0 at offset 0 (0 B) Drive disk4 (/dev/da4s1) at offset 4525789696 (4316 MB) Subdisk x11.p0.s1: Size: 268435456 bytes (256 MB) State: up Plex x11.p0 at offset 262144 (256 kB) Drive disk5 (/dev/da5e) at offset 4525789696 (4316 MB) Subdisk home.p0.s0: Size: 4302307328 bytes (4103 MB) State: up Plex home.p0 at offset 0 (0 B) Drive disk4 (/dev/da4s1) at offset 4794225152 (4572 MB) Subdisk home.p0.s1: Size: 4302307328 bytes (4103 MB) State: up Plex home.p0 at offset 262144 (256 kB) Drive disk5 (/dev/da5e) at offset 4794225152 (4572 MB) Greg Lehey wrote: > > On Wednesday, 19 May 1999 at 23:09:36 +0200, Palle Girgensohn wrote: > > Hi! > > > > This is odd, or am I just misinterpreting? > > It's odd. > > > vinum list -V > > > > Configuration summary > > > > Drives: 1 (4 configured) > > Volumes: 2 (4 configured) > > Plexes: 2 (8 configured) > > Subdisks: 2 (16 configured) > > > > Drive disk5: Device /dev/da5e > > Created on trumpet.partitur.se at Mon May 17 04:27:23 1999 > > Config last updated Mon May 17 05:29:25 1999 > > Size: 9101858304 bytes (8680 MB) > > Used: 135680 bytes (0 MB) <-------------- > > ugh! > > Available: 9101722624 bytes (8680 MB) > > State: up > > Last error: none > > Free list contains 1 entries: > > Offset Size > > 265 17776802 > > > > Subdisk usr.p0.s0: > > Size: 230686720 bytes (220 MB) > > State: up > > Plex usr.p0 at offset 0 (0 B) > > Drive disk5 (/dev/da5e) at offset 135680 (132 kB) > > > > Subdisk local.p0.s0: > > Size: 4294967296 bytes (4096 MB) > > State: up > > Plex local.p0 at offset 0 (0 B) > > Drive disk5 (/dev/da5e) at offset 230822400 (220 MB) > > > and df -k reports: > > ... > > /dev/vinum/usr 218319 97719 103135 49% /usr > > /dev/vinum/local 4065262 2002093 1737949 54% /usr/local > > > > All offsets are zero! What'll happen when I add another volume? > > You may very well overwrite the data you have. Don't. > > > Here are the file to set up vinum: > > > > vinum.rc: > > drive disk5 device /dev/da5s1 > > volume usr > > plex org concat > > sd length 220m drive disk5 > > > > volume local > > plex org concat > > sd length 4g drive disk5 > > Looks fine. > > >> vinum create vinum.rc > > > > I intend to add a second disk now, hence only one drive at the moment... > > > > Has it anything to do with the slice (da5s1) being used, and not the > > "compatibility" partition? > > It shouldn't do, but you shouldn't be doing that. You might not be > able to start vinum again. > > > vinum reports da5e... I have edited the disklabel (using -e). > > OK, looks like you did start it. > > What version are you using? What happens after you stop and start > Vinum? > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message 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?37435759.8F7A1AA4>