# NAS

## Required features
- Disk redundancy / Data check-summing / Snapshots
- Alerts for S.M.A.R.T failures
- Alerts for drive failures
- Alerts for ZFS warnings
- healthchecks.io
- Automated offsite backups for important data
- Network shares using SMB
- Tiered storage 
    - HDD for media/device backups and read only storage
    - SSD for application volumes (Usenet download folder / docker volumes)  
- System monitoring using Grafana
    - Frees space on both system drive and NAS storage
    - Used space in the last week/month/year
    - CPU/Memory
    - Network upload/download
    - Drive temperatures
    - System temperatures
    - Feed of events (backups/scrubs/cronjobs etc)
    - Drive stats
        - Total drive writes (Important for SSDs)
        - Reallocated sectors
        - Power on Hours
- Syncthing
    - Run on NAS and each device to sync User Docs/Pics/Download/etc dirs
    - One instance per user for privacy and file safety
    - Investigate whether a "Shared Folder" is possible when running separate instances
    
- FileBrowser Quantum
    - A single instance can handle personal and shared directories
    - Use Access Control rules for keep personal folders private

## CWWK Motherboard Storage Interfaces
- 2x SFF-8643 (8x SATA III via breakout cables, each on ASM1164 controller)
- 2 x M.2 2280 NVMe (PCIe Gen3 x1)
- 1 x PCIe Gen3 x1 (x4/x8 slot compatible, shared with M.2 2230 E-Key)
- 1 x SD Card slot

## ZFS Dataset Hierarchy
- dataset1
    - media
        - books
        - movies
        - music
        - tv
    - backups
        - device
    - personal
        - cody
        - joe
    - application
        - immich

## ZFS Research
- [Level1Techs - ZFS Guide](https://forum.level1techs.com/t/zfs-guide-for-starters-and-advanced-users-concepts-pool-config-tuning-troubleshooting)
- [arsTechnica - Understanding ZFS](https://arstechnica.com/information-technology/2020/05/zfs-101-understanding-zfs-storage-and-performance)

## Scheduled tasks
- ZFS Scrub every two weeks
- S.M.A.R.T long test every week
- S.M.A.R.T short test every night
- SSD TRIM every???
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9