Table of Contents
Learn OMV
Hasee K650D-i5 D1, i5-4210M, 8GB DDR3, GTX850M 2G DDR3 (not used),
LEVEN mSATA SSD 64GB (Amazon)
Plugins I used:
Name | Note |
---|---|
WOL | |
SnapRAID | |
symlinks | |
downloader |
软路由
Filesystem
MergerFS
使用 mergerfs 合并多块硬盘的剩余空间 (2018-02-05)
- 基于FUSE
读写性能如何?
SnapRAID: https://www.snapraid.it/
目录级别的冗余存储:SnapRAID (2018-03-08)
- 不是RAID
- 配置单独的奇偶校验盘,来实现对其它盘的数据恢复
- 同步和计算都不是实时的,因为不是RAID
Backup
Laptop to OMV
Use UrBackup
.
Set up using this dockerhub link.
安装完才发现 UrBackup 似乎是专注于 windows 整机备份的,不是专注于文件备份。我是否需要整机备份?太庞大了……可以考虑排除掉数据文件,只备份系统部分,不知道会有多大。
单纯的文件备份,是否可以考虑filegee这种不需要服务器端的方案?
OMV to HDD
Check Full Disk Mirroring / Backup with Rsync.
set up and record the command used at last.
WD Easystone (brand for BestBuy specially) 14TB. (Check Hard Drivers to see how to prepare a new drive properly.)
Q&A
Gracefully shutdown or suspend after power loss, when using laptop battery
Copied from here:
Necroing to post the solution:
You need the UPower package. OMV just so happens to use Debian as its backbone too, so it's easy to install:
sudo apt-get install -y upowerFrom there, just configure
/etc/UPower/UPower.conf
using nano. I set it at95%
, or a little after the machine loses AC power.Also don't forget to enable (so it runs at boot) and start the service:
sudo systemctl enable upower.service sudo systemctl start upower.serviceThe downside is that it will not power up automatically when AC power comes back, but you can just set up Wake-on-LAN from the router and use that instead.
Change laptop lid action
nano /etc/systemd/logind.conf
Enable HandleLidSwitch=ignore
.
Blank or turn off screen automatically
nano /etc/default/grub
Set GRUB_CMDLINE_LINUX=“consoleblank=30”
. (Screen will go off after 30 seconds.)
update-grub reboot
It seems a bug that when I use CPU hardware decoding through Jellyfin, the screen will light up, ignoring the above setting. So I have to keep the lid close, which physically turns the screen off I guess.
Power-off external USB drives safely
This command completely turns off the external drive.
udisksctl power-off -b /dev/sd*
Reboot the system and the USB drive can be reconnected, which seems the only way.
Set up network in command line
Find the network hardware name (mine is enp4s0f2
) using: ip a
Then edit this file: nano /etc/networks/interfaces
Add these lines to the end:
iface enp4s0f2 inet static address 192.168.86.xx address 192.168.86.1
Then restart the network by ipdown enp4s0f2
then ipup enp4s0f2
.
Should let OMV manage the network configuration and set via OMV webui, but in my case it fails connecting automatically.
After the above changes, I got connect to OMV webui, set ethernect connection there, and removed my changes to /etc/networks/interfaces
.
Speed test in command line
Install iperf3
on all testing ends.
Use one end as a server, run this: iperf -s
Then at the testing end, run this for summary: iperf -c IP_of_the_above_server
Privileges and permissions
Privileges and permissions explained under OMV
- All shared folder created via webUI, has default 2775 permission, with a root:users
folder ownership.