OpenMediaVault是什麼?
OpenMediaVault是一個NAS存儲系統的開源解決方案,經過網絡協議(如TCP/IP)和應用程序(如網絡文件系統NFS或者通用Internet文件系統CIFS)來進行文件訪問,其功能比肩於羣暉 DSM 、威聯通 QTS、萬由 U-NAS OS、FreeNAS、Windows系的存儲服務器、Linux Distribution系的存儲服務器、Nas4Free或XigmaNAS等。
linux
官網是這樣介紹 OpenMediaVault 的:ios
What is openmediavault?
openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, RSync, BitTorrent client and many more. Thanks to the modular design of the framework it can be enhanced via plugins.
openmediavault is primarily designed to be used in small offices or home offices, but is not limited to those scenarios. It is a simple and easy to use out-of-the-box solution that will allow everyone to install and administrate a Network Attached Storage without deeper knowledge.
chrome
當前 OpenMediaVault 提供兩種安裝方式:一是經過官方提供的 ISO 鏡像進行裸機安裝;二是經過 YUM 源在Debian OS 上安裝。這和國產雲管平臺 ZStack 的安裝部署方式同樣。shell
官方的 ISO 鏡像地址:https://sourceforge.net/projects/openmediavault/files/服務器
官方的 YUM 源地址:https://packages.openmediavault.org/網絡
接下來我主要提供在 Debian 9 OS 上經過 YUM 源部署 OpenMediaVault 。ide
首先,安裝完 Debian OS後,對OS環境作初始化,可參見博文 《
Debian 9 的系統初始化腳本》中提供的 shell 腳本。
初始化結束後建議爲 Debian OS 配置靜態 IP 。
post
配置 OpenMediaVault YUM 源:ui
root@debian:/home/jamesbond007# cat <<EOF >> /etc/apt/sources.list.d/openmediavault.listgoogle
deb http://packages.openmediavault.org/public arrakis main
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis main
deb http://packages.openmediavault.org/public arrakis-proposed main
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis-proposed main
deb http://packages.openmediavault.org/public arrakis partner
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis partner
EOF
root@debian:/home/jamesbond007# apt-get --allow-unauthenticated install openmediavault-keyring
Reading package lists... Done
Building dependency tree
Reading state information... Done
...........................................................................................................
root@debian:/home/jamesbond007# apt-get update
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:2 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,129 B]
Ign:3 http://downloads.sourceforge.net/project/openmediavault/packages arrakis InRelease
Get:4 http://packages.openmediavault.org/public arrakis InRelease [12.8 kB]
............................................................................................................
root@debian:/home/jamesbond007# apt-get --yes --auto-remove --show-upgraded --allow-downgrades --allow-change-held-packages --no-install-recommends --option Dpkg::Options::="--force-confdef" --option DPkg::Options::="--force-confold" --allow-unauthenticated install postfix openmediavault
Reading package lists... Done
Building dependency tree
Reading state information... Done
....................................................................................
執行以下命令完成 OpenMediaVault 的初始化:
root@debian:/home/jamesbond007# omv-initsystem
經過跳板機訪問 OpenMediaVault Web UI 進行配置:
如下是用 ISO 部署 OpenMediaVault 的部分截圖: