I made a clone of zfs filesystem that has a number of snapshots. I also have several replicated copies of the filesystem.
How can I find which filesystem/snapshot a clone is attached to?
(Seems like something that should be in the docs/googlable but I haven't found anything)
There is a special property called
origin
which holds what you need. Let's assume we have a zpooltank
and a filesystemtank/f1
and we create a snapshot and a clone:Let's check the origin of that clone:
Output:
Depends on your zfs list output... but you can also look at the output of:
zpool history
to see the command sequences and actions (manual and automated) performed on the pool. That may help refresh your memory. Filter forclone
commands if there's too much output.Another simple method:
and without rpool: