NFS

一种可以跨操作系统的网络文件系统
NFS各个版本之间的比较
优先选择NFS4.1,
NFS4.0比NFS3优势明显:1)有文件锁了,多台客户端访问同一个文件不会出错。大量减少了客户端刷新文件状态需要的调用。 2)有安全认证了 3)有组合操作了,可以减少了文件操作调用次数。4)更好的os兼容。
4.1比4.0多了并发操作,服务器分成了元数据服务+数据服务,大大提高了性能。
linux上安装NFS

  • 服务端
  1. 安装nfs-utils和rpcbind
  2. 创建共享目录和修改nfs配置
  3. 启动rpcbind和nfs服务
  • 客户端
  1. 安装nfs-utils
  2. 挂载,用mount-t nfs

    NAS

    Network Attached Storage: 通过Ethernet网络访问的存储设备。按字面简单说就是连接在网络上,具备资料存储功能的装置,因此也称为“网络存储器”。目前国际著名的NAS企业有Netapp、EMC、OUO等。
    NAS被定义为一种特殊的专用数据存储服务器,包括存储器件(例如磁盘阵列、CD/DVD驱动器、磁带驱动器或可移动的存储介质)和内嵌系统软件,可提供跨平台文件共享功能。NAS通常在一个LAN上占有自己的节点,无需应用服务器的干预,允许用户在网络上存取数据,在这种配置中,NAS集中管理和处理网络上的所有数据,将负载从应用或企业服务器上卸载下来,有效降低总拥有成本,保护用户投资。
    NAS本身能够支持多种协议(如NFSCIFSFTPHTTP等),而且能够支持各种操作系统。通过任何一台工作站,用浏览器就可以对NAS设备进行直观方便的管理。
    在linux上使用nas:
    1)查看可用存储区:举例:showmount -e 192.168.1.2
    2)通过nfs挂载:举例:mount -t nfs 192.168.1.2:/storagedir/storagename

Network-attached storage (NAS) is a file-level (as opposed to block-level storage) computer data storage server connected to a computer network providing data access to a heterogeneous group of clients.

SAN

存储区域网络(Storage Area Network,简称SAN),A storage area network (SAN) or storage network is a computer network which provides access to consolidated, block-level data storage. 多通过FC交换机连接存储阵列和服务器主机,建立专用于数据存储的区域网络。

这个网络分成三个层面:主机层(Host Layer)、网络层(Fabric Layer)、存储层(Storage Layer)

主机层可以是多个主机,使用适配器host bus adapter(hba)接入。
网络层由各种网络设备组成(不一定是光纤)。使用的纤维通道协议FCP (一种scsi)。The fabric layer consists of SAN networking devices that include SAN switches, routers, protocol bridges, gateway devices, and cables. SAN network devices move data within the SAN, or between an initiator, such as an HBA port of a server, and a target, such as the port of a storage device. Fibre Channel Protocol(FCP) is the SCSI interface protocol utilising an underlying Fibre Channel connection.
存储层,通常是磁盘阵列。

DAS

直连存储。主机通过专用数据线直接连接专用存储设备。就像主机里的一个磁盘一样。
和SAN相比,没有扩展性,不到多台主机共用存储。

Fibre Channel (FC)

is a high-speed data transfer protocol providing in-order, lossless[1] delivery of raw block data.[2] Fibre Channel is primarily used to connect computer data storage to servers)[3][4] in storage area networks (SAN) in commercial data centers.

Fibre Channel Protocol (FCP)

is a protocol that transports SCSI commands over Fibre Channel networks.