From owner-freebsd-questions Sun May 2 0: 7: 3 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 0D83B14F34 for ; Sun, 2 May 1999 00:06:58 -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 QAA28238; Sun, 2 May 1999 16:36:30 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id QAA08770; Sun, 2 May 1999 16:36:30 +0930 (CST) Date: Sun, 2 May 1999 16:36:30 +0930 From: Greg Lehey To: Jacques Vidrine Cc: freebsd-questions@freebsd.org Subject: Re: vinum-- resizing disks Message-ID: <19990502163630.K80561@freebie.lemis.com> References: <19990501210026.357911DC5@spawn.nectar.com> <19990502120821.W80561@freebie.lemis.com> <19990502070142.2AEF11DD7@spawn.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990502070142.2AEF11DD7@spawn.nectar.com>; from Jacques Vidrine on Sun, May 02, 1999 at 02:01:41AM -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 [Format recovered--see http://www.lemis.com/email/email-format.html] On Sunday, 2 May 1999 at 2:01:41 -0500, Jacques Vidrine wrote: > On 2 May 1999 at 12:08, Greg Lehey wrote: >> On Saturday, 1 May 1999 at 16:00:25 -0500, Jacques Vidrine wrote: >>> Hi, >>> >>> After running for a couple of months with about half of my storage >>> space under vinum, I am happy enough with the results to wish to move >>> all my storage to vinum volumes. (Great work Greg!) In order to do >>> so, I'll need to resize the vinum disk objects, and I wonder if that >>> is possible. >> Well, I can think of a way, but I can't guarantee it'll work, so it's >> best to do a backup first anyway. You could move the data on disk. >> Once you've done your backups, create the following disk label: >> >>> 8 partitions: >>> # size offset fstype [fsize bsize bps/cpg] >>> a: 128520 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 7) >>> b: 128520 128520 swap # (Cyl. 8 - 15) >>> c: 17912412 0 unused 0 0 # (Cyl. 0 - 1114 *) >>> e: 17655372 257040 vinum # (Cyl. 16 - 1114 *) >>> h: 9430092 8482320 vinum # (Cyl. 528 - 1114 *) >> >> Then do dd if=/dev/rda1h of=/dev/rda1e to move the data. After that, >> you can delete partition h (and rename e to h if you want), restart >> Vinum, and you *may* find that you still have your information. From >> what I see in the code, it should automatically adapt to the bigger >> drive. Whatever you do, though, don't leave the overlapping Vinum >> partition at offset 8482320 there; Vinum will open both of them, >> updating the config information, and you'll end up with data >> corruption in the partition starting at 257040. >> >> If you try this, please let me know the outcome. > > Well, what do you know, it appears to have worked. Nifty! > > I say ``appears'' because I haven't found anything wrong yet, > but I'm reading through the filesystems with ``tar -cf /dev/null'' > to make sure I touch everything I had. 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. Good to hear that it worked. 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