SOLVED A dataset that is undetectable over SSH and has no Edit Permissions screen

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Another in my series of problems begun by replacing my datasets (and the datasets they replicate to) so that they are natively set up for SMB sharing instead of AFP.

The backup datasets mostly worked well once I corrected my errors with snapshots and replication. But one is weird. It shows up fine in the GUI ( Storage > Pools ) and in zfs list. However:
  • When I SSH into TrueNAS and do a directory listing, the others show fine but this one is absent. Not even hidden, just not there.
  • In the GUI, when I choose Edit Permissions on this dataset, nothing happens. The Permissions screen simply does not appear. The other backup datasets work fine.

What the heck is going on? I've rebooted but no joy. By the way, none of these backup datasets are shared.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Well, first off, please supply the output of zfs list POOL/PROB_DATASET & zfs get all POOL/PROB_DATASET in code tags.

It is possible that the dataset is set to canmount=off, or perhaps it is simply not mounted.
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Thanks for the reply Arwen. zfs list:
Code:
Tabernacle:~$ zfs list ArkBak/Shuling
NAME             USED  AVAIL     REFER  MOUNTPOINT
ArkBak/Shuling   149G   101G      149G  /mnt/ArkBak/Shuling

zfs get all (hmm, says it's not mounted. I've never encountered mounting/unmounting datasets)
Code:
Tabernacle:~$ zfs get all ArkBak/Shuling
NAME            PROPERTY                 VALUE                     SOURCE
ArkBak/Shuling  type                     filesystem                -
ArkBak/Shuling  creation                 Sun Jan 15  0:01 2023     -
ArkBak/Shuling  used                     149G                      -
ArkBak/Shuling  available                101G                      -
ArkBak/Shuling  referenced               149G                      -
ArkBak/Shuling  compressratio            1.01x                     -
ArkBak/Shuling  mounted                  no                        -
ArkBak/Shuling  quota                    none                      default
ArkBak/Shuling  reservation              none                      default
ArkBak/Shuling  recordsize               128K                      default
ArkBak/Shuling  mountpoint               /mnt/ArkBak/Shuling       default
ArkBak/Shuling  sharenfs                 off                       default
ArkBak/Shuling  checksum                 on                        default
ArkBak/Shuling  compression              lz4                       inherited from ArkBak
ArkBak/Shuling  atime                    on                        default
ArkBak/Shuling  devices                  on                        default
ArkBak/Shuling  exec                     on                        default
ArkBak/Shuling  setuid                   on                        default
ArkBak/Shuling  readonly                 on                        local
ArkBak/Shuling  jailed                   off                       default
ArkBak/Shuling  snapdir                  visible                   local
ArkBak/Shuling  aclmode                  restricted                received
ArkBak/Shuling  aclinherit               passthrough               inherited from ArkBak
ArkBak/Shuling  createtxg                1276520                   -
ArkBak/Shuling  canmount                 on                        default
ArkBak/Shuling  xattr                    sa                        received
ArkBak/Shuling  copies                   1                         local
ArkBak/Shuling  version                  5                         -
ArkBak/Shuling  utf8only                 off                       -
ArkBak/Shuling  normalization            none                      -
ArkBak/Shuling  casesensitivity          insensitive               -
ArkBak/Shuling  vscan                    off                       default
ArkBak/Shuling  nbmand                   off                       default
ArkBak/Shuling  sharesmb                 off                       default
ArkBak/Shuling  refquota                 250G                      local
ArkBak/Shuling  refreservation           none                      default
ArkBak/Shuling  guid                     1712592867174778143       -
ArkBak/Shuling  primarycache             all                       default
ArkBak/Shuling  secondarycache           all                       default
ArkBak/Shuling  usedbysnapshots          245K                      -
ArkBak/Shuling  usedbydataset            149G                      -
ArkBak/Shuling  usedbychildren           0B                        -
ArkBak/Shuling  usedbyrefreservation     0B                        -
ArkBak/Shuling  logbias                  latency                   default
ArkBak/Shuling  objsetid                 150                       -
ArkBak/Shuling  dedup                    off                       default
ArkBak/Shuling  mlslabel                 none                      default
ArkBak/Shuling  sync                     standard                  default
ArkBak/Shuling  dnodesize                legacy                    default
ArkBak/Shuling  refcompressratio         1.01x                     -
ArkBak/Shuling  written                  0                         -
ArkBak/Shuling  logicalused              151G                      -
ArkBak/Shuling  logicalreferenced        151G                      -
ArkBak/Shuling  volmode                  default                   default
ArkBak/Shuling  filesystem_limit         none                      default
ArkBak/Shuling  snapshot_limit           none                      default
ArkBak/Shuling  filesystem_count         none                      default
ArkBak/Shuling  snapshot_count           none                      default
ArkBak/Shuling  snapdev                  hidden                    default
ArkBak/Shuling  acltype                  nfsv4                     default
ArkBak/Shuling  context                  none                      default
ArkBak/Shuling  fscontext                none                      default
ArkBak/Shuling  defcontext               none                      default
ArkBak/Shuling  rootcontext              none                      default
ArkBak/Shuling  relatime                 off                       default
ArkBak/Shuling  redundant_metadata       all                       default
ArkBak/Shuling  overlay                  on                        default
ArkBak/Shuling  encryption               off                       default
ArkBak/Shuling  keylocation              none                      default
ArkBak/Shuling  keyformat                none                      default
ArkBak/Shuling  pbkdf2iters              0                         default
ArkBak/Shuling  special_small_blocks     0                         local
ArkBak/Shuling  snapshots_changed        Mon Jan 16  0:01:04 2023  -
ArkBak/Shuling  org.freenas:description  Shuling (SMB share type)  received
ArkBak/Shuling  org.truenas:managedby    192.168.0.100             received
ArkBak/Shuling  org.freebsd.ioc:active   no                        inherited from ArkBak
Tabernacle:~$
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Ah, ZFS tends to not mount a dataset on top of a directory that has items, (files or sub-directories), in it.

Is your mount point /mnt/ArkBak/Shuling empty?
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Ah, ZFS tends to not mount a dataset on top of a directory that has items, (files or sub-directories), in it.

Is your mount point /mnt/ArkBak/Shuling empty?
I'm not quite sure what that means, but when I go in via SSH and look for that path, it's not there.
Code:
Tabernacle:~$ ll /mnt/ArkBak/Shuling
ls: /mnt/ArkBak/Shuling: No such file or directory
Tabernacle:~$ ll /mnt/ArkBak
total 55
drwxr-x---   6 jim   wheel     5B Jan 14 16:47 ./
drwxr-xr-x   4 root  wheel   192B Jan 16 17:01 ../
dr-xr-xr-x+  3 root  wheel     3B Jan 12 14:56 .zfs/
drwxrwx---   9 jim   attic     9B Jan 13 15:50 Attic/
drwxr-x---  12 jim   wheel    27B Jan 15 19:33 Jim/
drwxrwx---  11 jim   movtv    11B Jan 15 14:23 Media/
Tabernacle:~$ 
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Hmm, you can make it;
mkdir /mnt/ArkBak/Shuling
Then mount;
zfs mount ArkBak/Shuling

Don't know why it did not have a mount point directory.
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Hmm, you can make it;
mkdir /mnt/ArkBak/Shuling
Then mount;
zfs mount ArkBak/Shuling

Don't know why it did not have a mount point directory.
Thank you! I had to turn off read-only to do it, but it worked. I don't understand how that works. I would have been afraid to overwrite it when creating the directory.

While I have you, do you have any idea how to delete that .zfs folder in the ArkBak root? It got there by mistake when I was copying something. The acls on it seem to prevent editing acls or anything by anyone.
Code:
[root@Tabernacle /mnt/ArkBak]# ll
total 109
drwxr-x---   7 jim      wheel  uarch   6 Jan 17 05:25 ./
drwxr-xr-x   4 root     wheel  uarch 192 Jan 16 17:01 ../
dr-xr-xr-x+  3 root     wheel  -       3 Jan 12 14:56 .zfs/
drwxrwx---   9 jim      attic  uarch   9 Jan 16 09:11 Attic/
drwxr-x---  12 jim      wheel  uarch  27 Jan 16 21:47 Jim/
drwxrwx---  11 jim      movtv  uarch  11 Jan 15 14:23 Media/
drwxrwxr-x  10 shuling  staff  uarch  11 Jan 16 09:11 Shuling/
[root@Tabernacle /mnt/ArkBak]#
[root@Tabernacle /mnt/ArkBak]# getfacl .zfs
# file: .zfs
# owner: root
# group: wheel
            owner@:r-x---a---c--s:-------:allow
            group@:r-x---a---c--s:-------:allow
         everyone@:r-x---a---c--s:-------:allow
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
While I have you, do you have any idea how to delete that .zfs folder in the ArkBak root?
You don't. It does not exist in the traditional sense, it's an interface exposed by ZFS. You can disable it with zfs set snapdir=hidden pool/path/to/dataset if it's bugging you. Default should be hidden, though...
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Great, glad I could help. If the problem is solved, might want to mark this thread as solved.
 
Top