In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Storage technology and network file system storage technology classification DAS direct attached storage NAS network technology storage SAN storage area network
SCSI small computer system Interface (Small Computer System Interface)
As an input / output interface, it is mainly used for DAS direct attached storage (Direct-Attached Storage) of optical discs, disks, tape drives and other devices. The storage device is directly connected to the computer through the SCSI interface or fibre Channel. The sharing of data with other hosts cannot take up server operating system resources. The larger the amount of data such as CPU, IO, the worse the performance.
NAS (Network-Attached Storage)
A dedicated data storage server, which takes the data as the center, completely separates the storage device from the server, and manages the data in the machine, so as to release bandwidth, improve performance, reduce the total cost of ownership and protect investment. Fixed space users access data through TCP/IP protocol: using standard NFS/HTTP/CIFS, etc.
SAN (Storage Area Network)
Disk array, talent band and other storage devices are connected with relevant servers through optical fiber switches, optical fiber routers, optical fiber hubs and other devices, forming a high-speed private network network server and storage media are directly connected through optical fiber, which is not limited by distance. Network transmission, data is encapsulated as IP packets, if optical fiber transmission media can also be twisted pair, the transmission rate will be slower part of the router. Optical fiber will switch interface: SCSI, FCFC provide higher data transmission rate, longer transmission distance, more device connection support and more stable performance, easier installation of FC will switch topology IP-SAN point to point: point-to-point simply interconnects two devices to the determined loop: up to 126devices can share a channel or loop switched topology: so devices are interconnected through fiber optic switches.
ISCSI technology
The data is encapsulated in IP packets, and then transmitted using the standard established by iscsi protocol IETF. Mapping SCSI data to Ethernet data library packets (IP packets) is a new storage technology based on IP Storage theory. The combination of SCSI interface technology widely used in the storage industry and IP networks can build SAN on IP networks. The original advantages of Cisco and IBM development: 1. Standard based on IP protocol technology II. Allows the network to transmit SCSI commands over the TCP/IP protocol. Compared with the IP SAN implemented by FC SAN,ISCSI, the investment is 4. 5% lower. The problems of transmission efficiency, storage capacity, compatibility, openness and security are solved. No distance limit implementation: client: ISCSI initiator: software implementation, low cost, low performance ISCSI HBA: hardware implementation, good performance, high cost storage device: ISCSI target Ethernet switch experiment:
1. Prepare client50:192.168.4.50
Storage51:192.168.4.51
Set up the yum source
two。 Turn off firewall, disable selinux
3. Configure the front and back end of iscsi, front end: iscsi-initiator-utils back end: targetcli
3. Close:
Systemctl stop NetworkManager systemctl disable NetworkManager
4. Build httpd on client50 and write facility document test.html
Y.um-y install httpdecho "hello girl" > / var/www/html/test.htmlsystemctl restart httpdsystemctl enable httpd
5. The backend iscsi builds targetcli.
````yum-y install targetcli
Check when the configuration file of vim / etc/target/saveconfig.json / / targetcli is not configured
{
"fabric_modules": []
"storage_objects": []
"targets": []
}
Fdisk / dev/vdb / / divide the whole market into one area / dev/vdb1
Targetcli
1) define backend storage
Backstores/block create diskb / dev/vdb1
2) create iqn object
Iscsi/ create iqn.2018-10.cn.tedu.storage51:vdb
3) bind storage
Iscsi/iqn.2018-10.cn.tedu.storage51:vdb/tpg1/luns create / backstores/block/diskb
4) authorize client access
Iscsi/iqn.2018-10.cn.tedu.storage51:vdb/tpg1/acls create
Iqn.2018-10.cn.tedu.client50
5) bind listening address and port. By default, all ip access ports 3260 define the ip address and port number for service access. 6) restart the server, and set self-boot.
Systemctl restart target
Systemctl enable target
Check when the configuration file of vim / etc/target/saveconfig.json / / targetcli is not configured
6. Front-end device discovers iscsi disk share provided by back-end device 1) install iscsi-initiator-utils software package
Yum-y install iscsi-initiator-utils
2) set the native iqn name, here is the name of the iqn authorized by the backend
Vim / etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2018-10.cn.tedu.client50
3) Discovery equipment
Iscsiadm-mode discoverydb-type sendtargets-portal 192.168.1.10-discover
4) login devices (for all discovered devices, the iscsi service can log in automatically after restart)
Iscsiadm-mode node-targetname
Iqn.2018-10.cn.tedu.storage51:vdb-- portal 192.168.1.1-login
5) Logout device
Iscsiadm-mode node-targetname
Iqn.2018-10.cn.tedu.storage51:vdb-- portal 192.168.1.1-logout
6) set iscsi to boot automatically for automatic login remote storage, and iscsid is the daemon.
Systemctl enable iscsi iscsid
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.