61
From Mac Servers to NAS The Great Migration Bryan Heinz

The Great Migration Final

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Great Migration Final

From Mac Servers to NASThe Great Migration

Bryan Heinz

Page 2: The Great Migration Final

$(whoami)• Hi, I’m Bryan 👋• Twitter: @cookie_lust• Slack: @bheinz

• I live in Peoria, IL.• AKA 3 hours south of Chicago• AKA 3 hours north of St. Louis

Page 3: The Great Migration Final

$(whoami)

• IT Manager @ Simantel• B2B marketing firm• On-prem & cloud servers, DEP&MDM, network, end-point

management, etc. etc. etc.

Page 4: The Great Migration Final

I doall the things

Page 5: The Great Migration Final

$(whoami)

• IT Manager @ Simantel• B2B marketing firm• On-prem & cloud servers, DEP&MDM, network, end-point

management, etc. etc. etc.• I’ve worked in IT for around 11 years• I’ve worked with Synology devices for around 6 years• To a lesser extent, QNAP• Archive and backup needs kickstarted my work with

Synology

Page 6: The Great Migration Final

Server

Synology 1 Synology 2

Page 7: The Great Migration Final

Expectations

• This talk will include• What a NAS server is• A map of Server.app services to these NAS’• Other uses for NAS’• Tips and advice on using a NAS

• This talk won’t include• How to implement any of this stuff (good luck)• What you should buy

Page 8: The Great Migration Final

The Takeaway• If NAS’ are the correct tool for your org 🔩🔨• What you can use a NAS for• Ideas on what vendor and model is for you

Page 9: The Great Migration Final

☣ Disclaimer ☣

Page 10: The Great Migration Final

Disclaimer ☣

• Tried to make this talk vendor agnostic, but…• This talk will be skewed towards Synology• Synology and QNAP are the best…• For the kind of use cases I’m talking about today

• i.e. more than just storage• Other vendors lack turnkey applications and documentation

• I have zero affiliation with any vendors• I’m not trying to sell you a thing

Page 11: The Great Migration Final
Page 12: The Great Migration Final

NAS What?

Page 13: The Great Migration Final

NAS What?

• Network Attached Storage• AFP, SMB, NFS

• More than just storage• Relatively cheap• Base/primary unit• Computers with a CPU, RAM, other computery things

• Expansion units for even more storage

Page 14: The Great Migration Final

NAS What? Oh, ess.• Run their own Linux flavor 🍨• Synology DSM

Page 15: The Great Migration Final

Not theDiagnostic and Statistical Manual of Mental Disorders(DSM-5)

Page 16: The Great Migration Final

NAS What? Oh, ess.• Run their own Linux flavor 🍨• Synology DSM• QNAP QTS

• Support SSH and basic Linux commands• cd• ls• sudo rm –rf /*• Etc.

Page 17: The Great Migration Final

NAS What? Oh, ess.

• “App Store”• Synology’s “Package Center”• QNAP’s “App Center”

• CLI Install• Use caution• Synology dpkg• QNAP qpkg

Page 18: The Great Migration Final

NAS What? FS.

• Both support EXT4• Synology supports BTRFS

Page 19: The Great Migration Final

Synology supportsBTRFS (Butter FS)

Page 20: The Great Migration Final

NAS What? FS.

• Both support EXT4• Synology supports BTRFS (“Butter FS”)• QNAP supports ZFS

Page 21: The Great Migration Final

So, You’ve got a Mac Server• NAS turnkey solution for most Server.app services

• Calendar & Contact syncing• File Sharing• Mail• Messages• Time Machine• VPN• Websites• Wiki• DHCP & DNS• FTP• Open Directory

Page 22: The Great Migration Final

So, You’ve got a Mac Server

• Non-turnkey solutions to run a few other services• Profile Manager• Netinstall• Software Update

• A couple that require macOS• Caching server• Xcode server

Page 23: The Great Migration Final

So, You’ve got a Mac ServerCalendars & Contacts• Alternatives to Contacts & Calendar syncing• CalDav (Calendar)• CardDav (Contacts)

• Synology• Installable Calendar and CardDAV package• Calendar is a full calendaring app + CalDav

• QNAP• No first-party support for CalDAV or CardDAV• Third-party solution: Radicale

• Verify it before use

Page 24: The Great Migration Final

So, You’ve got a Mac ServerFile Sharing• Protocols• AFP• SMB• NFS• WebDav

• Installable on Synology• Built-in on QNAP

• Permissions• Support for local or directory user & groups• You can mix and match local and directory users & groups

Page 25: The Great Migration Final

So, You’ve got a Mac ServerFile Sharing• Quotas• Synology

• Share specific storage quotas• User specific storage quotas

• QNAP• Only user specific storage quotas

Page 26: The Great Migration Final

So, You’ve got a Mac ServerMail• Don’t.• Synology has two different mail server installs• Mail Server• MailPlus Server

• High availability• Moar stats• Auditing• Cost Extra

• QNAP no first-party mail server support

Page 27: The Great Migration Final

So, You’ve got a Mac ServerMessages• No Jabber (XMPP) replacement• Synology has a proprietary chat server called “Chat”• QNAP supports installing the open source chat server

Mattermost

Page 28: The Great Migration Final

So, You’ve got a Mac ServerTime Machine• Both vendors support Time Machine• Synology Cloud Station Backup• Proprietary backup client/server• Works on macOS and Windows• Can’t mass deploy

• QNAP has NetBak Replicator• Proprietary backup client• Windows only

Page 29: The Great Migration Final

So, You’ve got a Mac ServerVPN• Installable on both platforms• Synology - VPN Server• QNAP - QVPN Service

• VPN Protocols• OpenVPN• L2TP over IPSec• PPTP• QBelt VPN

• Proprietary QNAP VPN service• Requires QVPN client application

Page 30: The Great Migration Final

So, You’ve got a Mac ServerWebsites• Both vendors support running web servers

• With support for virtual hosts• Synology Web Station

• Apache 2.2 or 2.4• NGINX 1.13• PHP 5.6, 7.0, or 7.2• MariaDB 5 or 10

• QNAP• Apache, PHP, and MySQL Built-in

• Let’s Encrypt• Built into Synology• QNAP requires myQNAPcloud

Page 31: The Great Migration Final

Let’s Encrypt (Tangent)

• Free, automated, and open certificate authority• It’s run by the non-profit

(ISRG)• It’s safe and secure to use• Supports wild card certs• Certs must be renewed every

3 months• Synology and QNAP

automagically handle renewals

Page 32: The Great Migration Final

So, You’ve got a Mac ServerWiki• Both vendors support installing DokuWiki and Media Wiki• No way to automated way of migrating• DokuWiki uses plain text files• I prefer DokuWiki

Page 33: The Great Migration Final

So, You’ve got a Mac ServerDHCP & DNS• DHCP Server• Built into Synology & QNAP

• DNS Server• Synology has a DNS Server package• QNAP doesn’t have a turnkey solution

Page 34: The Great Migration Final

So, You’ve got a Mac ServerFTP• Built into both vendors OS• Use SFTP instead• SFTP is FTP over SSH

Page 35: The Great Migration Final

So, You’ve got a Mac ServerOpen Directory• Synology has installable apps• Directory Server – LDAP• Active Directory Server – AD

• QNAP has AD and LDAP server built-in

Page 36: The Great Migration Final

So, You’ve got a Mac ServerLightning Round• Profile Manager• MicroMDM• Outsource (I hear SimpleMDM is good)

• Netinstall• BSDPy

• Software Update• Reposado server

Page 37: The Great Migration Final

Docker

Page 38: The Great Migration Final

Docker

• Installable on both platforms • Docker package on Synology• Container Station package on QNAP

• Both vendors have a Docker GUI• Support CLI docker and docker-compose commands

Page 39: The Great Migration Final

Docker @ Simantel

• Crypt Server (for now… (hi Catalina))• Munki server• munkireport-php• Reposado server• DokuWiki• Snipe-IT• Unifi Controller

Page 40: The Great Migration Final

Tips/Advice

Page 41: The Great Migration Final

Tips/AdviceReverse Proxies

Page 42: The Great Migration Final

Tips/Advice, Reverse Proxies

• Built-in, turnkey solution on Synology• Can send traffic like https://crypt.Simantel.com to

http://localhost:8080• Add SSL certs without reconfiguring the destination server• Access Control Profiles• Enable if running internal and external websites• Control what subnets can access a site

• Not turnkey on QNAP

Page 43: The Great Migration Final

Tips/Advice, Disks

• Most Suggested• Western Digital Red• Seagate IronWolf

• IronWolf has better SMART integration• Look at BackBlaze’s drive statistics• https://www.backblaze.com/b2/hard-drive-test-data.html

Page 44: The Great Migration Final

Tips/Advice, Disks

• Buy drives from multiple sources• If buying 12 drives, buy 4 from Amazon, 4 from Newegg, and 4

from CDW• Check each drives warranty• Purchase a cold spare

Page 45: The Great Migration Final

Tips/Advice, RAID

• Don’t use RAID 5, use RAID 6 instead• RAID isn’t a backup• Not protected from data corruption, file deletion, crypto, etc.

• Always have a cold spare

Page 46: The Great Migration Final

Tips/Advice, RAID• Synology has it’s own RAID type, SHR/2• Synology Hybrid RAID• SHR == RAID 5 and SHR2 == RAID 6• Allows non-matching drives• Immediate volume expansion• RAID 6 is faster than SHR/2• Not all Synology models support SHR/2• It’s listed under “Supported RAID Types” as “Synology Hybrid

RAID” on a models specs page• Synology RAID calculator• https://www.synology.com/en-us/support/RAID_calculator

Page 47: The Great Migration Final

Tips/Advice, File Systems• Use BTRFS or ZFS for your filesystem• Data scrubbing• Repairs inconsistencies with data in the file systems• Schedule data scrubbing

• Every 1-3 months

• Snapshots• Setup snapshots• Snapshot replication

• Requires the same FS (BTRFS → BTRFS ; ZFS → ZFS)

Page 48: The Great Migration Final

Tips/Advice, Backups• Backup your NAS• Follow the 3-2-1 rule

• 3 copies of your data• 2 storage mediums• 1 offsite

• Local backups• Snapshots (with replication)• Synology Hyper Backup package• QNAP Hybrid Backup package

• Online backups• Amazon S3/Glacier• BackBlaze B2• Wasabi

Page 49: The Great Migration Final

Tips/Advice, HA!

• High Availability• Synology’s xs/+ line, QNAP’s ES line

• Synology - High Availability listed on a models specs page• QNAP - High Availability listed on a models software specs page

• Both models must be mirrors of each other

Page 50: The Great Migration Final

Tips/Advice, Notifications

• Notifies of disk and other hardware failures• Enable Notifications• Support for both Email and SMS• Test your notifications

Page 51: The Great Migration Final

Tips/Advice, Speed

• Use 10Gbe if you have the infrastructure• 10Gbe sometimes sold separately

• Setup an SSD cache*• Can be either M.2 or Sata• M.2 PCIe card sold separately• *Except for large sequential read or write operations (video)

• Only select models support 10Gbe and M.2• Typically looking for a model with 10Gbe built-in

Page 52: The Great Migration Final

Tips/Advice, Model Names

• Synology has a documented model naming scheme

Page 53: The Great Migration Final

Tips/Advice, Model Names

• Synology has a documented model naming scheme• RS18017XS+ == Rack Station, 180 drives, from 2017, high-

performance• DS3018XS == Disk Station, 30 drives, from 2018, high-performance• DS418play == Disk Station, 4 drives, made for playing video

• QNAP doesn’t appear to have a documented naming scheme

Page 54: The Great Migration Final

Tips/Advice, SSH/SFTP

• Avoid opening SSH or SFTP on your firewall• If you have to, use a white list• Require a VPN connection• Avoid port 22

• Use keypairs + passwords• SSH requires admin privileges on Synology

Page 55: The Great Migration Final

Tips/Advice, Data Migration

• Sanitize your filenames and paths• Illegal characters: / ? < > \ : * “ |• Spaces at the end of filenames is a day ruiner• People make the most broken filenames somehow

• A way to migrate• Mount the old storage onto your NAS• SSH into your NAS• Rsync from the old mounted share to your new share

Page 56: The Great Migration Final

Tips/Advice, Misc.

• Only store data in shares• Don’t change system config files via CLI• L2TP over IPSec only allows 1 connection per WAN• Synology’s tier 2 support response times are slow• Don’t plug APFS drives into a Synology

Page 57: The Great Migration Final

Still need a Mac server?

• Server.app is dead to us• macOS Only• Xcode server• Caching server• AutoPkg

• macOS or Windows• Adobe Software Update Server• FontExplorer X Pro Server

Page 58: The Great Migration Final

Conclusion

• macOS• Server is deprecated• Still needed for some tasks

• NAS’ are great• Lots of storage• Versatile• Cheap

Page 59: The Great Migration Final

Wrap-up

• MacAdmins Slack, join us• http://macadmins.org• #synology & #qnap channels

• Where you can stalk me• Twitter @cookie_lust – note the _• Slack @bheinz• Blog/Slides kernelpanic.me

Page 60: The Great Migration Final

Thanks!

• Robert Hammen• Chris Dawe• Steve Yuroff• Rick Heil• All of you

Page 61: The Great Migration Final

Q&A

• MacAdmins Slack, join us• http://macadmins.org• #synology & #qnap channels

• Where you can stalk me• Twitter @cookie_lust – note the _• Slack @bheinz• Blog/Slides kernelpanic.me