75.1. Network Storage - Openfiler
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 的官方网站
过程 75.1. Openfiler Storage Control Center
-
登录管理界面
https://<ip address>:446/
初始帐号和密码是: openfiler/password
-
首先要修改默认密码
Accounts->Admin Password
Current Password:
password
New Password:
新密码
Confirm New Password:
确认密码
Submit 提交
-
用户认证
openfiler.ldif
dn: ou=people,dc=bg7nyt,dc=cn
ou: people
objectClass: organizationalUnit
dn: ou=Idmap,dc=bg7nyt,dc=cn
ou: Idmap
objectClass: organizationalUnit
添加people组织单元
[chenjingfeng@backup ldap]$ ldapadd -x -D "cn=root,dc=bg7nyt,dc=cn" -W -f openfiler.ldif
Enter LDAP Password:
adding new entry "ou=people,dc=bg7nyt,dc=cn"
adding new entry "ou=Idmap,dc=bg7nyt,dc=cn"
-
Accounts->Authentication
Use LDAP: 打勾
Server:
ldap.bg7nyt.cn
Base DN:
dc=bg7nyt,dc=cn
Root bind DN:
cn=root,dc=bg7nyt,dc=cn
Root bind Password:
你的密码
-
Services->LDAP Settings
Base DN:
dc=bg7nyt,dc=cn
Root bind DN:
cn=root,dc=bg7nyt,dc=cn
Root Password:
你的密码
-
Services->Enable/Disable
-
Accounts->Account Administration
-
Group Administration
Group Name:
nfs
-
User Administration
Username:
用户名
Password:
密码
Retype password:
确认密码
Primary Group:
用户组
查看组织单元:ou=people,dc=bg7nyt,dc=cn
[chenjingfeng@backup ldap]$ ldapsearch -x -b 'ou=people,dc=bg7nyt,dc=cn'
# extended LDIF
#
# LDAPv3
# base <ou=people,dc=bg7nyt,dc=cn> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#
# people, bg7nyt.cn
dn: ou=people,dc=bg7nyt,dc=cn
ou: people
objectClass: organizationalUnit
# neo, People, bg7nyt.cn
dn: uid=neo,ou=People,dc=bg7nyt,dc=cn
objectClass: inetOrgPerson
objectClass: posixAccount
homeDirectory: /dev/null
loginShell: /bin/false
cn: neo
givenName: neo
sn: neo
uid: neo
uidNumber: 500
gidNumber: 500
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
Openfiler提供软RAID.
-
Volumes -> Physical Storage Mgmt.
点击"Edit Disk"列表内硬盘标签,之后可以看到"Create a partition in /dev/sdb"
单击[Create]按钮创建RAID组成员
单击[Back to the list of physical storage devices]返回到 "Physical Storage Management"
-
Volumes -> Software RAID Mgmt.
Select RAID array type:
RAID(0,1,5,6,10)
Select chunk size:
这可以针对你的需求做优化
Select RAID devices to add:
打勾选择
单击[Add array]创建RAID
RAID创建完成后,就可以卷组和卷
Volumes -> Volume Group Mgmt. -> Create New Volume
RAID 6 采用双校验盘最少4块硬盘
Volumes -> Create New Volume
单击[Create]按钮
单击[Update]按钮
Services -> Enable/Disable -> iSCSI target 确认已经 Enable
General -> Local Networks
单击[Update]按钮
Volumes -> List of Existing Volumes -> Select Volume Group
单击 iScsi 卷列表 Properties 下的 [Edit] 连接
默认是:Deny, 修为Allow
75.1.2.2.1. Microsoft iSCSI Software Initiator
开始菜单 找到 Microsoft iSCSI Initiator 并运行
单击 Discovery 选项卡
单击 [ Add ] 按钮
单击 [ OK ] 按钮
单击 Targets 选项卡
单击 [Refresh] 按钮 -> [Log On...]
单击 [ OK ] 按钮
完成Initiator设置
我的电脑 -> 单击鼠标右键 -> 管理
初始化硬盘
选择硬盘
初始化完成,红色图标消失后你就可以对磁盘分区,挂载卷,格式化。
使用 iSCSI 与使用本地磁盘完全一样。
Status -> iSCSI
-
![[注意]](http://www.netkiller.cn/graphics/note.png) |
注意 |
有些文件系统不支持Quota
|
-
Quota -> Guest Quota
单击[Change]按钮
单击[Apply]按钮
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。