Cannot promote clone with % in name

sigipa

Cadet
Joined
Mar 30, 2021
Messages
8
Hello All,

I'm trying to delete a snapshot with a linked clone. When list it, there is a % in the name that is preventing me from promoting it.

zfs list -t snapshot -o name,clones -r storage1/vsphere-backup/ssb-vfs01
NAME CLONES
storage1/vsphere-backup/ssb-vfs01@auto-2021-12-25_03-00 storage1/vsphere-backup/ssb-vfs01/%recv

This is the error I get:

zfs promote storage1/vsphere-backup/ssb-vfs01/%recv

cannot promote 'storage1/vsphere-backup/ssb-vfs01/%recv': invalid character % in name

How can I remove the snapshot and the clone? Any help would be much appreciated.

Thanks,
-S
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You may be able to rename it to something without the %, but I suspect even that will fail... no idea how you got that name to happen in the first place.

zfs rename storage1/vsphere-backup/ssb-vfs01/%recv storage1/vsphere-backup/ssb-vfs01/ABCXYZrecv

You may be in pool destroy and recreate territory.

for reference: https://illumos.org/man/1M/zfs
 
Top