Re: How to remove a vinum volume?

2003-09-16 Thread Greg 'groggy' Lehey
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


pgp0.pgp
Description: PGP signature


Re: How to remove a vinum volume?

2003-09-16 Thread Ekrem
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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a vinum volume?

2003-09-15 Thread Greg Lehey
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
--
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to remove a vinum volume?

2003-09-06 Thread Samuel Chow
Hi there,

I have the following vinum volume that I want to remove.
The disks will be reassigned to other machines.

vinum -> l -r dataVol
V dataVol  State: up  Plexes:   1 Size: 65 GB
P dataVol.p0 C State: up  Subdisks: 2 Size: 65 GB
S dataVol.p0.s0State: up  PO:0  B Size: 28 GB
S dataVol.p0.s1State: up  PO:   28 GB Size: 37 GB

After reading the man page, I am under the impression that
I am supposed to first use the stop command.

vinum -> stop -r dataVol
vinum -> l -r dataVol
V dataVol  State: down  Plexes:   1 Size: 65 GB
P dataVol.p0 C State: upSubdisks: 2 Size: 65 GB
S dataVol.p0.s0State: upPO:0  B Size: 28 GB
S dataVol.p0.s1State: upPO:   28 GB Size: 37 GB

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)

vinum -> l -r dataVol
V dataVol  State: upPlexes:   1 Size: 65 GB
P dataVol.p0 C State: upSubdisks: 2 Size: 65 GB
S dataVol.p0.s0State: upPO:0  B Size: 28 GB
S dataVol.p0.s1State: upPO:   28 GB Size: 37 GB

Did I misunderstand the sequence required to remove a vinum
volume?

BTW, this machine is running RELENG_4 checked out on 
Mar 1, 2003.  Thanks.

---
Samuel Chow
[EMAIL PROTECTED]

Segmentation Fault (core dumped)
This message is displayed using recycled electrons.




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"