zfs destroy parent of clone
i clone one dataset (tank/a to tank/b) with zfs
and now i want to delete only parent (tank/a)
i wont to have only tank/b now
how to do it?
i clone one dataset (tank/a to tank/b) with zfs
and now i want to delete only parent (tank/a)
i wont to have only tank/b now
how to do it?
thomas, I believe the way to do this is to promote the clone dataset using the
zfs promote
command
vonProteus, thx for sugestion
looks very promising src
<span style="color:#323232;"># zfs create pool/project/production </span><span style="color:#323232;"> populate /pool/project/production with data </span><span style="color:#323232;"># zfs snapshot pool/project/production@today </span><span style="color:#323232;"># zfs clone pool/project/production@today pool/project/beta </span><span style="color:#323232;"> make changes to /pool/project/beta and test them </span><span style="color:#323232;"># zfs promote pool/project/beta </span><span style="color:#323232;"># zfs rename pool/project/production pool/project/legacy </span><span style="color:#323232;"># zfs rename pool/project/beta pool/project/production </span><span style="color:#323232;"> once the legacy version is no longer needed, it can be destroyed </span><span style="color:#323232;"># zfs destroy pool/project/legacy </span>
not tested yet
Add comment