From owner-freebsd-questions Tue May 21 16:31:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 3848737B40E for ; Tue, 21 May 2002 16:31:14 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 030EB8163C; Wed, 22 May 2002 09:01:11 +0930 (CST) Date: Wed, 22 May 2002 09:01:10 +0930 From: Greg 'groggy' Lehey To: chuck sumner Cc: freebsd-questions@freebsd.org Subject: Re: vinum, softupdates, and fsck problems Message-ID: <20020522090110.I84431@wantadilla.lemis.com> References: <20020521110910.V8744-100000@ns1.2inches.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020521110910.V8744-100000@ns1.2inches.com> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, 21 May 2002 at 11:14:16 -0700, chuck sumner wrote: > hi all > i am unable to fsck a vinum & softupdates volume. the error is: >> cannot alloc 690422180 bytes for inphead > > i cant seem to get around this. and its annoying because df reports the > drive as: >> /dev/vinum/raid 116913622 -2019559125 2127119658 -1878% /mnt > which is obviously wrong and the kernel panics when i read from it. > > any ideas? am i screwed? > thanks chuck > > the detailed saga follows: > i have a file server with a 4 disk raid 5 vinum array and softupdates. > earlier this week the system disk died. no big deal. i put in a new disk > and rebuilt the system. > cvsuped to stable and built world with a new kernel. > turns out getting thevinum drive back up was non trivial. > after hours of work i managed to recreate it with a create > /path/to/config_file and the volume masrked as setstateup. > i had to rebuildparity which took some time, but my data was > mostly accessable. when i tried to fsck it i got thousands of errors. > unreferenced inodes, weird errors. all bad. i mounted it read only and > tried to back up what i could onto another array, but after a small, > random amount of time the kernel panics with: >> Panic: ffs_truncate: read only filesystem > > much of my data is corrupted or has bad file descriptors, and i can only > get off small bits at a time. fsck breaks from lack of memory now and i > cant seem to clean up the drive. > any help? Well, I have a whole list of information I ask for for problems like this, both in vinum(4) and at http://www.vinumvm.org/vinum/how-to-debug.html. Judging by what you've said, though, you've managed to intersperse junk with your volume and tried to treat it as a file system. ufs doesn't like that and panics. Note the man page: setstate state [volume | plex | subdisk | drive] setstate sets the state of the specified objects to the specified state. This bypasses the usual consistency mechanism of vinum and should be used only for recovery purposes. It is possible to crash the system by incorrect use of this command. It looks like you have used it incorrectly. Did you follow the instructions at http://www.vinumvm.org/vinum/replacing-drive.html? What went wrong? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message