Linux MultiPathing howto.
PoorBest
Written by Syed Asim Abbas |
Monday, 26 October 2009 08:53 |
Linux MultiPathing Howto. By Syed Asim Abbas Date: 24-10-2009 <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy79960 = 'asimabbas31' + '@'; addy79960 = addy79960 + 'gmail' + '.' + 'com'; document.write( '' ); document.write( addy79960 ); document.write( '\n asimabbas31@gmail.com <!-- document.write( '' ); //--> Device Mapper Multipath (DM-MP) allows nodes to route I/O over multiple paths to a storage controller. A path refers to the connection from an HBA port to a storage controller port. As paths fail and new paths come up, DM-MP reroutes the I/O over the available paths. Easy way to configure Multipathing ------------------------------------ [root@power root]# rpm -qa |grep multipath device-mapper-multipath-0.4.8-7.fc10.i386 [root@power root]# fdisk -l Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3f443f43 Device Boot Start End Blocks Id System Disk /dev/sdg: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdn: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdh: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdo: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System MultiPathing packaged avilable on Distribution ###Check the SCSI IDs to see the disk are pairs. /dev/sda is my system disk so no need to configure it for multipathing. Sdg , sdn, sdh and sdo are SAN connected disks. [root@power root]# scsi_id -g -u -s /block/sdg 360060e8005bcaf000000bcaf00006024 [root@power root]# scsi_id -g -u -s /block/sdn 360060e8005bcaf000000bcaf00006024 [root@power root]# scsi_id -g -u -s /block/sdh 360060e8005bcaf000000bcaf00005033 [root@power root]# scsi_id -g -u -s /block/sdo 360060e8005bcaf000000bcaf00005033 ##Ok sdg,sdn Pair and sdh,sdo Pair . ###To implement multipath environment, you must define the alias names for the multipath devices by editing the multipath.conf file that resides in the /etc/ directory: [root@power root]# vi /etc/multipath.conf # Blacklist all devices by default. Remove this to enable multipathing # on the default devices. blacklist { devnode "*" } ##############Comment The above lines # Blacklist all devices by default. Remove this to enable multipathing # on the default devices. #blacklist { # devnode "*" #} #########Define the Disks Aliases ########## multipaths { multipath { wwid 360060e8005bcaf000000bcaf00006024 alias ora1 } multipath { wwid 360060e8005bcaf000000bcaf00005033 alias ora2 } } ####### Save the configuration [root@power root]# chkconfig multipathd on [root@power root]# service multipathd restart Stopping multipathd daemon: [FAILED] Starting multipathd daemon: [ OK ] [root@power root]# [root@power root]# fdisk -l Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3f443f43 Device Boot Start End Blocks Id System Disk /dev/sdg: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdn: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdh: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdo: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System ##########No update same result. Restart the system and run fdisk -l [root@power root]# fdisk -l Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3f443f43 Device Boot Start End Blocks Id System Disk /dev/sdg: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdn: 107.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdh: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/sdo: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/dm-0: 70.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/dm-1: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/mpath/ora1: 70.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System Disk /dev/mpath/ora2: 153.0 GB, 60011642880 bytes Device Boot Start End Blocks Id System #########Ok four more disks are aviavlable. Don't confude just used your paths /dev/mpath/ora1 /dev/mpath/ora2 [root@power root]# ls /dev/mpath* ora1 ora2 ####Disks multipath names are available now. Mount the devices using new name. [root@power root]# mount /dev/mpath/ora1 /ora1 [root@power root]# mount /dev/mpath/ora2 /ora2 For testing unplugged one fiber link and see the results. come from: |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-672054/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 轉: enable multipathing on RedHat Linux 5.3RedhatLinux
- Config and Use of Device Mapper Multipathing on Oracle Linux (OL)_555603.1devAPPOracleLinux
- Metlink:How to Configure DM-Multipathing
- Configuring Solaris IP Multipathing (IPMP) for the Oracle 10g VIPOracle 10g
- NVMe1.4的:IO Determinism及多路徑(Multipathing)訪問共享名稱空間
- Config LUNs for ASM Disk using WWID,DM-Multipathing,ASMLIB on RHEL 5/6_1365511.1ASM
- 【Linux】常用linux操作Linux
- 【LINUX】LINUX PHP搭建LinuxPHP
- [linux]重拾linuxLinux
- Linux module(Linux 模組)Linux
- 【LINUX】linux ulimit調優LinuxMIT
- Linux知識--初始linuxLinux
- LINUX(十七)Linux其它命令Linux
- LINUX(十四)Linux磁碟管理Linux
- Linux1:Linux概述Linux
- 【Linux】Linux安全加固指令碼Linux指令碼
- 【linux】Linux作業系統Linux作業系統
- Linux小白如何快速上手Linux?Linux
- Linux安裝之Linux mintLinux
- 【Linux基礎】Linux目錄Linux
- 【Linux】linux時區設定Linux
- Linux技術——常用 linux 命令Linux
- [linux]linux下安裝mysqlLinuxMySql
- LINUX(十三)Linux程式排程Linux
- LINUX(十二) Linux程式檢視Linux
- [linux]linux傳送郵件Linux
- Linux教程-Turbo Linux Shell(轉)Linux
- linux: atLinux
- linuxLinux
- Linux系統管理——Linux簡介Linux
- 【Linux】 Linux網路程式設計Linux程式設計
- Linux 筆記分享三:Linux 命令Linux筆記
- Linux發行版 vs Linux核心Linux
- Linux啟用 “啟用 Linux” 水印Linux
- 【Linux】Linux檔案之/etc/fstabLinux
- 【Linux】Linux基本常用命令Linux
- 【LINUX】linux相關資源限制Linux
- Linux-Linux常用命令Linux