FreeNAS SERVER ============== 2018-12-02 First build === HARDWARE BUILD (refer to XLS for details) ====================================== Case: Fractal Design Define Mini PSU: BeQuiet Straight Power 11 450W Modular Motherboard: SuperMicro X11SSH-F Server CPU: Intel i3-7100 3.9GHz Memory: 2x Kingston 8GB DDR4 2400 ECC DIMM (total 16GB) OS: 2x 32GB SanDisk USB drives HDD: 5x Western Digital Red 4TB Jails: 2x SanDisk 120GB SSD Downloaded Freenas 11.2 RC2, wrote to separate 16GB USB drive === INSTALLATION =================================================================== Installed to both SanDisk USB drives (mirrored) as da0 and da1 Master password: mpr108$ Accounts root: added my email address System / General Keyboard: UK Timezone: Europe/London System / NTP Servers Replaced three with single "pool.ntp.org" System / Advanced Show text console without password: untick System / Email From email: bob.beveridge@ntlworld.com From name: Titan NAS Outgoing: smtp.ntlworld.com Port: 465 Security: SSL SMTP Auth: ticked Username: bob.beveridge PW/Confirm: password System / Alert Services SNMP: deleted Network / Global Configuration Hostname: TITAN Default gateway: 192.168.0.1 Nameserver 1: 194.168.4.100 Nameserver 2: 194.168.8.100 Network / Interfaces Interface: igb0 DHCP: No IP4 Address: 192.168.0.10/24 === STORAGE ======================================================================== Storage / Pools JailsPool: 2x 120GB SSD, Mirror Dataset: PlexJail, Unix, sensitive MasterPool: 5x 4TB HDD, RAID-Z2 Dataset: Media, Unix, sensitive Dataset: Public, Unix, sensitive Dataset: TimeMachine, Mac, sensitive Accounts Users: add "bob", "jane" Time Machine ... refer to section APR 2023 below Sharing SMB / Edit Select dataset Media, name = Media, tick Allow Guest Access (will lock down later) Select dataset Public, name = Public, tick Allow Guest Access (will lock down later) Storage / Pools / Edit Permissions Add user Bob to each dataset (will adjust users/groups later) Check folders accessible from Mac, and add media folders, copy a couple of movies across for testing === JAILS [Plex install ] ========================================================== Activate pool for Jail manager: JailsPool Plugins / Add Select PLEX, install. Select DHCP, need to reserve wanted IP in router (Takes some time for first jail, before even starts downloading Plex) Jails Stop Plex running Select ...!Mount points; source = MasterPool|Media, dest = JailsPool.../plex/root/media Plugins / Installed Select ...!Restart Plex server Select ...!Management; setup Plex server as normal via web interface (use "/media" for path and save) === 2020-08-22 UPDATE ============================================================== Backup all data to WD Elements drive Backup config file (put in "bbarchive/files/Computer/TrueNAS Server/..." Used System|Update to update FreeNAS from 11.2-RC2 to 11.2-U8 (as advised by Release Notes) Changed train to FreeNAS-11.3-STABLE Used System|Update to update FreeNAS from 11.2-U8 to 11.3-U4.1 Updated Plex Plugin to Version 1.19.5.3112 === 2021-09-25 PLEX UPDATE ========================================================== PLEX update Within PLEX jail, stop PLEX service plexmediaserver stop Backup data cd /usr/local/plexdata tar -czvf plexbackup.tar.gz "Plex Media Server" From main Shell, move backup to main storage mv /mnt/JailsPool/iocage/jails/plex/root/usr/local/plexdata/plexbackup.tar.gz /mnt/MasterPool/Media/ ; Did backup above then accidentally deleted PLEX Jail, so did reinstall Create new jail name: plex release: pick latest VNET: checked IPv4 Interface: vnet0 IPv4 Address: 192.168.0.137 IPv4 Netmask: 24 Auto-start: checked Start jail From jail's shell, update all, then install plexserver pkg update pkg upgrade pkg install multimedia/plexserver Setup Plex to start automatically when jail starts sysrc plexmediaserver_enable=YES Start Plex server service plexmediaserver start Navigate to Plex in browser http://192.168.0.137:32400/web/ Restore metadata from main shell; stop jail first, copy backup, then unTAR cp /mnt/MasterPool/Media/plexbackup.tar.gz /mnt/JailsPool/iocage/jails/plex/root/usr/local/plexdata/ cd /mnt/JailsPool/iocage/jails/plex/root/usr/local/plexdata/ tar -xzvf plexbackup.tar.gz Add mount point Source: /mnt/MasterPool/Media Destination: /mnt/JailsPool/iocage/jails/plex/root/media Restart jail [ DOUBLE CHECK ORDER HERE ] === 2023-04-01 NEW TIME MACHINE ========================================================== Tried deleting old TimeMachine share, will not delete! - found post to force unmount: - in Shell; type "zfs unmount -f /mnt/VOLUME/DATASET", replace VOLUME = MasterPool, DATASET = TimeMachine From: https://www.reddit.com/r/MacOS/comments/lh0yjc/configure_a_truenas_core_share_as_a_time_machine/ - Go to Accounts -> Users, and create a user account to use for Time Machine backups. Just leave everything other than full name, username, and password as default. For this example my TM backup user is called 'TimeMachine' - Go to Storage -> Pools, and click the 3 dots next to your main pool, or the pool that you want to use to hold the TM backups. Add Dataset. I called mine ‘TimeMachine’. Leave everything as default. (If you don't have any Pools AKA on a clean install just create a pool with default settings. Tip: Name it something vague like MainPool so it won't look odd when you add datasets later for a NAS share or something.) - Now go to Sharing -> Windows Shares (SMB) (yes you use Samba for MacOS. Ignore the AFP Apple Shares option). Click Add. - Browse the path to the location of the dataset you created in the earlier step. - In the ‘Purpose’ drop down BE SURE TO SELECT ‘Multi-user time machine’. This will configure everything properly for you. Click Submit. When prompted to restart the SMB service do so. - You will be asked if you wish to configure ACL for the share’s dataset. Click ‘Configure Now’. - You will be asked to select a preset ACL or create a custom one. Select the ‘RESTRICTED’ preset. Click ‘Continue’. - Change the user and group dropdown boxes to both reflect the name & group of the Time Machine user you created in step 1 (in this example both are called 'TimeMachine'). Be sure to check the Apply User and Apply Group checkboxes. Click Save. - Now open Time Machine on your Mac and select ‘Select Disk’. Your TrueNAS share should be in the list. Enter the credentials for the user you created. New Proxmox Server ================== Installed as per paper notes Connect to Proxmox from browser on PC: https://192.168.0.9:8006/ "This Connection Is Not Private"; click "Shoe details", click "Visit this website", confirm Login, root / PW set above Ignore warning re Subscription