天天看點

openfiler配置iscsi

 安裝完openfiler,web通路位址為:https://ip:446   使用者名:openfiler   預設密碼:password

登陸進去第一步:System——配置靜态ip位址、網關、允許通路的網絡或ip

openfiler配置iscsi

第二步:Volumes——Block Devices

openfiler配置iscsi

——Edit Disk(首先将全部空間建立為擴充分區(Extended Partition ),再在擴充分區裡面建立多個邏輯分區(後面三個)。

openfiler配置iscsi

注意:在建立分區的時候Starting cylinder和Ending cylinder不能是離已經使用的cylinder 和最後的cylinder靠得太近,否則不能成功建立。(openfiler 2.99.1 x86_64)

第三步:Volumes——Volume Groups——Create a new volume group(建立一個或多個卷組)

openfiler配置iscsi

第四步:Volumes——Add Volume——Create a volume(在卷組裡面建立一個或多個邏輯卷)

openfiler配置iscsi
openfiler配置iscsi

第五步:Volumes——iSCSI Targets

————Target Configuration——add 一個IQN

————LUN Mapping——map

————Network ACL——網段或ip——allow

openfiler配置iscsi

第六步:Services———Manager Services—開啟iscsi target服務

openfiler配置iscsi

openfiler配置完成。

linux下面發現并且添加iscsi:

linux必須安裝的iscsi包:iscsi-initiator-utils*

#iscsiadm -m discovery -t sendtargets -p ip

可以找到之前add的iqn裡面tsn号,就是需要的。

#iscsiadm -m node -T  iqn号 -p ip -l

然後在系統裡面#fdisk -l    就可以發現新的iscsi裝置了

openfiler配置iscsi

繼續閱讀