SOLVED ZVOL promote - can I delete root clone of zvol after making a clone

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Hey guys,

Since i cant find any satisfying docs or topics on this:

I have a VM in freenas with a zvol (lets call it Hassio), something went wrong in the GUEST OS so i cloned a snapshot (lets call this one Hassio-backup).
Now i've changed the zvol in the VM device settings.

Now i know of the dataset promote option, but does ZVOL work the same way? Or can I just delete HASS ZVOL without any problems?

Code:
root@freenas:~ # zfs list

NAME                                                            USED  AVAIL  REFER  MOUNTPOINT
SSD/Hassio                                                     62.7G   143G  12.4G  -
SSD/Hassio-backup                                              8.20G  94.3G  11.5G  -




Thanks!
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
Yes, the promote function works the same for ZVOLs as it does Datasets. Once the cloned snapshot is promoted it is not longer dependent upon it's originating ZFS file system (ZVOL or Dataset), which, allows you to delete the originating data as desired.
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Yes, the promote function works the same for ZVOLs as it does Datasets. Once the cloned snapshot is promoted it is not longer dependent upon it's originating ZFS file system (ZVOL or Dataset), which, allows you to delete the originating data as desired.

Thank you for your reply. I suppose this should be done in the Webui rather then cli, as with nearly everything on Freenas. Am i missing the promote option under storage/pools or is there no such feature yet?

I found this: https://docs.oracle.com/cd/E19253-01/819-5461/gcvfl/index.html

Would that be alright?

Thanks again!
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
Thank you for your reply. I suppose this should be done in the Webui rather then cli, as with nearly everything on Freenas. Am i missing the promote option under storage/pools or is there no such feature yet?

I found this: https://docs.oracle.com/cd/E19253-01/819-5461/gcvfl/index.html

Would that be all right?

Thanks again!
If you switch to the legacy UI the promote function is there. The icon is an up arrow. I guess the function hasn't been brought into the new UI. I'll submit a feature request, thanks for pointing it out.

Feature request: https://redmine.ixsystems.com/issues/72121
 
Last edited:

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
You’re the best!
 
Top