From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 00:04:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E632A16A4B3 for ; Tue, 16 Sep 2003 00:04:22 -0700 (PDT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 226DF43FBD for ; Tue, 16 Sep 2003 00:04:22 -0700 (PDT) (envelope-from ekrem@ozemail.com.au) Received: from [210.50.72.191] (210.50.72.191) by smtp02.syd.iprimus.net.au (7.0.018) (authenticated as ekrem@iprimus.com.au) id 3F4C083E003B7B1C for freebsd-questions@freebsd.org; Tue, 16 Sep 2003 17:04:20 +1000 From: Ekrem To: freebsd-questions@freebsd.org In-Reply-To: <20030915183629.GE739@adelaide.lemis.com> References: <00a801c3750a$db00eea0$0601a8c0@celeron> <20030915183629.GE739@adelaide.lemis.com> Content-Type: text/plain Message-Id: <1063695976.597.47.camel@beynam.ecko.net.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 16 Sep 2003 17:06:17 +1000 Content-Transfer-Encoding: 7bit Subject: Re: How to remove a vinum volume? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 07:04:23 -0000 On Tue, 2003-09-16 at 04:36, Greg Lehey wrote: > On Sunday, 7 September 2003 at 0:39:57 -0600, Samuel Chow wrote: > > Hi there, > > > > I have the following vinum volume that I want to remove. > > The disks will be reassigned to other machines. > > > > After reading the man page, I am under the impression that > > I am supposed to first use the stop command. > > > > ... > > > > Umm... The stop command doesn't seem to work recursively, even > > when the -r flag is specified. > > > > vinum -> rm -r dataVol > > Can't remove dataVol: Device busy (16) > > The way to do it is with rm -rf. Arguably this is a bug. > > Greg > -- I've never used vinum, but I remember seeing similar 'device busy' error messages when I tried to umount a partition while the current directory (cd) was still within that partition. Just a thought that maybe you're still cd'ed in your vinum partition while trying to remove it and it's causing the error. Ekrem