TrueNAS: Difference between revisions

From Bitpost wiki
No edit summary
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
==== Set up shares ====
==== Set up shares ====
I set up shares for each of the ACL datastores.
I set up shares for each of the ACL datastores.
WARNING I had to set these  Auxillary parameters in the SMB config so that symlinks would be followed.
* Services > SMB > Actions > configuration > Auxillary Parameters:
unix extensions = no
follow symlinks = yes
wide links = yes
* Stop and restart SMB service


Seems good for now!  I can access them from elsewhere with this /etc/fstab goo:
Seems good for now!  I can access them from elsewhere with this /etc/fstab goo:
Line 20: Line 28:
  //hive/splat /spiceflow/splat cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto  0 0
  //hive/splat /spiceflow/splat cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto  0 0
  //hive/reservoir /spiceflow/reservoir cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto  0 0
  //hive/reservoir /spiceflow/reservoir cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto  0 0
==== Set up alert emails ====
Go to one of your google accounts to get an App password.  It has to be an account that has 2fa turned on, bleh, so don't use moodboom@gmail.com.  I went with abettersoftwaretrader@gmail.com.
Accounts > Users > root > edit password > abettersoftwaretrader@gmail.com
System > Email > from email > abettersoftwaretrader@gmail.com, smtp.gmail.com 465 Implicit SSL, SMTP auth: (email/API password)
=== Troubleshooting ===
SOME of my shares were throwing '''Permission Denied''' errors on mv.  Solutions:
* I applied permissions again, recursively, then restarted the SMB service on hive and the problem went away.
* You can also always go to the melange hive console, request a shell, and things always seem to work from there (but you're in FreeBSD world and don't have any beauty scripts like mh-move-torrent!)


=== Later plans ===
=== Later plans ===
Get a bunch (7 or 10?)_of similar ssds and set up a robust raid2z NFS pool.  Gonna cost a couple thousand, look for a NAS drive deal.
Get a bunch (7 or 10?)_of similar ssds and set up a robust raid2z NFS pool.  Gonna cost a couple thousand, look for a NAS drive deal
 
Right now, the price is high, everything good is at least $100/1TB, and I need a good 40TB to get 30TB of robust storage.

Revision as of 23:17, 25 March 2021

Installed to HIVE VM on melange proxmox

Set up pools

I didn't want to lose storage on the shitty pile of drives I started with, so I set up three drives as standalone striped pools, and 2 sets of pairs as striped pools. That means no loss of storage and no safety AT ALL except that striping will tell me AFTER they've started going bad, bahahaha. I need to spend $3k on 10 ssd NAS drives to get to a better place. Not now.

Set up datastores

It seems I had to set up datastores under my pool root datastores, just so I could add ACL settings to give complete control to the m Samba user. I used the root name with a -ds suffix. I set sharing to SMB. I set the ACL to @owner m:m. Make sure to keep the ACL set to Basic, it's easy to screw up and once you do, files on the system will have screwed up permissions and you might have to fix and apply permissions recursively.

Set up user

I set up m user (1000) and m group (1000)

Set up shares

I set up shares for each of the ACL datastores.

WARNING I had to set these Auxillary parameters in the SMB config so that symlinks would be followed.

  • Services > SMB > Actions > configuration > Auxillary Parameters:
unix extensions = no
follow symlinks = yes
wide links = yes
  • Stop and restart SMB service

Seems good for now! I can access them from elsewhere with this /etc/fstab goo:

# MDM FreeNAS has arrived
//hive/sassy /spiceflow/sassy cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto   0 0
//hive/mack /spiceflow/mack cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto   0 0
//hive/sans /spiceflow/sans cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto   0 0
//hive/splat /spiceflow/splat cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto   0 0
//hive/reservoir /spiceflow/reservoir cifs credentials=/root/samba_credentials,uid=1000,gid=1000,file_mode=0774,dir_mode=0775,auto   0 0

Set up alert emails

Go to one of your google accounts to get an App password. It has to be an account that has 2fa turned on, bleh, so don't use moodboom@gmail.com. I went with abettersoftwaretrader@gmail.com.

Accounts > Users > root > edit password > abettersoftwaretrader@gmail.com
System > Email > from email > abettersoftwaretrader@gmail.com, smtp.gmail.com 465 Implicit SSL, SMTP auth: (email/API password)

Troubleshooting

SOME of my shares were throwing Permission Denied errors on mv. Solutions:

  • I applied permissions again, recursively, then restarted the SMB service on hive and the problem went away.
  • You can also always go to the melange hive console, request a shell, and things always seem to work from there (but you're in FreeBSD world and don't have any beauty scripts like mh-move-torrent!)

Later plans

Get a bunch (7 or 10?)_of similar ssds and set up a robust raid2z NFS pool. Gonna cost a couple thousand, look for a NAS drive deal.

Right now, the price is high, everything good is at least $100/1TB, and I need a good 40TB to get 30TB of robust storage.