From owner-freebsd-questions Mon May 3 23:26:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 4F2B515274 for ; Mon, 3 May 1999 23:26:28 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA09718; Tue, 4 May 1999 15:54:52 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA38449; Tue, 4 May 1999 15:54:51 +0930 (CST) Date: Tue, 4 May 1999 15:54:50 +0930 From: Greg Lehey To: Jacques Vidrine Cc: freebsd-questions@freebsd.org Subject: Re: vinum-- resizing disks Message-ID: <19990504155450.U10134@freebie.lemis.com> References: <19990501210026.357911DC5@spawn.nectar.com> <19990502120821.W80561@freebie.lemis.com> <19990502070142.2AEF11DD7@spawn.nectar.com> <19990502163630.K80561@freebie.lemis.com> <19990502150018.1BA3D1DEB@spawn.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990502150018.1BA3D1DEB@spawn.nectar.com>; from Jacques Vidrine on Sun, May 02, 1999 at 10:00:17AM -0500 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 2 May 1999 at 10:00:17 -0500, Jacques Vidrine wrote: > On 2 May 1999 at 16:36, Greg Lehey wrote: >> OK, a couple of things: first, check the size of the drive. It should >> be 17655372 sectors, and not 9430092. Then you could have done an >> fsck, but it looks as if you're beyond that. > > Hmm, I do have some wierd results for the drive sizes. I resized > two of the drives (corresponding to da1s1h and da3s1h). > > spawn[~]# vinum ld > D IBM680548C7GA State: up Device /dev/da0h Avail: 4348/4604 MB (94%) > D IBM68054185GA State: up Device /dev/da1h Avail: 8364/4604 MB (181%) > D IBM6805728BGA State: up Device /dev/da2h Avail: 4348/4604 MB (94%) > D IBM680574DBGA State: up Device /dev/da3h Avail: 8364/4604 MB (181%) > spawn[~]# vinum ld -v > Drive IBM680548C7GA: Device /dev/da0h > Size: 4828207104 bytes (4604 MB) > Used: 268571136 bytes (256 MB) > Drive IBM68054185GA: Device /dev/da1h > Size: 4828207104 bytes (4604 MB) > Used: -3942772224 bytes (17592186040655 MB) > Drive IBM6805728BGA: Device /dev/da2h > Size: 4828207104 bytes (4604 MB) > Used: 268571136 bytes (256 MB) > Drive IBM680574DBGA: Device /dev/da3h > Size: 4828207104 bytes (4604 MB) > Used: -3942772224 bytes (17592186040655 MB) > > Hmm, the sizes seem way out of whack, even on the drives I didn't > touch. > > * The total size of each drive is still listed as 9,430,092 sectors > (correct for two drives, but not for the two I resized). > * The amount of space used does not match reality (output of ``vinum > list -rv'' at the end of this message). > > Any way to force these to be recalculated? Yes. Fix the bug :-) > [EEK] While composing this message and exercising writes on one of the > filesystems under vinum control, the system hung. I guess it's not > working so easily after all :-) I think I'll leave those filesystems > alone until I hear back from you. I'd still like to salvage the > situation if at all possible. Were you able to get a dump? That would have interested me. Obviously I was wrong in thinking that Vinum would automatically detect what was going on. It only half did. I'll have to take a look at the code and fix it, but it won't be in the next week. I'll send you private mail about how to fix the situation. 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