[zfs-discuss] zfs clone resets user defined properties ?

Quentin Le Burel quentin.leburel at clustervision.com
Tue Apr 17 08:07:57 EDT 2018


Hi All,

It seems that user defined properties are not copied when you create a
clone from a snapshot:

> [root at storage01 root]# zfs create tank3/volume
> [root at storage01 root]# zfs set foo:bar=foobar tank3/volume
> [root at storage01 root]# zfs get all | grep fo
> tank3/volume               foo:bar               foobar
   local
> [root at storage01 root]# zfs snapshot tank3/volume at 2018-04-17
> [root at storage01 root]# zfs get all | grep fo
> tank3/volume               foo:bar               foobar
   local
> tank3/volume at 2018-04-17    foo:bar               foobar
   inherited from tank3/volume
> [root at storage01 root]# zfs clone tank3/volume at 2018-04-17
tank3/volume-2018-04-17
> [root at storage01 root]# zfs get all | grep fo
> tank3/volume               foo:bar               foobar
   local
> tank3/volume at 2018-04-17    foo:bar               foobar
   inherited from tank3/volume
> [root at storage01 root]# zfs get foo:bar tank3/volume-2018-04-17
> NAME                     PROPERTY  VALUE    SOURCE
> tank3/volume-2018-04-17  foo:bar   -        -


Is this a bug, or is there a specific reason for that behaviour ?
Running ZoL 0.7.6 at the moment.

Thank you for the answers

Kind regards

Quentin

--
Quentin Le Burel
HPC Specialist
Product Manager

Direct: +31 20 407 7550,277
Skype: quentin.leburel
quentin.leburel at clustervision.com
ClusterVision BV
Gyroscoopweg 56
1042 AC Amsterdam
The Netherlands
Tel: +31 20 407 7550
Fax: +31 20 4077 551
www.clustervision.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20180417/ea7ccbad/attachment-0001.html>


More information about the zfs-discuss mailing list