|
|
Destroying a zfs pool
I am trying to rid off the raghupool, but getting errors....
RUN-VEE#zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
raghupool 8.38G 866M 7.53G 10% ONLINE -
RUN-VEE#
RUN-VEE#zpool destroy raghupool
cannot unmount '/raghupool/raghuzone-data': Device busy
could not destroy 'raghupool': could not unmount datasets
RUN-VEE#zpool status raghupool
pool: raghupool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
raghupool ONLINE 0 0 0
c3t3d0 ONLINE 0 0 0
errors: No known data errors
RUN-VEE#zpool detach raghupool c3t3d0
cannot detach c3t3d0: only applicable to mirror and replacing vdevs
RUN-VEE#
|
|
0
|
|
|
|
Reply
|
kartik.unix (23)
|
8/30/2009 12:58:17 PM |
|
On 2009-08-30 13:58:17 +0100, kartikvashishta108 <kartik.unix@gmail.com> said:
> RUN-VEE#zpool destroy raghupool
> cannot unmount '/raghupool/raghuzone-data': Device busy
> could not destroy 'raghupool': could not unmount datasets
Something probably is using that filesystem. Find it with fuser and
get rid of it.
|
|
0
|
|
|
|
Reply
|
Tim
|
8/30/2009 1:59:53 PM
|
|
On Aug 30, 1:58=A0pm, kartikvashishta108 <kartik.u...@gmail.com> wrote:
> I am trying to rid off the raghupool, but getting errors....
>
> RUN-VEE#zpool list
> NAME =A0 =A0 =A0 =A0SIZE =A0 USED =A0AVAIL =A0 =A0CAP =A0HEALTH =A0ALTROO=
T
> raghupool =A08.38G =A0 866M =A07.53G =A0 =A010% =A0ONLINE =A0-
> RUN-VEE#
>
> RUN-VEE#zpool destroy raghupool
> cannot unmount '/raghupool/raghuzone-data': Device busy
> could not destroy 'raghupool': could not unmount datasets
>
> RUN-VEE#zpool status raghupool
> =A0 pool: raghupool
> =A0state: ONLINE
> =A0scrub: none requested
> config:
>
> =A0 =A0 =A0 =A0 NAME =A0 =A0 =A0 =A0STATE =A0 =A0 READ WRITE CKSUM
> =A0 =A0 =A0 =A0 raghupool =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 =A0 0
> =A0 =A0 =A0 =A0 =A0 c3t3d0 =A0 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 =A0 =
0
>
> errors: No known data errors
> RUN-VEE#zpool detach raghupool c3t3d0
> cannot detach c3t3d0: only applicable to mirror and replacing vdevs
> RUN-VEE#
Umount the filesystems using the pool
If you still cant destroy it after that you can force destroy it using
the -f option
zpool destroy -f raghupool
zpool destroy -f raghupool
|
|
0
|
|
|
|
Reply
|
Zfs
|
8/30/2009 5:47:27 PM
|
|
>> On Sun, 30 Aug 2009 05:58:17 -0700 (PDT),
>> kartikvashishta108 <kartik.unix@gmail.com> said:
> RUN-VEE#zpool destroy raghupool cannot unmount
> '/raghupool/raghuzone-data': Device busy could not
> destroy 'raghupool': could not unmount datasets
Is it being exported as an NFS filesystem? Try using
"lsof" or "fuser" to find out who/what is still using
it...
hth
t
|
|
0
|
|
|
|
Reply
|
Tony
|
8/30/2009 8:13:28 PM
|
|
On Aug 31, 1:13=A0am, Tony Curtis <tony_curti...@yahoo.com> wrote:
> >> On Sun, 30 Aug 2009 05:58:17 -0700 (PDT),
> >> kartikvashishta108 <kartik.u...@gmail.com> said:
> > RUN-VEE#zpool destroy raghupool cannot unmount
> > '/raghupool/raghuzone-data': Device busy could not
> > destroy 'raghupool': could not unmount datasets
>
> Is it being exported as an NFS filesystem? =A0Try using
> "lsof" or "fuser" to find out who/what is still using
> it...
>
> hth
> t
Thanks to all for their input.
|
|
0
|
|
|
|
Reply
|
kartikvashishta108
|
9/12/2009 10:16:54 AM
|
|
|
4 Replies
228 Views
(page loaded in 0.258 seconds)
|
|
|
|
|
|
|
|
|