From owner-freebsd-stable@FreeBSD.ORG Sat Nov 1 19:32:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EAFE16A4CE for ; Sat, 1 Nov 2003 19:32:05 -0800 (PST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A42143FB1 for ; Sat, 1 Nov 2003 19:32:03 -0800 (PST) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 3D6F72BD42 for ; Sun, 2 Nov 2003 14:32:00 +1100 (EST) Received: from adelaide.lemis.com (unknown [203.117.90.121]) by blackwater.lemis.com (Postfix) with ESMTP id 0712F511FA; Sun, 2 Nov 2003 14:01:56 +1030 (CST) Received: by adelaide.lemis.com (Postfix, from userid 1004) id BCAC517680; Sun, 2 Nov 2003 10:25:46 +0800 (SGT) Date: Sun, 2 Nov 2003 10:25:46 +0800 From: Greg Lehey To: Dmitry Morozovsky , Mike Maltese Message-ID: <20031102022546.GA3275@adelaide.lemis.com> References: <20031031153427.P81511@woozle.rinet.ru> <001d01c39fcc$51accdd0$f4f0a8c0@pcmedx.com> <20031031153427.P81511@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001d01c39fcc$51accdd0$f4f0a8c0@pcmedx.com> <20031031153427.P81511@woozle.rinet.ru> User-Agent: Mutt/1.4.1i Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: stable@FreeBSD.org Subject: Re: vinum question: how could one correctly delete vinum module? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 03:32:05 -0000 On Friday, 31 October 2003 at 15:41:42 +0300, Dmitry Morozovsky wrote: > Dear colleagues, > > [I'm under 4-STABLE] > > What is the correct sequence to delete existing vinum module (for example, > raid10) and do *not* use -f flags for vinum? I think your terminology is incorrect. To delete an existing Vinum module under release 4, you would normally do: # rm /modules/vinum.ko To unload the module from the kernel, you would first quiesce the Vinum system and then do: # vinum stop But I'd guess that this isn't what you want to do. > in my case t is raid10 vovume: > > vinum -> l -r t > V t State: up Plexes: 2 Size: 8191 MB > P t.p0 S State: up Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: up PO: 0 B Size: 4095 MB > S t.d8 State: up PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB These subdisk names are very confusing. > umount /dev/vinum/t > vinum stop t (ok) > vinum stop t.p0 <- this operation silently puts t up, and sets t.p0 faulty > vinum stop t (ok) > vinum stop t.p1 > > Last comment leads to error > > Can't stop t.p1: Device busy (16) Why do you want to stop a plex? > Final state of objects are > > vinum -> l -r t > V t State: down Plexes: 2 Size: 8191 MB > P t.p0 S State: faulty Subdisks: 2 Size: 8191 MB > P t.p1 S State: up Subdisks: 2 Size: 8191 MB > S t.d0 State: down PO: 0 B Size: 4095 MB > S t.d8 State: down PO: 260 kB Size: 4095 MB > S t.d2 State: up PO: 0 B Size: 4095 MB > S t.d10 State: up PO: 260 kB Size: 4095 MB > > Any suggestions? should I dig into vinum sources to track this down? Well, I think you know the answer: use the -f flag. But maybe I'm misunderstanding the question. On Friday, 31 October 2003 at 8:30:38 -0800, Mike Maltese wrote: >> Any suggestions? should I dig into vinum sources to track this down? > > You want to wipe out your configuration completely? I don't think so. > Use "vinum resetconfig". You will loose all of your data, but if I > understand your question correctly, this is the command to use. If > you want to remove individual objects, use the rm command. Take a > look at the vinum man page, it is quite useful. As far as I can tell, he doesn't want to remove anything. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers