Having issue importing a zfs pool from OM6

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
What's the output of zfs mount?
 

no1ninja

Dabbler
Joined
Jan 22, 2013
Messages
24
It still makes the folder under neath it "nas" but returns this error. Then when I try to share it it wont let me due to the fact the mount points dont match.

This does not happen if I build the pool from scratch.
 

Attachments

  • 3.jpg
    3.jpg
    123.4 KB · Views: 124

no1ninja

Dabbler
Joined
Jan 22, 2013
Messages
24
Code:
root@truenas[~]# zfs mount
boot-pool/ROOT/22.12.0          /
boot-pool/grub                  /boot/grub
nas2                            /mnt/nas2
nas2/Nas2                       /mnt/nas2/Nas2
nas2/.system                    /var/db/system
nas2/.system/cores              /var/db/system/cores
nas2/.system/samba4             /var/db/system/samba4
nas2/.system/syslog-5a0a2a47cd884dbcbe527966286bfc29  /var/db/system/syslog-5a0a2a47cd884dbcbe527966286bfc29
nas2/.system/rrd-5a0a2a47cd884dbcbe527966286bfc29  /var/db/system/rrd-5a0a2a47cd884dbcbe527966286bfc29
nas2/.system/configs-5a0a2a47cd884dbcbe527966286bfc29  /var/db/system/configs-5a0a2a47cd884dbcbe527966286bfc29
nas2/.system/webui              /var/db/system/webui
nas2/.system/services           /var/db/system/services
nas2/.system/glusterd           /var/db/system/glusterd
nas2/.system/ctdb_shared_vol    /var/db/system/ctdb_shared_vol
Media                           /mnt/data
nas2/.system/cores              /var/lib/systemd/coredump
Media/nas                       /mnt/data/nas
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
It still makes the folder under neath it "nas" but returns this error. Then when I try to share it it wont let me due to the fact the mount points dont match.

This does not happen if I build the pool from scratch.
That's because the mountpoints don't match indeed.

This shows:
Code:
NAME                                                    USED  AVAIL     REFER  MOUNTPOINT
Media                                                  83.8T   144T     82.4T  /mnt/data


Your Media mount point is /mnt/data.

You need to change it to /mnt/Media with zfs set mountpoint=/Media Media
 

no1ninja

Dabbler
Joined
Jan 22, 2013
Messages
24
You did it!!! IT WORKED!

I have access to it and the reads are a bit faster. I will read the primer. Thank you!!!!!
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Cheers!!!
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
That's because the mountpoints don't match indeed.

This shows:
Code:
NAME                                                    USED  AVAIL     REFER  MOUNTPOINT
Media                                                  83.8T   144T     82.4T  /mnt/data


Your Media mount point is /mnt/data.

You need to change it to /mnt/Media with zfs set mountpoint=/Media Media
Good spot @Whattteva
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
I also keep reading that you should do nothing in the shell or command prompt that everything must be done in the GUI, so I am totally confused by this system when the gui does not seem to work propery importing my zfs.
It takes a bit of skill to understand what can be done from the command line, and what MUST be done through the GUI, (or API). In the case of the commands I sent you, they are read only and make no changes that TrueNAS needs to know about.


In regards to your importing of the Media pool, I think the problem is that TrueNAS uses "/mnt/POOL_NAME" for the top level mount point. But, your "Media" pool was created outside of TrueNAS, and uses "/mnt/data". So it appears the GUI is confused. It may be possible to work around this. These commands may fix your problem;
zfs set mountpoint=/mnt/Media Media zpool export Media
Then re-import the pool from the GUI.

Note that their may be other gotchas because your ZFS pool was not made in TrueNAS.

As others have said, you can either have multiple ZFS pools which use separate mount points. Or, you can take your disks and make multiple vDevs, (virtual disk devices), in a single pool, (and single mount point / share).

It gets complicated and in some cases you have to learn enough to make the decision. While we could make guesses on what you want, you would have to live with the results if you followed any advice without understanding the configuration.


Edit: Looks like @Whattteva got to the mount point fix before I could compose a reply.
 
Top