您好,登錄后才能下訂單哦!
本博文主要作為本人學習心得體會之用,歡迎探討。平日查詢資料有些不一定適應自己的環境,收集黨吧。
系統版本如下:
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Release: 6.6
Codename: Santiago
參考鏈接:http://www.linuxidc.com/Linux/2013-06/85479.htm
http://blog.csdn.net/db_alleria/article/details/8219217
1、通過tgtd和iscsi做好服務端,客戶端連接后,通過兩條IP網絡連接,完成iscsi登錄注冊。
2、通過fdisk -l看到多個設備,scsi_id -u -g /dev/sdd看到兩個個1IET_相同。
3、
3、安裝多路徑程序yum install -y scsi*。
4、做好相關配置
cp /usr/share/doc/device-mapper-* /etc :復制相關文件
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc :復制配置文件模板
modprobe dm-multipath :為內核加載模塊
/etc/init.d/multipathd start :啟動服務
chkconfig multipathd on :開機啟動服務
5、查看配置結果
----------------------------------------------------------------------------------------------
multipath -ll :查看多路徑效果,以下為節選,/dev/mapper/mpathg 為多新建聚合后的設備連接文件,實際文件對應/dev/dm*內。
mpathe (1IET 00030002) dm-6 IET,VIRTUAL-DISK
size=2.0G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 35:0:0:2 sdi 8:128 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 36:0:0:2 sdl 8:176 active ready running
mpathd (1IET 00030001) dm-5 IET,VIRTUAL-DISK
size=2.0G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 35:0:0:1 sdh 8:112 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 36:0:0:1 sdk 8:160 active ready running
-----------------------------------------------------------------------------
fdisk -l|grep Disk :查看硬盤結果
Disk /dev/sda: 21.5 GB, 21474836480 bytes
Disk identifier: 0x0009665b
Disk /dev/mapper/vg_ocm1-lv_root: 18.8 GB, 18832424960 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_ocm1-lv_swap: 2113 MB, 2113929216 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 32.2 GB, 32212254720 bytes
Disk identifier: 0x860a3e92
Disk /dev/sdc: 32.2 GB, 32212254720 bytes
Disk identifier: 0xd6e4c7d4
Disk /dev/sdd: 32.2 GB, 32212254720 bytes
Disk identifier: 0x166c030a
Disk /dev/sde: 32.2 GB, 32212254720 bytes
Disk identifier: 0x860a3e92
Disk /dev/sdg: 32.2 GB, 32212254720 bytes
Disk identifier: 0x166c030a
Disk /dev/sdh: 2147 MB, 2147483648 bytes
Disk identifier: 0xb8f15236
Disk /dev/sdf: 32.2 GB, 32212254720 bytes
Disk identifier: 0xd6e4c7d4
Disk /dev/sdk: 2147 MB, 2147483648 bytes
Disk identifier: 0xb8f15236
Disk /dev/sdi: 2147 MB, 2147483648 bytes
Disk identifier: 0xb9b8f8b3
Disk /dev/sdj: 2147 MB, 2147483648 bytes
Disk identifier: 0x3b8db307
Disk /dev/sdl: 2147 MB, 2147483648 bytes
Disk identifier: 0xb9b8f8b3
Disk /dev/sdn: 32.2 GB, 32212254720 bytes
Disk identifier: 0x35189686
Disk /dev/sdo: 32.2 GB, 32212254720 bytes
Disk identifier: 0x35189686
Disk /dev/sdm: 2147 MB, 2147483648 bytes
Disk identifier: 0x3b8db307
Disk /dev/mapper/mpatha: 32.2 GB, 32212254720 bytes
Disk identifier: 0x860a3e92
Disk /dev/mapper/mpathb: 32.2 GB, 32212254720 bytes
Disk identifier: 0xd6e4c7d4
Disk /dev/mapper/mpathc: 32.2 GB, 32212254720 bytes
Disk identifier: 0x166c030a
Disk /dev/mapper/mpathd: 2147 MB, 2147483648 bytes
Disk identifier: 0xb8f15236
Disk /dev/mapper/mpathe: 2147 MB, 2147483648 bytes
Disk identifier: 0xb9b8f8b3
Disk /dev/mapper/mpathf: 2147 MB, 2147483648 bytes
Disk identifier: 0x3b8db307
Disk /dev/mapper/mpathg: 32.2 GB, 32212254720 bytes
Disk identifier: 0x35189686
----------------------------------------------------------------------------
ls -al /dev/mapper/
drwxr-xr-x. 2 root root 240 May 23 11:26 .
drwxr-xr-x. 18 root root 4640 May 23 11:26 ..
crw-rw----. 1 root root 10, 58 May 23 11:17 control
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpatha -> ../dm-2
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathb -> ../dm-3
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathc -> ../dm-4
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathd -> ../dm-5
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathe -> ../dm-6
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathf -> ../dm-7
lrwxrwxrwx. 1 root root 7 May 23 11:26 mpathg -> ../dm-8
lrwxrwxrwx. 1 root root 7 May 23 11:17 vg_ocm1-lv_root -> ../dm-0
lrwxrwxrwx. 1 root root 7 May 23 11:17 vg_ocm1-lv_swap -> ../dm-1
----------------------------------------------------------------------------------------------------------
ls -al /dev/dm*
brw-rw----. 1 root disk 253, 0 May 23 11:17 /dev/dm-0
brw-rw----. 1 root disk 253, 1 May 23 11:17 /dev/dm-1
brw-rw----. 1 root disk 253, 2 May 23 11:26 /dev/dm-2
brw-rw----. 1 root disk 253, 3 May 23 11:26 /dev/dm-3
brw-rw----. 1 root disk 253, 4 May 23 11:26 /dev/dm-4
brw-rw----. 1 root disk 253, 5 May 23 11:26 /dev/dm-5
brw-rw----. 1 root disk 253, 6 May 23 11:26 /dev/dm-6
brw-rw----. 1 root disk 253, 7 May 23 11:26 /dev/dm-7
brw-rw----. 1 root disk 253, 8 May 23 11:26 /dev/dm-8
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。