Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Storage technology and application

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Classification of storage technology and application storage technology DAS direct-connected storage connects the storage device directly to the computer through SCSI interface or fibre Channel, so it can not share data with other hosts, and occupies the server operating system NAS network technology to store a special data storage server, which takes the data as the center, completely separates the storage device from the server, and centrally manages data, thus releasing bandwidth and improving performance. Users access data through TCP/IP protocol SAN Storage area Network connects disk arrays, disks and other storage devices with related servers through fiber switches, fiber routers and other devices Form high-speed private network ISCSI technology combine SCSI interface technology widely used in storage industry with ip network deploy ISCSI service [storage device side 57] # yum-y install scsi-target-utils # rpm-qc scsi-target-utils View tgtd configuration file # vim / etc/tgt/targets.conf backing-store / dev/vdb definition disk That is, add the local VDB disk to the storage device side write-cache off vendor_id tarena product_id disktwo initiator-address 192.168.4.58 to define the IP address, that is, this block disk can only be used for 58 59 host initiator-address 192.168.4.59#service tgtd start#chkconfig tgtd on#tgtd-admin-show looks at the disk information defined on the storage device side [client 58up 59] # yum-y install iscsi-initiator-utils#service iscsi start#iscsiadm-m discovery-t sendtargets-p 192.168.4.57 install iscsi-initiator-utils#service iscsi start#iscsiadm 3260 finds available target192.168.4.57:3260,1 iqn.2008-01.com.example:diskb#iscsiadn-m node- T iqn.2008-01.com.example:diskb-p 192.168.4.57 ls-l login to target's storage hard disk # ls / dev/sd*#iscsiadn-m node-T iqn.2008-01.com.example:diskb-p 192.168.4.57 iqn.2008 3260-u logout when the client logs in to multiple target storage hard drives The names in the local / dev/sd* are arranged by the kernel in order. When the storage device logs out and then logs in, the local / dev/sd* name will change. If the udev configuration is adopted, the device can be provided with a persistent and consistent name. # udevadm info-- query=path-- name=/dev/sda#udevadm info-- path=/devices/platform/host9/session8/target9:0:0/9:0:0:1/block/sda-- attribute-walk#vim / etc/udev/rules.d/70-iscsidisk.rulesSUBSYSTEM== "block", ATTR {size} = = "6291456", ATTRS {vendor} = = "tarena", ATTRS {model} = = "disktwo" SYMLINK+= "iscsi/sdb" 57 the / dev/sdb disk on the storage side is customized as iscsi/sdb#start_udev#ls / dev/iscsi/sdb-l after logging in on client 58. You can see that the corresponding SDB disk in the client is sda. This technology can quickly correspond the storage disk on the storage server to the name of the local login. Quickly distinguish which disk the local name is on the storage side. When partition is divided into / dev/iscsi/sdb#fdisk / dev/iscsi/sdb#ls / dev/sd*#mkfs.ext4 / dev/sda1#blkid / dev/sda1 to view UUID#vim / etc/fstab mount directly, when using this technology, after two clients mount the same hard disk, the files cannot be synchronized in real time, so they need to be mounted again to see all files Multipath multipath using iscsi technology, when the network card port of the storage side is down. The client cannot continue to receive services. This is to add another Nic to provide services to achieve high availability [storage device side] # yum-y install scsi-target-utils # rpm-qc scsi-target-utils View tgtd configuration file # vim / etc/tgt/targets.conf backing-store / dev/vdc definition disk That is, add the local VDC disk to the storage device side write-cache off vendor_id tarena product_id diskthr initiator-address 192.168.2.60 to define the IP address, that is, this block disk can only be used for 58 59 host initiator-address 192.168.4.60#service tgtd start#chkconfig tgtd on [client 60] # yum-y install iscsi-initiator-utils#iscsiadm-m discovery-t sendtargets-p 192.168.4.57 01.com.example:diskc 3260 # iscsiadm-m discovery-t sendtargets-p 192.168.2.57V 3260 # iscsiadn-m node-T iqn.2008-01.com.example:diskc-p 192.168.2.57V 3260-l#iscsiadn-m node-T iqn .2008-01.com.example:diskc-p 192.168.4.57 install device-mapper-multipath#mpathconf 3260-l#ls / dev/sd*sda sdb#yum-y install device-mapper-multipath#mpathconf-- user_friendly_names n create a configuration file and enable multipath # / lib/udev/scsi_id-- whitelisted-- device=/dev/sda1IET 00030001#/lib/udev/scsi_id-- whitelisted-- device=/dev/sdb1IET 00030001 the same device logged in in different paths But WWID is the same # vim / etc/multipath.confdefaults {user_friendly_names no getuid_callout "/ lib/udev/scsi_id-- whitelisted-- device=/dev/%n"} multipaths {multipath {wwid "1IET 00030001" alias mpath}} # service multipathd start#ls / dev/mapper/mpath#multipath-ll#multipath-rr refresh # fdisk / dev/mapper/mpath#mkfs.ext4 / dev/mapper/mpath#blkid / dev/mapper/mpath#vim / etc/fstab mount

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report