Please confirm mount point for pool and datasets is correct? (new to TrueNAS)

diver864

Cadet
Joined
Dec 30, 2022
Messages
3
Hi,

I'm moving from OMV (w ZFS plugin) to TrueNAS. I have clean-installed TrueNAS SCALE (Bluefin), and have not used FreeNAS/TrueNAS before. I have imported my ZFS pool and its data successfully, I think. There is some data in the top-level of the imported pool that I believe should be moved down to sub-datasets on that vdev/pool as good-practice. But before I start moving large quantities of data, would you please check to see if I have got the mount points correct? I do not want to fill up the /mnt directory on my boot pool by accident.

My datasets should go on the vdev that is mirrored HDDs ('tank'), not on the boot vdev that is a mirror of two small SSDs ('boot-pool').

1. The data pool and its top-level dataset are both called 'tank'. Have I imported the pool to the correct mount point?
- The GUI shows the dataset as 'tank'.

2. In the GUI I also created datasets meant to be below 'tank', e.g. tank/home, tank/music, tank/photos, .... In the GUI under 'manage dataset', they do appear as children to tank. In each sub-dataset's 'edit' panel, under path, it says tank/music, which seems right.

3. But I am confused by what I see in the shell. From /, which I presume is on the boot pool, if I look at /mnt, I see:
Code:
root@truenas[/]# ls -al mnt
total 20
drwxr-xr-x  7 root root   7 Dec 30 08:51 .
drwxr-xr-x 20 root root  31 Dec 29 02:59 ..
drwxr-xr-x  2 root root   2 Dec 29 17:47 backups
drwxr-xr-x  2 root root   2 Dec 29 18:52 home
drwxr-xr-x  2 root root   2 Dec 29 17:43 music
drwxr-xr-x  2 root root   2 Dec 29 17:42 photos
drwxrws---  5 root users  5 Dec 29 20:20 tank

Why are those sub-datasets at the same level as tank?

(I know for sure that the directories on /mnt/tank are the imported data. For example, the 'pics' folder contains about 90,000 photos. That's not on the boot-pool.)
Code:
root@truenas[/mnt/tank]# ls -al /mnt/tank
total 27
drwxrws---  5 root users  5 Dec 29 20:20 .
drwxr-xr-x  7 root root   7 Dec 30 08:51 ..
drwx--S---  4 1001 users  4 Dec 29 20:26 backups
drwxr-xr-x  5 root users  8 Dec 29 20:05 homes
drwxrwsr-x 35 root users 35 Jan 28  2022 pics


Here is the output of zfs list:
Code:
root@truenas[/mnt/tank]# zfs list -t all -r     
NAME                                                         USED  AVAIL     REFER  MOUNTPOINT
boot-pool                                                   2.66G   211G       96K  none
boot-pool/.system                                           17.2M   211G      120K  legacy
boot-pool/.system/configs-5a0a2a47cd884dbcbe527966286bfc29   184K   211G      184K  legacy
boot-pool/.system/cores                                       96K  1024M       96K  legacy
boot-pool/.system/ctdb_shared_vol                             96K   211G       96K  legacy
boot-pool/.system/glusterd                                   104K   211G      104K  legacy
boot-pool/.system/rrd-5a0a2a47cd884dbcbe527966286bfc29      14.7M   211G     14.7M  legacy
boot-pool/.system/samba4                                     248K   211G      248K  legacy
boot-pool/.system/services                                    96K   211G       96K  legacy
boot-pool/.system/syslog-5a0a2a47cd884dbcbe527966286bfc29   1.50M   211G     1.50M  legacy
boot-pool/.system/webui                                       96K   211G       96K  legacy
boot-pool/ROOT                                              2.63G   211G       96K  none
boot-pool/ROOT/22.12.0                                      2.63G   211G     2.62G  legacy
boot-pool/ROOT/22.12.0@2022-12-28-15:16:24                  10.9M      -     2.62G  -
boot-pool/ROOT/Initial-Install                                 8K   211G     2.62G  /
boot-pool/grub                                              8.20M   211G     8.20M  legacy
tank                                                         291G  3.23T      233G  /mnt
tank@manual-2022-12-29_11-51                                58.0G      -      291G  -
tank/backups                                                  96K  3.23T       96K  /mnt/backups
tank/home                                                     96K  3.23T       96K  /mnt/home
tank/music                                                    96K  3.23T       96K  /mnt/music
tank/photos                                                   96K  3.23T       96K  /mnt/photos


Is it correct for tank to be at /mnt, and for tank/[sub-datasets] to be at /mnt/[sub-dataset]?

Thanks!
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
No, it should be;
/mnt/tank
with the child datasets below that.
 

diver864

Cadet
Joined
Dec 30, 2022
Messages
3
No, it should be;
/mnt/tank
with the child datasets below that.
Thanks, @Arwen - that's what I thought. What would you recommend, to set things right?

For context, here are some screenshots from the GUI.
First is, starting in Storage > select Manage Dataset:
Screenshot Storage - Manage Dataset.png


Second is Dataset Detail - where the path is simply 'tank'.
Screenshot Storage - Manage Dataset - dataset details.png


And under Datasets, here is the Dataset Details for 'backups', where it shows the path is 'tank/backups'.
Screenshot - Datasets - Dataset details.png
 

diver864

Cadet
Joined
Dec 30, 2022
Messages
3
When I imported it yesterday the first time I had to resolve a few things (wanted to change the old pool name, mount point.)

In the end I manually imported it using something like zpool import -f /mnt/tank tank, But as we can see, it’s not mounted that way.

Hope someone can assist with this.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Sorry, I don't know the fix. Manually importing the pool has some peculiarities.

You could try manually exporting the pool from the command line. Then importing the pool from the GUI.
 
Top