zfs mount is error free but no directory is present

Bug #1959194 reported by geole0
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello
In a 22.04 version installed in an EXT4 partition, I am trying to watch the contents of a 22.04 version installed in a ZFS partition.

I can't. However, I can easily access the "duplicate" of this partition which was created under ZFS.
I think it certainly needs an additional option that I can't find. But maybe this is a bug???

Can you help me. Thank you.

sudo blkid | grep zfs_member
/dev/sdb4: LABEL="rpool" UUID="3705767347231228268" UUID_SUB="17088151264315178202" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="4c7ee6a4-46e4-a244-83ad-744047de9184"
/dev/sdb3: LABEL="bpool" UUID="2280493683547443963" UUID_SUB="6738067129089399524" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="ab89c3ca-8125-dc40-83f9-2d1050c1251c"
/dev/sdc6: LABEL="poolSORTIE" UUID="10752972542097428173" UUID_SUB="3388036065267144189" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="2be01f36-25c3-463c-9ba2-fbbe0b0b9a45"

-------- On a duplicate partition of rpool all is good
sudo zpool import -f -N poolSORTIE Sortie; zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Sortie 19.5G 10.1G 9.36G - - 0% 51% 1.00x ONLINE -

sudo zfs set mountpoint=/mnt/Sortie Sortie
sudo zfs set canmount=on Sortie
sudo zfs mount Sortie
ls /mnt/Sortie
bin boot cdrom dev etc home lib lib32 lib64 libx32 media mnt opt proc

sudo zpool export Sortie ; zpool list
no pools available
ls /mnt/Sortie

---------- On the rpool partition, No directory is visible.
sudo zpool import -f -N rpool Root; zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Root 920G 5.00G 915G - - 0% 0% 1.00x ONLINE -

sudo zfs set mountpoint=/mnt/Root Root
sudo zfs set canmount=on Root
sudo zfs mount Root
ls /mnt/Root

However no error on the mount action

janv. 27 09:43:51 b sudo[8050]: a : TTY=pts/1 ; PWD=/home/a ; USER=root ; COMMAND=/usr/sbin/zpool import -f -N rpool Root
janv. 27 09:43:51 b sudo[8050]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
janv. 27 09:43:55 b zed[8214]: eid=37 class=config_sync pool='Root'
janv. 27 09:43:55 b zed[8216]: eid=38 class=pool_import pool='Root'
janv. 27 09:43:55 b zed[8238]: eid=40 class=config_sync pool='Root'
janv. 27 09:43:55 b sudo[8050]: pam_unix(sudo:session): session closed for user root
janv. 27 09:44:59 b sudo[8360]: a : TTY=pts/1 ; PWD=/home/a ; USER=root ; COMMAND=/usr/sbin/zfs set mountpoint=/mnt/Root Root
janv. 27 09:44:59 b sudo[8360]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
janv. 27 09:45:00 b sudo[8360]: pam_unix(sudo:session): session closed for user root
janv. 27 09:45:00 b sudo[8376]: a : TTY=pts/1 ; PWD=/home/a ; USER=root ; COMMAND=/usr/sbin/zfs set canmount=on Root
janv. 27 09:45:00 b sudo[8376]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
janv. 27 09:45:00 b sudo[8376]: pam_unix(sudo:session): session closed for user root
janv. 27 09:45:00 b sudo[8387]: a : TTY=pts/1 ; PWD=/home/a ; USER=root ; COMMAND=/usr/sbin/zfs mount Root
janv. 27 09:45:00 b sudo[8387]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
janv. 27 09:45:00 b sudo[8387]: pam_unix(sudo:session): session closed for user root

sudo zpool export Root ; zpool list
ls /mnt/Root

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: zfsutils-linux 2.1.2-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-17.17-generic 5.15.12
Uname: Linux 5.15.0-17-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Jan 27 10:33:07 2022
InstallationDate: Installed on 2021-11-01 (86 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211031)
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.sudoers.d.zfs: [inaccessible: [Errno 13] Permission non accordée: '/etc/sudoers.d/zfs']

Revision history for this message
geole0 (geole0) wrote :
Revision history for this message
geole0 (geole0) wrote :

Hello.
i have solved the problem by writing
zfs mount -v $(zfs list | grep ROOT/ubuntu | head -1 |cut -d" " -f1)
zfs mount -v $(zfs list | grep BOOT/ubuntu | head -1 |cut -d" " -f1)
But i don't kwnow if it is the goodQ- solution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.