什么是TrueNAS?TrueNAS是一种网络附加存储(NAS)软件,可以共享和保护数据免受勒索软件和恶意软件之类的现代威胁。
What is TrueNAS? TrueNAS is a Network Attached Storage (NAS) software that shares and protects data from modern-day threats like ransomware and malware.
安装
硬件配置
- 64位处理器
- 8GB 或 8GB 以上系统盘
- 8GB 内存最大支持8硬盘(推荐使用ECC内存,且每增加1硬盘增加1GB)
- 主板BIOS打开硬盘热插拔
下载地址
管理
账户密码
用户:root 密码:安装时设置
WEB 登陆界面账户密码
用户:root 密码:安装时设置
基本设置
时区
- System/General -> Timezone
网络
- Network/Global Configuration -> Hostname & DNS Servers & Default Gateway
- Network/Interfaces -> Interfaces (设置IP)
用户账号
- Accounts/Groups/ADD -> GID & Name
- Accounts/Users/ADD -> Identification & User ID and Groups
注意: Username 是用户名,Full name 是标识,勾选 Samba Authentication
存储池
- Storage/Pools/Create Pool -> Name & ADD VDEV
Date VDev
存放数据
阵列类型 | 描述 |
---|---|
Stripe | 相当于RAID0,所有空间加起来,0冗余 |
Mirror | 不同于RAID1,所有盘存同样的数据 |
Raid-z | 相当于RAID5,1冗余 |
Raid-z2 | 相当于RAID6,2冗余 |
注意:每个 Date VDev 不超过12盘
Cache VDev
ZFS L2ARC read-cache that can be used with fast devices to accelerate read operations. Optional vdev that can be removed.
ZFS L2ARC读取缓存可与快速设备一起使用以加快读取操作。 可以删除的可选vdev。
注意:推荐RAM在64GB以上时使用,且固态硬盘缓存不超过RAM的5倍
Log VDev
ZFS LOG device that can improve speed of synchronous writes. Optional write-cache that can be removed.
可以提高同步写入速度的ZFS LOG设备。 可以删除的可选写缓存。
注意:建议不超过16GB
Hot Spare
Drive reserved for inserting into DATA pool vdevs when an active drive has failed.
活动驱动器发生故障时保留的驱动器,用于插入到数据池vdev中。
数据集
- Storage/Pools/Add Dataset
共享
- Services -> SMB & Start Automatically
- Sharing/Windows Shares (SMB)/ADD
权限
UGO权限
Building...
ACL权限
Building...
重要设置
为了数据安全建议设置
邮件提醒
在NAS出现问题时可以及时提醒
- Accounts/Users/root/EDIT -> Email (此处填收邮件的邮箱)
- System/Email -> General Options (此处填发邮件的邮箱)
GMail OAuth
略
SMTP
邮箱 | 服务器 | 端口 |
---|---|---|
smtp.qq.com | 465 或 587 | |
163 | smtp.163.com | 465 或 994 |
注意:Outgoing Mail Server & Mail Servers Port 需要自己百度
阵列恢复
硬盘掉线之后,如何恢复阵列
同步
适用于硬盘未损坏情况仅掉线情况
- 重新插好硬盘
- 重新登陆(主板开启热插拔时)或重启系统
- 自动同步(右上角有同步图标)
重建
适用于硬盘损坏情况
- 更换新硬盘(容量不小于原来硬盘)
- Storage/Pools/Pool Statue -> Replace
注意:仅适用于硬盘故障数小于冗余盘数情况
参考资料
【司波图】TrueNAS新手视频教学(1)——系统安装,存储池建立
【司波图】TrueNAS新手视频教学(1.5)——阵列恢复,EMAIL提醒设置