Replicated datasets does not show in dir listing

eccevery

Dabbler
Joined
Oct 24, 2014
Messages
42
Since migrating from FreeNAS to TrueNAS I've been having some issues with replication. I started another thread on the replication issues itself, but at this point I have managed to get around it and now replication is running but I cant see any files on the target server.

Quick background: After upgrading to TrueNAS 12 replications stopped working. I tried to start replication over (deleting snapshots, replication tasks etc) but no matter what I did the replication either failed or replicated a few kilobytes. I finally worked around the problem by manually copying files to a new harddrive I installed temporarily in the main storage server and then replicated THOSE datastores.

The problem is that I cannot see the files on the target device:

Screenshot 2020-11-22 at 12.18.38.png


However, the datasets show up in the GUI under storage and in zfs list:

Screenshot 2020-11-22 at 12.19.34.png


Screenshot 2020-11-22 at 12.21.46.png


I suspect this may have to do with nested datasets that I have created on the temporary disk that I used to created replications from. I created a dataset on the temprary drive called "backup_pool" and on that drive several child datasets. Three of those you see in the screenshot above (replicated to the backup server). I have not replicated the "backup_pool" dataset, maybe that somehow messes things up? This is the replication settings for the music dataset:

Screenshot 2020-11-22 at 12.25.36.png


I'm a bit confused and don't really know what I'm doing at this point. Have I set up the replication wrong somehow? Wy does not anything show up in the backup server on tank2?
 

eccevery

Dabbler
Joined
Oct 24, 2014
Messages
42
Solved it! Dataset on target server was read-only, causing filesystem to not mount:

Code:
root@pluto:/mnt/tank2 # zfs get all tank2/music_backup
NAME                PROPERTY               VALUE                    SOURCE
tank2/music_backup  type                   filesystem               -
tank2/music_backup  creation               Sat Nov 21 20:32 2020    -
tank2/music_backup  used                   23.8G                    -
tank2/music_backup  available              6.84T                    -
tank2/music_backup  referenced             23.8G                    -
tank2/music_backup  compressratio          1.00x                    -
tank2/music_backup  mounted                no                       -   <---------
tank2/music_backup  quota                  none                     received
tank2/music_backup  reservation            none                     received
tank2/music_backup  recordsize             128K                     default
tank2/music_backup  mountpoint             /mnt/tank2/music_backup  default
tank2/music_backup  sharenfs               off                      default
tank2/music_backup  checksum               on                       default
tank2/music_backup  compression            off                      default
tank2/music_backup  atime                  on                       default
tank2/music_backup  devices                on                       default
tank2/music_backup  exec                   on                       default



Tried to mount it:
Code:
root@pluto:/mnt/tank2 # zfs mount tank2/music_backup
cannot mount '/mnt/tank2/music_backup': failed to create mountpoint: Read-only file system


Checked the settings on target server pool:
Screenshot 2020-11-23 at 08.42.46.png


Changed read-only setting to false, mounted filesystem and all looks good!
 
Top