How to remove a vinum volume?

Greg 'groggy' Lehey grog at FreeBSD.org
Tue Sep 16 00:06:57 PDT 2003


On Tuesday, 16 September 2003 at 17:06:17 +1000, Ekrem wrote:
> 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.
>
> 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.

It has nothing to do with the problem you describe.  It's because he's
not using the -f flag.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030916/77612a72/attachment.bin


More information about the freebsd-questions mailing list