是否有可能拆分zfs克隆,以允许原始快照被销毁?
# zfs create zpool1/test1 # zfs snapshot zpool1/test1@snap1 # zfs clone zpool1/test1@snap1 zpool1/test1clone # zfs destroy zpool1/test1@snap1 cannot destroy 'zpool1/test1@snap1': snapshot has dependent clones use '-R' to destroy the following datasets: zpool1/test1clone #
此时,它想'实现'zpool1 / test1clone文件系统,就好像我已经执行了zfs send zpool1/test1@snap1 | zfs receive zpool1/test1clone zfs send zpool1/test1@snap1 | zfs receive zpool1/test1clone 。
如果你不希望孩子和父文件系统之间有任何联系,你将不得不做一个zfs发送/接收。
您需要将ZFS克隆升级到文件系统,以便能够销毁原始快照/文件系统。
zfs promote zpool1/test1clone
请参阅: http : //download.oracle.com/docs/cd/E19253-01/819-5461/gcvfl/index.html
zfs promote filesystem Promotes a clone file system to no longer be dependent on its "origin" snapshot. This makes it possible to des- troy the file system that the clone was created from. The clone parent-child dependency relationship is reversed, so that the "origin" file system becomes a clone of the specified file system.