[OpenIndiana-discuss] Removing one file from a ZFS Snapshot

Kees Nuyt k.nuyt at zonnet.nl
Tue Dec 20 12:32:28 UTC 2011


On Tue, 20 Dec 2011 12:32:40 +0100 (CET), you wrote:

>Hi,
>I was wandering if there is any way to permanently delete a file from one or more snapshots.
>It may happen the need to delete a very big file from the file system, and realize that the
>available space is still the same, because some snapshots are still holding the file.
>Any clue?
>Gabriele.

Perhaps:
* zfs clone snapshot
* zfs promote the clone
* rm the big file from the clone
* zfs destroy the snapshot
* repeat for every snapshot that contains the big file
(untested)


-- 
Regards,

Kees Nuyt




More information about the OpenIndiana-discuss mailing list