Note: We do not have Dell's MD Series Storage Server test, just built an iSCSI service side, using software for Windows to install an iSCSI product IStorage Server, one of their own Baidu can use, After the installation of the default will not create the target itself, you need to manually new target: Hard disk---image files, such as virtual hard disk image (VHD), the client after the connection can be partitioned, formatted, mounted operations, the test client for the CENTOS7 system, Deibian will be annotated.
1. Installing Iscsi-initiator-utils
#先查找软件名称yum Search Iscsi-initiatoryum Install Iscsi-initiator-utils-devel.x86_64#debian as follows Apt-get install OPEN-ISCSI
2.ISCSI Service self-booting (Debian not available)
Systemctl Enable iscsi.service# Check if enable successful Systemctl List-unit-files | grep iSCSI
3. Find the logical volumes that the storage server provides externally
Iscsiadm-m discovery-t sendtargets-p 192.168.180.248:3260
4. Mapping logical volumes to Linux systems
#-l for login, if you want to unmap to-u can iscsiadm-m node-t iqn.2006-03.com.kernsafe:863-test-pc.imagedisk0-p 192.168.180.248:3260-l
5. View the established mapping session
Iscsiadm-m session
6. Set Boot auto-map
Iscsiadm-m node-t iqn.2006-03.com.kernsafe:863-test-pc.imagedisk0-p 192.168.180.248:3260--op update-n node.startup- V Automatic
7. Partition and format the mapped disk
A. Reference with capacity less than 2T
fdisk/dev/sdb# input n (create a new partition), p (primary partition), the middle of various prompts directly enter the default, W (save) mkfs.ext4/dev/sdb1# formatted partition, if several partitions suggested fdisk-l view the specific name
B. Reference with capacity greater than 2T (GPT partition)
Parted/dev/sdb #对/dev/sdb to partition the print #打印信息, which can be seen in this disk size and partition format Mklabel GPT Mkpart primary 0% 100%print #从中可以看出这个磁盘分区 The format has changed to GPT.
8.linux System automatic Mount partition
#_netdev为网络设备, if the write defaults system will not start vim/etc/fstab/dev/sdb1/opt ext4 _netdev 0 0
This article is from the "lly0205.mofile.com" blog, make sure to keep this source http://481814.blog.51cto.com/471814/1895602
Linux clients connect to iSCSI storage services