Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2012 03:48:02 +0000
From:      Greg Bonett <greg.bonett@gmail.com>
To:        Artem Belevich <art@freebsd.org>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: how to destroy zfs parent filesystem without destroying children - corrupted file causing kernel panick
Message-ID:  <CAPceqYR2V=SVja2puTH6nfHDqpk7Qmm8ESSGOZ5yZ2ORJ0zhbA@mail.gmail.com>
In-Reply-To: <CAFqOu6i2p1VSOmmE_vgFb7K5t3LQ9f8BLTw_D-%2BvBsONMOzBOQ@mail.gmail.com>
References:  <CAPceqYS4QTu=970XUE=KKV-ZdPSO6n5y1Dzuu4HM4yyie=-Gag@mail.gmail.com> <CAFqOu6i2p1VSOmmE_vgFb7K5t3LQ9f8BLTw_D-%2BvBsONMOzBOQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
ahh, unfortunately the filesystem I want to destroy is the top-most file
system for the pool. Does this mean I'll need to set up another pool with
enough free space to move everything over?

Any ideas for a way to remove the corrupted file without destroying the
file system?

thanks!


On Sat, Dec 29, 2012 at 3:35 AM, Artem Belevich <art@freebsd.org> wrote:

>
> On Fri, Dec 28, 2012 at 12:46 PM, Greg Bonett <greg.bonett@gmail.com>wrote:
>
>> However, I can't figure out how to destroy the /tank filesystem without
>> destroying /tank/tempfs (and the other /tank children).  Is it possible to
>> destroy a parent without destroying the children? Or, create a new parent
>> zfs file system on the same zpool and move the /tank children there before
>> destroying /tank?
>>
>
> It is possible in case parent is not the top-most zfs filesystem (i.e
> tomp-most filesystem for the pool).
>
> I.e. if your zfs filesystem layout looked like zfs-pool/tank/tempfs, then
> you could simply do "zfs rename zfs-pool/tank/tempfs zfs-pool/tempfs" and
> then would be free to remove zfs-pool/tank. Alas this rename semantics
> breaks down when you can no longer rename sub-filesystem upward. I don't
> think ZFS would allow you to promote inner filesystem to a pool which is
> what you seem to want.
>
> --Artem
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPceqYR2V=SVja2puTH6nfHDqpk7Qmm8ESSGOZ5yZ2ORJ0zhbA>