the latest version ofCentos/rhel 7Now comes with the System Storage Manager (also calledSSM), a unified command-line interface developed by Red Hat to manage a wide variety of storage devices. At present, there are three kinds of availableSSMVolume management backend used:LVM,Btrfsand theCrypt
Install the SSM package First
yum rpm can be used to package name system-storage-manager******
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8F/15/wKiom1jTNlLBPzmxAAA3DlcXK-c985.png "title=" Picture 1.png "alt=" Wkiom1jtnllbpzmxaaa3dlcxk-c985.png "/>
SSM List View information , partitioning, etc. intuitive and simple
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8F/15/wKiom1jTNn_Tqm6uAABQcKm7V2k456.png "title=" Picture 1.png "alt=" Wkiom1jtnn_tqm6uaabqckm7v2k456.png "/>
Create
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8F/15/wKiom1jTNpWB9sNbAAAHUZEINNE938.png "title=" Picture 1.png "alt=" Wkiom1jtnpwb9snbaaahuzeinne938.png "/>
SSM create-s size - n disk name --fstype type xfs-p PV Physical volume group Volume group name /dev/sd** is that disk /root mount point
the next thing to do is iSCSI does not mount
iSCSI implements networked storage that provides storage-side callsTarget , use the storage side to call Initiator. Targetcan provide storage space on theInitiatorResponsible for connectionISCSIequipment, inISCSI device to create file systems, and Access data, InitiatorIt looks like a hard drive.
Install target first
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/8F/15/wKiom1jTNsOATqefAAAxqKqOGiI981.png "title=" Picture 1.png "alt=" Wkiom1jtnsoatqefaaaxqkqogii981.png "/>
start service
Span style= "font-family: ' The song body '; font-size:14px;" > service port is TCP 3260 can add an exception to the firewall
firewall-cmd--permanent--add-port=3260/tcp
Span style= "font-family: ' The song body '; font-size:14px;" > TARGETCLI Entry tool
/backstores/block Create name casually/dev/the original logical volume
/ISCSI Create IQN.2016-11.COM.GAO:GAO1 iqn format must be correct followed by an anti-domain: write back and forth freely
can bind ACLs must be adapted to host name to connect
/iscsi/iqn........../tpg1/acls Create Iqn.2016-11.com.gao:gao1 is named after the same name
Create LUN bindings
/iscsi/iqn-**********/tpg1/luns create/backstores/block/his own name.
A server can have multiple network cards , so it is sometimes necessary to specify a network card to provide services
/iscsi/iqn********/tpg1/portals Delete First deletes the original create 192.168.1.1 3260 in addition to the new
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8F/13/wKioL1jTNuqBcRBDAAAuCNIau1E924.png "title=" Picture 1.png "alt=" Wkiol1jtnuqbcrbdaaaucniau1e924.png "/>
now that the server is done, you need a client connection!!!!
Yum install-y iscsi-initiator-utils Yum install this first
because the server binds the name, you need to change the name here.
Vim/etc/iscsi/initiatorname.iscsi
Systemctl Enable iSCSI
Systemctl start iSCSI
Start the service
Iscsiadm-m discovery-t st-p server IP
iscsiadm-m node-t iqn. The name of the connection to find the name to write here - P Server ip-l Connection U Uninstall
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8F/13/wKioL1jTNvvwm4JLAAAd-Q8h-JI396.png "title=" Picture 1.png "alt=" Wkiol1jtnvvwm4jlaaad-q8h-ji396.png "/> mount successfully follows normal partition to use network connection new disk SDB
This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1909509
LINUX-CENTOS7-SSM-ISCSI Storage