cannot promote clone: "not a cloned filesystem"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a zvol containing a Windows image for a virtual machine. After restarting the system a node under /dev/zvol/... was not created for the virtual disk and no amount of prompting by `udevadm trigger` helped. Instead I created a snapshot from the most recent hourly backup:
# zfs clone rpool/vm/
# zfs promote rpool/vm/
cannot promote 'rpool/
(didn't work here but carried on assuming something can be sorted later)
# zfs rename rpool/vm/
# zfs rename rpool/vm/
Entries in /dev appeared and I could start the virtual machine. Trying to promote the clone gives 'not a cloned filesystem' message. I later renamed the old zvol and tried to cleanup:
# zfs rename rpool/vm/
# zfs destroy rpool/to-
cannot destroy 'rpool/
use '-R' to destroy the following datasets:
rpool/vm/
rpool/vm/
rpool/vm/
# zfs promote rpool/vm/
cannot promote 'rpool/
# zfs get origin rpool/vm/
NAME PROPERTY VALUE SOURCE
rpool/vm/
# zfs get clones rpool/to-
NAME PROPERTY VALUE SOURCE
rpool/to-
The dependency between seems to be as expected. This small test fails in the same way:
# zfs create -V1G rpool/vm/test
# zfs snapshot rpool/vm/test@test2
# zfs clone rpool/vm/test@test2 rpool/vm/test3
# zfs promote rpool/vm/test3
cannot promote 'rpool/vm/test3': not a cloned filesystem
# zfs get origin rpool/vm/test3
NAME PROPERTY VALUE SOURCE
rpool/vm/test3 origin rpool/vm/test@test2 -
# zfs get clones rpool/vm/test@test2
NAME PROPERTY VALUE SOURCE
rpool/vm/test@test2 clones rpool/vm/test3 -
All the zpool members are ONLINE and no errors are reported.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
# uname -r
5.11.0-37-generic
# modinfo zfs | grep -i version
version: 2.0.2-1ubuntu5.1
srcversion: F267DF7B3FFB43A
vermagic: 5.11.0-37-generic SMP mod_unload modversions
# apt-cache policy zfsutils-linux
zfsutils-linux:
Installed: 0.8.3-1ubuntu12.12
Candidate: 0.8.3-1ubuntu12.13
Version table:
0.
500 http://
*** 0.8.3-1ubuntu12.12 100
100 /var/lib/
0.
500 http://
0.
500 http://
Present with latest kernel and user space packages:
# zfs create -V1G rpool/test1
# zfs snapshot rpool/test1@test2
# zfs clone rpool/test1@test2 rpool/test3
# zfs promote rpool/test3
cannot promote 'rpool/test3': not a cloned filesystem
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
# uname -r
5.11.0-38-generic
# modinfo zfs | grep -i version FE76257D
version: 2.0.2-1ubuntu5.1
srcversion: F267DF7B3FFB43A
vermagic: 5.11.0-38-generic SMP mod_unload modversions
# apt-cache policy zfsutils-linux gb.archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages dpkg/status 8.3-1ubuntu12. 9 500 security. ubuntu. com/ubuntu focal-security/main amd64 Packages 8.3-1ubuntu12 500 gb.archive. ubuntu. com/ubuntu focal/main amd64 Packages
zfsutils-linux:
Installed: 0.8.3-1ubuntu12.13
Candidate: 0.8.3-1ubuntu12.13
Version table:
*** 0.8.3-1ubuntu12.13 500
500 http://
100 /var/lib/
0.
500 http://
0.
500 http://