From owner-freebsd-stable@FreeBSD.ORG Fri Oct 31 08:30:37 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 9345616A4CF for ; Fri, 31 Oct 2003 08:30:37 -0800 (PST) Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id C675443FB1 for ; Fri, 31 Oct 2003 08:30:35 -0800 (PST) (envelope-from mike@pcmedx.com) Received: from duron.pcmedx.com ([4.46.22.189]) by out011.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20031031163035.OCBU1314.out011.verizon.net@duron.pcmedx.com>; Fri, 31 Oct 2003 10:30:35 -0600 Received: from localhost (localhost [127.0.0.1]) by duron.pcmedx.com (Postfix) with ESMTP id 478F1AEAD; Fri, 31 Oct 2003 08:30:34 -0800 (PST) Received: from mike (mike.pcmedx.com [192.168.240.244]) by duron.pcmedx.com (Postfix) with SMTP id A1E59AECF; Fri, 31 Oct 2003 08:30:33 -0800 (PST) Message-ID: <001d01c39fcc$51accdd0$f4f0a8c0@pcmedx.com> From: "Mike Maltese" To: References: <20031031153427.P81511@woozle.rinet.ru> Date: Fri, 31 Oct 2003 08:30:38 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd (http://www.amavis.org) and f-prot (http://www.f-prot.com) at pcmedx.com X-Authentication-Info: Submitted using SMTP AUTH at out011.verizon.net from [4.46.22.189] at Fri, 31 Oct 2003 10:30:34 -0600 cc: Dmitry Morozovsky 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: Fri, 31 Oct 2003 16:30:37 -0000 > 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? > > 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 > > > 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) > > > 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? You want to wipe out your configuration completely? 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.