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

Personal understanding of NAS, SAN, ISCSI storage

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

It is important to understand that as long as you can mount the storage disk to a directory under linux, the storage disk must have been formatted.

NAS

Client-network switch-storage server

1. The client connects the storage volume on the other side of the storage server through the TCP/IP network protocol, and the storage volume has been formatted on the storage server. The format is selected according to the security mode, unix mode for linux and ntfs mode for windows.

2. The client can connect to the network switch through the network cable (gigabit network card, gigabit switch) or optical fiber (10 gigabit fiber card, 10 Gigabit switch). The network switch connects to the storage server through the network cable (gigabit network card, gigabit switch) or optical fiber (10 Gigabit fiber card, 10 Gigabit switch). If the client is linux, the storage volume is mounted by NFS (NETWORK FILE SYSTEM). If the client is windows, mount the storage volume through CIFS (Common Internet FILE SYSTEM).

3. Because the file system is on the storage server side, the storage server can easily see the utilization of each storage volume in real time.

4. The transfer speed is limited by the network traffic and the file system processing speed of the storage server

5. The file system is on the storage side, and the volumes drawn are formatted, so it cannot be used as a bare device.

SAN

Client-fiber switch-storage server

1. The client connects to the storage server through the FC protocol of san. Even if the IP of the client and the storage server is not in the same network segment, it does not affect the network traffic, because the FC protocol and the TCP/IP protocol are completely heterogeneous and use different transmission media. The former is an optical fiber switch and the latter is a network switch, so that the client-to-storage server is like a private network independent of the TCP/IP network.

2. The client must be connected to the switch through optical fiber.

3. Because the file system is on the client side, the utilization rate of the storage volume seen by the storage server is not accurate, and the recorded value is the peak value of the storage volume.

4. The transmission speed is limited by the speed of the optical fiber interface. If multiple clients are connected to the same storage server, the optical interface of the storage server may become a bottleneck.

5. It can be used as a bare device

ISCSI

Client-network switch-storage server

1. The client connects to the storage volume on the storage server through TCP/IP network protocol, which is similar to NAS.

2. The client can connect to the network switch through the network cable (gigabit network card, gigabit switch) or optical fiber (gigabit network card, 10 Gigabit switch).

3. The file system is on the client side, similar to SAN

4. The transmission speed is limited by the cost of decoding TCP/IP to SCSI by the network and client, and from TCP/IP to SCSI by the storage server.

5. It can be used as a bare device

The reason for the rise of ISCSI network storage: the cost of the storage area network of SAN mode constructed by special optical fiber media is very high, and the use of ordinary data network to transmit ISCSI data similar to SAN can greatly reduce the cost and improve the flexibility of the system.

ISCSI workflow:

The iSCSI system sends a SCSI command by the SCSI adapter.

The command is encapsulated in a TCP/IP packet and sent to the Ethernet network.

The receiver extracts SCSI commands from the TCP/IP packet and performs related operations.

Encapsulate the returned SCSI commands and data in a TCP/IP package and send them back to the sender.

The system extracts data or commands and passes them back to the SCSI subsystem.

DAS

A storage device that is directly connected to a host system, such as a computer internal hardware driver that acts as a server.

Case understanding

[root@mydb ~] # df-Th

Filesystem Type Size Used Avail Use% Mounted on

/ dev/sda5 ext4 49G 7.9G 38G 18% /

Tmpfs tmpfs 63G 6.2m 63G 1% / dev/shm

/ dev/sda3 ext4 97G 189m 92G 1% / home

192.168.130.240:/mes_db_bak nfs 5.0T 620G 4.4T 13% / mybk

/ dev/mapper/3600a09803830385a6f244a4b4d576f64 ext4 1008G 533G 424G 56% / U01

[root@mydb ~] # cat / etc/fstab | grep / U01

/ dev/mapper/3600a09803830385a6f244a4b4d576f64 / u01 ext4 defaults 1 2

[root@mydb ~] # cat / etc/rc.local | grep mount

Mount-o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0,suid 192.168.130.240:/mes_db_bak / mybk

Above, / dev/sda is DAS, 192.168.130.240:/mes_db_bak is NAS,/dev/mapper/3600a09803830385a6f244a4b4d576f64 and SAN is

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

Database

Wechat

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

12
Report