Category: Storage

  • Device Mapper Multipath Configuration

    1. Setup Steps 1.1 install and load device mapper (not necessary in RHEL58) a) install Device Mapper Multipath/DMMP yum install device-mapper device-mapper-multipath b) load and check device mapper and multipath modules modprobe dm-multipath modprobe dm-round-robin lsmod | grep md c) start the multipathd service

  • bit, nybble, byte, WORD, DWORD, QWORD

    It depends on the computer architecture. For 32bit, bit = …1 bit… nybble = 4 bits = 1/2 byte byte = 8 bits = 2 nybbles WORD = 2 bytes = 4 nybbles = 16 bits DWORD = 2 WORDs = 4 bytes = 8 nybbles = 32 bits QWORD = 2 DWORDs = 4…

  • Compile pciutils (lspci, setpci) in Windows x86,在 Windows x86 平台下编译 pciutils (lspci, setpci)

    pciutils 是 Linux 下查看 PCI/PCIe 设备的利器。可以用来 dump PCI configuration space,可惜在 Windows 平台下类似功能的工具寥寥无几。在 pcituils 的官网(http://mj.ucw.cz/pciutils.html)说明中提到了可以在 Windows 平台下工作。那下面来介绍 Windows 下编译 pciutils 的经验。遗憾的是在 x86_64/amd64 下没有成功,如果各位有成功的经验希望留言来描述下,谢谢。 下载 pciutils source code。在 ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ 可以下载到最新的版本。 然后需要找到编译环境,这里推荐使用 mingw 来编译。mingw 也有许多版本,我是用的是 mplayer 项目的压缩包。(http://nchc.dl.sourceforge.net/project/mplayer-win32/MinGW/MinGW%20BE%20gcc%204.2.5/MinGW-full-gcc-4.2.5-Dec-2010.7z ) 再者由于 pciutils 原生是在 Linux 下运用的,在 Windows 下需要提供能够访问 kernel space 的接口,pciutils 使用了 WinIO 来实现这个。所以还要去下载 WinIO,地址在这里 http://www.internals.com/utilities/WinIo.zip。 好了解压好三个包后,运行 mingw 下的 msys.bat。看到的命令行就是操作的环境。其中已经包含了所要使用的 gcc…

  • How to issue SMART command

    smartmontools 5.40-1: For Windows: http://sourceforge.net/projects/smartmontools/files/smartmontools/5.40/smartmontools-5.40-1.win32-setup.exe/download For Linux: http://sourceforge.net/projects/smartmontools/files/smartmontools/5.40/smartmontools-5.40.tar.gz/download Table 60 — SMART Feature field values 00h-CFh Reserved   D0h SMART READ DATA smartctl /dev/sda –a D1h Obsolete   D2h SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE smartctl /dev/sda –S on D3h Obsolete   D4h SMART EXECUTE OFF-LINE IMMEDIATE smartctl /dev/sda –t short D5h SMART READ LOG smartctl /dev/sda…

  • MPIO (Multi-Path I/O) 多路径数据传输,冗余链路

    MPIO (Multi-Path I/O)  多路径数据传输,是在企业级存储系统中非常常见一种错误挽救的系统配置。优势在于可以在某条传输路径出现故障时,无间断的由另一条路径连接至存储介质继续数据传输。这些都需要软硬件上的支持,需要 2 套或者 2 套以上的硬件系统设备,以及额外的软件解决方案支撑。 最简单的例子是将一颗 SCSI 硬盘连接至同一系统上的 2 块独立 SCSI 控制器上。 对于 SAS 设备,每个设备都有唯一的 2 个 SAS Address (WWN,World Wide Name),一般情况下是连续的 2 组 ID。对应于 2 组 SAS PHY,可以用于配置为 MPIO 冗余链路。在没有安装 MPIO 驱动或者软件的情况下,系统会将一个 SAS 设备侦测为 2 个独立的设备。只有正确配置 MPIO 后,才能发挥 MPIO 的作用。如下图。 MPIO 驱动或者软件能够通过多条路径提供性能上的增强: 动态负载平衡 流量控制 路径管理 动态重配置 现在主流的系统和厂商都已提供了 MPIO 的支持,如 Windows 2008…