企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
官方:http://www.openfiler.com/ 第一步:安装openfiler虚拟机 https://nchc.dl.sourceforge.net/project/openfiler/openfiler-distribution-iso-2.99-x64/openfileresa-2.99.1-x86_64-disc1.iso ![](https://box.kancloud.cn/5b09072e2affb486b2941ea0c28046c1_868x396.png) 登录https://10.2.11.222:446 用户名:openfiler 密码:password 第二步:配置 1)创建物理卷 ![](https://box.kancloud.cn/4b1ee9789e2ae06f5fa3d73e02baba4d_1014x317.png) ![](https://box.kancloud.cn/f940f8b71b5433232b9cc9666419dabb_1166x566.png) ![](https://box.kancloud.cn/6576222d41fd427fa08fadccbcf46522_1146x364.png) (可以登录到openfiler服务器上,fdisk /dev/sda) 2) 创建卷组 ![](https://box.kancloud.cn/e5d32c42fd490dd395bd86dd4f4bc025_1028x570.png) 3)创建逻辑卷 ![](https://box.kancloud.cn/789821068c323dc34294c237d128e59a_906x508.png) 启动服务 ![](https://box.kancloud.cn/dee2ba5fc441d73c890b7d9ef1974101_1041x461.png) 4)配置iscsi ![](https://box.kancloud.cn/79bde66363236ce8b67ed8ef42b43075_1118x445.png) ![](https://box.kancloud.cn/f9a33e335fba4cd403b5b27a068ae426_1060x419.png) 客户端操作 [root@node2 aa]# iscsiadm -m discovery -t st -p 10.2.11.222 10.2.11.222:3260,1 iqn.2018-01.com.openfiler:tsn.94d5 配置ACL策略 ![](https://box.kancloud.cn/845eaa68720477b1eccdb5c08491abe8_1071x496.png) ![](https://box.kancloud.cn/542a01d1504c8c6d3cddc0f288c072f1_1152x362.png) 客户端连接: [root@node2 aa]# iscsiadm -m node -T iqn.2018-01.com.openfiler:tsn.94d5 -p 10.2.11.222 -l Logging in to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] (multiple) Login to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] successful. [root@node2 aa]#fdisk -l Disk /dev/sdb: 5268 MB, 5268045824 bytes 163 heads, 62 sectors/track, 1018 cylinders Units = cylinders of 10106 * 512 = 5174272 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 配置用户名和密码 ![](https://box.kancloud.cn/fa4f83e3f91868de5f37893fd33739c9_1156x415.png) 客户端配置配置文件 [root@node2 aa]# vim /etc/iscsi/iscsid.conf # ************* # CHAP Settings # ************* # To enable CHAP authentication set node.session.auth.authmethod # to CHAP. The default is None. #node.session.auth.authmethod = CHAP # To set a CHAP username and password for initiator # authentication by the target(s), uncomment the following lines: node.session.auth.username = tom node.session.auth.password = redhat 客户端连接: [root@node2 aa]# iscsiadm -m node -T iqn.2018-01.com.openfiler:tsn.94d5 -p 10.2.11.222 -l Logging in to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] (multiple) Login to [iface: default, target: iqn.2018-01.com.openfiler:tsn.94d5, portal: 10.2.11.222,3260] successful.