SOLVED I messed up the mountpoint for a pool (!)

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
I created a new pool that was working fine as /mnt/Series. I copied some files over, and wanted to set a mountpoint on a folder in another pool to /mnt/Series. Since I'm an idiot, I messed up and now there's no /mnt/Series anymore. The Series-pool still says I've used about 1TB so I'm guessing the files are "fine" but I can't reach them anymore.
Would exporting and importing the pool solve this, or do I need to start over?
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Generally these types of issues are better fixed from the command line. Please send us the output of the following commands in code tags;
Code:
zpool list
zfs list -t all -r

You should probably put in a Jira bug ticket, to get the GUI updated so that can't happen in the future.
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Code:
root@bignas[/mnt]# zpool list
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
Series     14.5T  1.27T  13.3T        -         -     0%     8%  1.00x    ONLINE  /mnt
boot-pool   206G  12.9G   193G        -         -     0%     6%  1.00x    ONLINE  -
tank       14.5T  10.1T  4.46T        -         -    19%    69%  1.00x    ONLINE  /mnt


Code:
root@bignas[/mnt]# zfs list -t all -r
NAME                                                                            USED  AVAIL     REFER  MOUNTPOINT
Series                                                                         1.27T  13.2T     1.27T  none
boot-pool                                                                      12.9G   187G       96K  none
boot-pool/ROOT                                                                 12.9G   187G       96K  none
boot-pool/ROOT/12.0-U6                                                          296K   187G     1.39G  /
boot-pool/ROOT/12.0-U6.1                                                        296K   187G     1.39G  /
boot-pool/ROOT/12.0-U7                                                          288K   187G     1.41G  /
boot-pool/ROOT/12.0-U8                                                          288K   187G     1.41G  /
boot-pool/ROOT/12.0-U8.1                                                        304K   187G     1.41G  /
boot-pool/ROOT/13.0-RELEASE                                                     296K   187G     1.50G  /
boot-pool/ROOT/13.0-U1                                                          304K   187G     1.50G  /
boot-pool/ROOT/13.0-U1.1                                                       12.9G   187G     1.50G  /
boot-pool/ROOT/13.0-U1.1@2021-02-09-00:11:32                                   3.30M      -     1.36G  -
boot-pool/ROOT/13.0-U1.1@2021-04-17-11:34:29                                   3.51M      -     1.36G  -
boot-pool/ROOT/13.0-U1.1@2021-11-15-22:43:23                                   1.39G      -     1.39G  -
boot-pool/ROOT/13.0-U1.1@2021-12-19-17:20:56                                   1.39G      -     1.39G  -
boot-pool/ROOT/13.0-U1.1@2022-04-12-03:40:48                                   1.41G      -     1.41G  -
boot-pool/ROOT/13.0-U1.1@2022-04-21-03:44:02                                   1.41G      -     1.41G  -
boot-pool/ROOT/13.0-U1.1@2022-07-01-03:02:28                                   1.41G      -     1.41G  -
boot-pool/ROOT/13.0-U1.1@2022-07-12-21:55:32                                   1.50G      -     1.50G  -
boot-pool/ROOT/13.0-U1.1@2022-07-28-23:52:24                                   1.50G      -     1.50G  -
boot-pool/ROOT/Initial-Install                                                    8K   187G     1.36G  legacy
boot-pool/ROOT/default                                                          280K   187G     1.36G  legacy
tank                                                                           7.33T  3.12T      186K  /mnt/tank
tank/.system                                                                   92.9M  3.12T      186K  legacy
tank/.system/configs-7bdf26d378f44463a02df9c5bc4d0ea3                          42.5M  3.12T     42.5M  legacy
tank/.system/cores                                                              140K  1024M      140K  legacy
tank/.system/rrd-7bdf26d378f44463a02df9c5bc4d0ea3                              39.1M  3.12T     39.1M  legacy
tank/.system/samba4                                                            6.07M  3.12T      599K  legacy
tank/.system/samba4@wbc-1633751672                                              308K      -      552K  -
tank/.system/samba4@wbc-1637012792                                              308K      -      552K  -
tank/.system/samba4@wbc-1637760891                                              314K      -      575K  -
tank/.system/samba4@wbc-1639931047                                              314K      -      587K  -
tank/.system/samba4@wbc-1640664149                                              314K      -      587K  -
tank/.system/samba4@wbc-1642211952                                              314K      -      587K  -
tank/.system/samba4@update--2022-04-12-01-41--12.0-U7                           215K      -      610K  -
tank/.system/samba4@wbc-1649727876                                              192K      -      587K  -
tank/.system/samba4@update--2022-04-21-01-44--12.0-U8                           215K      -      599K  -
tank/.system/samba4@wbc-1650505654                                              215K      -      599K  -
tank/.system/samba4@update--2022-07-01-01-03--12.0-U8.1                         227K      -      622K  -
tank/.system/samba4@wbc-1656637579                                              203K      -      599K  -
tank/.system/samba4@update--2022-07-12-19-56--13.0-RELEASE                      244K      -      610K  -
tank/.system/samba4@wbc-1657655926                                              232K      -      599K  -
tank/.system/samba4@wbc-1658867290                                              267K      -      599K  -
tank/.system/samba4@wbc-1658868350                                              267K      -      599K  -
tank/.system/samba4@wbc-1659044045                                              279K      -      599K  -
tank/.system/samba4@wbc-1659045046                                              279K      -      599K  -
tank/.system/samba4@update--2022-07-28-21-53--13.0-U1                           209K      -      599K  -
tank/.system/samba4@wbc-1659045327                                              209K      -      599K  -
tank/.system/services                                                           140K  3.12T      140K  legacy
tank/.system/syslog-7bdf26d378f44463a02df9c5bc4d0ea3                           4.68M  3.12T     4.68M  legacy
tank/.system/webui                                                              140K  3.12T      140K  legacy
tank/Backup                                                                    1018G  3.12T     1018G  /mnt/tank/Backup
tank/Plex                                                                      5.81T  3.12T     5.81T  /mnt/tank/Plex
tank/Public                                                                     143G  3.12T      143G  /mnt/tank/Public
tank/Vault                                                                      267K  3.12T      267K  /mnt/tank/Vault
tank/iocage                                                                     392G  3.12T     13.7M  /mnt/tank/iocage
tank/iocage/download                                                            772M  3.12T      140K  /mnt/tank/iocage/download
tank/iocage/download/12.1-RELEASE                                               371M  3.12T      371M  /mnt/tank/iocage/download/12.1-RELEASE
tank/iocage/download/13.0-RELEASE                                               401M  3.12T      401M  /mnt/tank/iocage/download/13.0-RELEASE
tank/iocage/images                                                              140K  3.12T      140K  /mnt/tank/iocage/images
tank/iocage/jails                                                               388G  3.12T      151K  /mnt/tank/iocage/jails
tank/iocage/jails/BT                                                            368G  3.12T      482K  /mnt/tank/iocage/jails/BT
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2021-12-19_17-14-27            372K      -      430K  -
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2021-12-19_17-25-06            360K      -      418K  -
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2021-12-19_17-28-59            372K      -      430K  -
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2022-07-12_22-40-38            407K      -      465K  -
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2022-07-12_22-51-43            413K      -      471K  -
tank/iocage/jails/BT@ioc_update_12.1-RELEASE-p13_2022-07-12_22-55-25            389K      -      448K  -
tank/iocage/jails/BT/root                                                       368G  3.12T      368G  /mnt/tank/iocage/jails/BT/root
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2021-12-19_17-14-27      63.9M      -      368G  -
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2021-12-19_17-25-06      34.1M      -      368G  -
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2021-12-19_17-28-59      33.9M      -      368G  -
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2022-07-12_22-40-38      33.8M      -      368G  -
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2022-07-12_22-51-43      34.9M      -      368G  -
tank/iocage/jails/BT/root@ioc_update_12.1-RELEASE-p13_2022-07-12_22-55-25      35.0M      -      368G  -
tank/iocage/jails/PlexMS                                                       20.3G  3.12T      477K  /mnt/tank/iocage/jails/PlexMS
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-04-11_04-08-33        389K      -      459K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-04-11_15-18-18        401K      -      471K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-06-13_23-33-30        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-06-13_23-35-00        413K      -      482K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-06-13_23-36-44        401K      -      471K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-06-24_18-13-37        401K      -      471K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-08-09_00-48-22        413K      -      471K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-10-09_15-00-13        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-10-09_15-01-45        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-11-15_22-55-03        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2021-12-19_17-26-01        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2022-02-17_02-58-41        378K      -      436K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2022-02-17_03-01-32        389K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_12.1-RELEASE-p13_2022-07-12_22-05-45         93K      -      448K  -
tank/iocage/jails/PlexMS@ioc_plugin_upgrade_2022-07-12                           93K      -      448K  -
tank/iocage/jails/PlexMS@ioc_update_13.0-RELEASE-p11_2022-07-12_22-14-07        418K      -      477K  -
tank/iocage/jails/PlexMS@ioc_update_13.0-RELEASE-p11_2022-07-31_23-26-05         93K      -      465K  -
tank/iocage/jails/PlexMS@ioc_update_13.0-RELEASE-p11_2022-07-31_23-27-25         93K      -      465K  -
tank/iocage/jails/PlexMS/root                                                  20.3G  3.12T     4.63G  /mnt/tank/iocage/jails/PlexMS/root
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-04-11_04-08-33   402M      -     1.67G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-04-11_15-18-18   427M      -     1.70G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-06-13_23-33-30   420M      -     3.18G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-06-13_23-35-00   395M      -     3.30G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-06-13_23-36-44   396M      -     3.30G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-06-24_18-13-37   618M      -     3.27G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-08-09_00-48-22   518M      -     3.09G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-10-09_15-00-13   479M      -     4.42G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-10-09_15-01-45   405M      -     4.53G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-11-15_22-55-03  1.13G      -     3.92G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2021-12-19_17-26-01  1.32G      -     4.36G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2022-02-17_02-58-41   435M      -     4.36G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2022-02-17_03-01-32   402M      -     4.50G  -
tank/iocage/jails/PlexMS/root@ioc_update_12.1-RELEASE-p13_2022-07-12_22-05-45   366K      -     4.11G  -
tank/iocage/jails/PlexMS/root@ioc_plugin_upgrade_2022-07-12                     366K      -     4.11G  -
tank/iocage/jails/PlexMS/root@ioc_update_13.0-RELEASE-p11_2022-07-12_22-14-07   481M      -     4.34G  -
tank/iocage/jails/PlexMS/root@ioc_update_13.0-RELEASE-p11_2022-07-31_23-26-05   355K      -     8.34G  -
tank/iocage/jails/PlexMS/root@ioc_update_13.0-RELEASE-p11_2022-07-31_23-27-25   355K      -     8.34G  -
tank/iocage/log                                                                 163K  3.12T      163K  /mnt/tank/iocage/log
tank/iocage/releases                                                           3.27G  3.12T      140K  /mnt/tank/iocage/releases
tank/iocage/releases/12.1-RELEASE                                              1.65G  3.12T      140K  /mnt/tank/iocage/releases/12.1-RELEASE
tank/iocage/releases/12.1-RELEASE/root                                         1.65G  3.12T     1.65G  /mnt/tank/iocage/releases/12.1-RELEASE/root
tank/iocage/releases/13.0-RELEASE                                              1.62G  3.12T      140K  /mnt/tank/iocage/releases/13.0-RELEASE
tank/iocage/releases/13.0-RELEASE/root                                         1.62G  3.12T     1.62G  /mnt/tank/iocage/releases/13.0-RELEASE/root
tank/iocage/templates                                                           140K  3.12T      140K  /mnt/tank/iocage/templates


The GUI is fine. I messed up from the CLI...
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Yes, it looks like you un-mounted Series pool. I'd say a reboot would be the quickest fix. TrueNAS should re-mount Series pool on "/mnt/Series".
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Reboot didn't help.

Code:
root@bignas[~]# ls -al /mnt
total 25
drwxr-xr-x   3 root  wheel  128 Aug  1 04:27 .
drwxr-xr-x  20 root  wheel   27 Aug  1 04:27 ..
-rw-r--r--   1 root  wheel    5 Jul 28 23:52 md_size
drwxr-xr-x   7 root  wheel    7 Apr 12  2021 tank
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Try zpool import -F -R /mnt -c /data/zfs/zpool.cache Series.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Okay, let's get some details. Please run the following commands and list the output in code tags;
Code:
zfs get mountpoint Series
zfs get canmount Series
zfs get mounted Series
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Okay, let's get some details. Please run the following commands and list the output in code tags;
Code:
zfs get mountpoint Series
zfs get canmount Series
zfs get mounted Series
Code:
root@bignas[~]# zfs get mountpoint Series
NAME    PROPERTY    VALUE       SOURCE
Series  mountpoint  none        local
root@bignas[~]# zfs get canmount Series
NAME    PROPERTY  VALUE     SOURCE
Series  canmount  on        default
root@bignas[~]# zfs get mounted Series
NAME    PROPERTY  VALUE    SOURCE
Series  mounted   no       -
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Try zpool import -F -R /mnt -c /data/zfs/zpool.cache Series.
Code:
root@bignas[~]# zpool import -F -R /mnt -c /data/zfs/zpool.cache Series
cannot import 'Series': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name


I guess it should be mentioned that one of my f-ups is that I made a mountpoint to Series, then set it to none. I don't think Series existed before I started messing around, only /mnt/Series.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, try the import without the -F.
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Code:
root@bignas[~]# zpool import -R /mnt -c /data/zfs/zpool.cache Series
cannot import 'Series': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Try this:
  1. zpool import -R /mnt -c /data/zfs/zpool.cache Series <new name>
  2. zpool export <new name>
  3. zpool import -R /mnt -c /data/zfs/zpool.cache <new name> Series
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
Thanks for hanging in there, @Samuel Tai. :)

Code:
root@bignas[~]# zpool import -R /mnt -c /data/zfs/zpool.cache Series PlexSeries
cannot import 'Series': no such pool available
cachefile import failed, retrying
cannot import 'Series': no such pool available
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
I figured it out, it was just setting the correct mount point again.
Code:
zfs set mountpoint=/Series Series
I didn't realize it should be /Series, but it worked fine.
Thanks to both of you for helpful advice!
 

Rakrul

Dabbler
Joined
Dec 27, 2021
Messages
17
To avoid me shooting myself in the foot again, I'll ask here.
I'm trying to point /mnt/tank/iocage/jails/PlexMS/root/media/series to /Series as I can't point Plex outside the jail. I did something similar when I installed TrueNAS but I can't for the life of me remember how.

First I tried this:
Code:
root@bignas[/mnt/tank/iocage/jails/PlexMS/root/media]# zfs set mountpoint=/Series /mnt/tank/iocage/jails/PlexMS/root/media/series
cannot open '/mnt/tank/iocage/jails/PlexMS/root/media/series': leading slash in name

so I went to /mnt/tank/iocage/jails/PlexMS/root/media and tried
Code:
root@bignas[/mnt/tank/iocage/jails/PlexMS/root/media]# zfs set mountpoint=/Series series
cannot open 'series': dataset does not exist

So I figured I needed to create it first.
Code:
root@bignas[/mnt/tank/iocage/jails/PlexMS/root/media]# zfs create tank/iocage/jails/PlexMS/root/media/series
cannot create 'tank/iocage/jails/PlexMS/root/media/series': parent does not exist

Fair enough, so I picked one that was in the mount list, as parent
Code:
root@bignas[/mnt/tank/iocage/jails/PlexMS/root/media]# zfs create tank/iocage/jails/PlexMS/root/series
root@bignas[/mnt/tank/iocage/jails/PlexMS/root/media]# zfs set mountpoint=/Series tank/iocage/jails/PlexMS/root/series

so I figured I was done, but no.
Code:
root@bignas[/mnt/tank/iocage/jails/PlexMS/root]# zfs get mountpoint tank/iocage/jails/PlexMS/root/series
NAME                                  PROPERTY    VALUE        SOURCE
tank/iocage/jails/PlexMS/root/series  mountpoint  /mnt/Series  local
root@bignas[/mnt/tank/iocage/jails/PlexMS/root]# ls -al series
total 13
drwxr-xr-x   2 root  wheel   2 Aug  1 19:59 .
drwxr-xr-x  22 root  wheel  26 Aug  1 19:59 ..

It isn't showing tank/iocage/jails/PlexMS/root/series when I type mount either. I obviously am quite clueless when it comes to the logic and pre-requisites for this so can anyone point me in the right direction?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
@Rakrul - TrueNAS in general wants something like this for the mount point;

/mnt/Series

So, remount it with the "/mnt" prefix.

@Samuel Tai - You kept missing that the pool was already imported. I asked for and received the output of zpool list in post #3 that showed pool Series was imported;
I messed up the mountpoint for a pool (!) - #3
 
Top