Mount Storage to the centos server
Yum install–y iscsi-initiator-utils*// installing iSCSI Services
/ETC/INIT.D/ISCSI Start/ start service
Chkconfig iSCSI on; Let the service boot up
1,iscsiadm-mdiscovery-t sendtargets-p 192.168.86.161:3260//
Discover iqn.2012-07.com.ejitec:alias.tgt0000.9cf8555501000020
2,iscsiadm-m node-tiqn.2012-07.com.ejitec:alias.tgt0000.9cf8555501000020-p 192.168.86.161:3260–l// Discover the hard disk , will appear success words, this time fdisk–l will discover the newly added hard disk device;
Iscsiadm-m node-tiqn.2012-07.com.ejitec:alias.tgt0000.9cf8555501000020-p 192.168.86.161:3260--op update-n Node.sta RTUP-V Automatic// boot auto discovery hard drive
3, this time if you go to format hard disk. Fdisk/dev/sdb
this is because the hard disk is 20T , and the hard drive with the Linux format greater than 3T cannot be directly used with fdisk
650) this.width=650; "Width=" 554 "height=" 98 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
PARTED/DEV/SDB/ Default is the first hard drive, note;
Mklab GPT// Create a volume label for new devices
Mkpart primary 0% 50%// split a primary partition
Mkpart Primary 50% 100%// Division second primary partition
Quit
Partprobe(I'm useless)
Vi/etc/fstab new partition to join automatic mount;
Here are some of the previous errors; want to EXT4 format 20T hard drive to send a zone mount, in fact EXT4 the largest only support 16T, so did not hang up;
Mkfs.ext4dev/dev/sdb1
MKFS.EXT4DEV/DEV/SDB1 This time the error is because the Linux default block size is 4096, need to change the size of the block
650) this.width=650, "width=" 554 "height=", "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
Mkfs.ext4–b 8192 DEV/DEV/SDB1
mount error ext4 maximum support 16T, my hard drive is 20T can't hang up so error
650) this.width=650; "width=" 528 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
CentOS Mount 20T Array