ubuntu 18.04 cannot set zfs mountpoint=legacy

Asked by Peter Goodall on 2018-09-08

I am creating an ext4 volume on an Ubuntu bionic workstation with zfs root. By my reading, according to manuals I should be able to set the mountpoint attribute to legacy, or it shoud have been set to legacy

https://docs.oracle.com/cd/E19253-01/819-5461/gbaln/index.html
https://github.com/zfsonlinux/zfs/wiki/Ubuntu-ZFS-mountall-FAQ-and-troubleshooting

zfs create -o compression=lz4 -V 4.5G tank/my-ext4
export myz=/dev/zvol/tank/my-ext4
mkfs.ext4 $myz
mkdir ~/ext4_dir
mount $myz ~/ext4_dir
mount | grep ext4

> /dev/zd32 on /root/ext4_dir type ext4 (rw,relatime,stripe=8,data=ordered)

zfs list tank/my-ext4
> NAME USED AVAIL REFER MOUNTPOINT
> tank/my-ext4 22.8M 2.56T 96K -

zfs set mountpoint=legacy tank/my-ext4
> cannot set property for 'tank/my-ext4': 'mountpoint' does not apply to datasets of this type

aptitude search zfs | grep '^i'
i A libzfs2linux - OpenZFS filesystem library for Linux
i zfs-initramfs - OpenZFS root filesystem capabilities for Linux - initramfs
i A zfs-zed - OpenZFS Event Daemon
i zfsutils-linux - command-line tools to manage OpenZFS filesystems

NB: I couldn't set the package for this question as 'zfsutils-linux' - not found

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu zfs-linux Edit question
Assignee:
No assignee Edit question
Last query:
2018-09-08
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Peter Goodall for more information if necessary.

To post a message you must log in.