Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Destroying a zfs pool

1,591 views
Skip to first unread message

kartikvashishta108

unread,
Aug 30, 2009, 8:58:17 AM8/30/09
to
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#

Tim Bradshaw

unread,
Aug 30, 2009, 9:59:53 AM8/30/09
to
On 2009-08-30 13:58:17 +0100, kartikvashishta108 <karti...@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.

Zfs..

unread,
Aug 30, 2009, 1:47:27 PM8/30/09
to

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

Tony Curtis

unread,
Aug 30, 2009, 4:13:28 PM8/30/09
to
>> On Sun, 30 Aug 2009 05:58:17 -0700 (PDT),
>> kartikvashishta108 <karti...@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

kartikvashishta108

unread,
Sep 12, 2009, 6:16:54 AM9/12/09
to

Thanks to all for their input.

0 new messages