天天看點

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

目錄

<dl></dl>

<dt>8.1. Network Storage - Openfiler</dt>

<dd><dl></dl></dd>

<dt>8.1.1. Accounts</dt>

<dt>8.1.2. Volumes</dt>

<dt>8.1.2.1. RAID</dt>

<dt>8.1.2.2. iSCSI</dt>

<dt>8.1.3. Quota</dt>

<dt>8.1.4. Shares</dt>

<dt>8.2. OpenMediaVault</dt>

<dt>8.3. FreeNAS</dt>

Openfiler is a powerful, intuitive browser-based network storage software distribution. Openfiler delivers file-based Network Attached Storage and block-based Storage Area Networking in a single framework.

openfiler 的官方網站

過程 8.1. Openfiler Storage Control Center

登入管理界面

初始帳号和密碼是: openfiler/password

首先要修改預設密碼

Accounts-&gt;Admin Password

Submit 送出

使用者認證

openfiler.ldif

添加people組織單元

Accounts-&gt;Authentication

Use LDAP: 打勾

Services-&gt;LDAP Settings

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

Services-&gt;Enable/Disable

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

Accounts-&gt;Account Administration

Group Administration

User Administration

檢視組織單元:ou=people,dc=bg7nyt,dc=cn

卷管理 [Volumes]

我這裡是使用VMware做的試驗,在VMware中增加一些硬碟即可.

Volumes -&gt; Physical Storage Mgmt.

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

openfiler安裝在/dev/sda,/dev/sda硬碟空間不用太大,單獨給openfiler使用.建議做RAID 1(硬體RAID卡或伺服器主版提供的RAID)

其它硬碟是用于存儲的硬碟,如果有條件這些硬碟組也最好做成硬RAID,沒有條件我們可以在openfiler中做軟體RAID.

點選"Edit Disk"清單内硬碟标簽,之後可以看到"Create a partition in /dev/sdb"

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊"Create"建立分區

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

Back to the list of physical storage devices

如果沒有特别需求,不需要建立多個分區.

Volumes-&gt;Volume Group Mgmt.

Volume Group 可以實作動态擴充空間,注意如果在使用中有一個成員盤損壞,你将無法恢複資料.

應急使用可以,不建議長期使用.

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊"Add volume group"建立vg0

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

表 8.1. Volume Group Management

Volume Group Name

Size

Allocated

Free

Members

Add physical storage

Delete VG

vg0

15.94 GB

0 bytes

View member

PVs Add

PVs Delete

擴充Volume Group單擊[PVs Add]按鈕

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

分區清單前面打勾

[Submit]送出

Volumes -&gt; Create New Volume

選擇VG

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

建立卷

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Create]按鈕

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

Openfiler提供軟RAID.

第 8 章 Network Attached Storage(NAS 網絡附加存儲)
第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Create]按鈕建立RAID組成員

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Back to the list of physical storage devices]傳回到 "Physical Storage Management"

Volumes -&gt; Software RAID Mgmt.

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Add array]建立RAID

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

RAID建立完成後,就可以卷組和卷

Volumes -&gt; Volume Group Mgmt. -&gt; Create New Volume

RAID 6 采用雙校驗盤最少4塊硬碟

第 8 章 Network Attached Storage(NAS 網絡附加存儲)
第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Update]按鈕

Services -&gt; Enable/Disable -&gt; iSCSI target 确認已經 Enable

General -&gt; Local Networks

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

Volumes -&gt; List of Existing Volumes -&gt; Select Volume Group

單擊 iScsi 卷清單 Properties 下的 [Edit] 連接配接

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

預設是:Deny, 修為Allow

開始菜單 找到 Microsoft iSCSI Initiator 并運作

單擊 Discovery 頁籤

單擊 [ Add ] 按鈕

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊 [ OK ] 按鈕

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊 Targets 頁籤

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊 [Refresh] 按鈕 -&gt; [Log On...]

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

完成Initiator設定

我的電腦 -&gt; 單擊滑鼠右鍵 -&gt; 管理

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

初始化硬碟

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

選擇硬碟

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

初始化完成,紅色圖示消失後你就可以對磁盤分區,挂載卷,格式化。

使用 iSCSI 與使用本地磁盤完全一樣。

Status -&gt; iSCSI

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

注意

有些檔案系統不支援Quota

Quota -&gt; Guest Quota

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Change]按鈕

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Apply]按鈕

Shares

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊清單内的連接配接.

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊 [Create Sub-folder] 按鈕 建立檔案夾

第 8 章 Network Attached Storage(NAS 網絡附加存儲)
第 8 章 Network Attached Storage(NAS 網絡附加存儲)

單擊[Change]按鈕 修改

組的權限制

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

主機通路權限配置

第 8 章 Network Attached Storage(NAS 網絡附加存儲)

原文出處:Netkiller 系列 手劄

本文作者:陳景峯

轉載請與作者聯系,同時請務必标明文章原始出處和作者資訊及本聲明。

繼續閱讀