udev not creating device file for cloned zvol #10603
Labels
Component: Encryption
"native encryption" feature
Status: Stale
No recent activity for issue
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
Describe the problem you're observing
I have an encrypted zvol
pool_name/base
and a snapshot of itpool_name/base@snapshot
.When a zvol clone
pool_name/clone
is created from the snapshot, udev creates a device file/dev/zvol/pool_name/clone
(symlink to/dev/zdX
).However, this does not seem to survive an export. When the zfs pool is re-imported, device file is only created for the base zvol, not the clone.
Describe how to reproduce the problem
zpool create pool_name backing_device
zpool import pool_name
zfs create -V 1G -o encryption=on,keylocation=file:///path_to_encryption_key pool_name/base
zfs snapshot pool_name/base@snapshot
zfs clone pool_name/base@snapshot pool_name/clone
By now /dev/zvol/pool_name/clone should show up.
zfs export pool_name
We would expect that after the re-import, /dev/zvol/pool_name/clone would appear again. However, only pool_name/base is under /dev/zvol/
zpool import -l pool_name
Side note:
dev/zvol/pool_name/clone
does show up./dev/zvol
/dev/zvol/pool_name/clone
is not created, neither is /dev/zdX, so it doesn't seem like a problem with udev configuration.Include any warning/errors/backtraces from the system logs
Not sure which file contains the log for zfs.
The text was updated successfully, but these errors were encountered: