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

RHEL6.6 iscsi multipath installation and enablement process of linux notes

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This blog is mainly used as my learning experience, welcome to discuss. On weekdays, some of the information may not adapt to your own environment, so collect the party.

The system version is as follows:

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

Reference link: http://www.linuxidc.com/Linux/2013-06/85479.htm

Http://blog.csdn.net/db_alleria/article/details/8219217

1. Do a good job of the server side through tgtd and iscsi. After the client is connected, the iscsi login registration is completed through two IP network connections.

2. See multiple devices through fdisk-l, and scsi_id-u-g / dev/sdd see that two 1IETs are the same.

3 、

3. Install the multipath program yum install-y scsi*.

4. Make the relevant configuration.

Cp / usr/share/doc/device-mapper-* / etc: copy related files

Cp / usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf / etc: copy profile template

Modprobe dm-multipath: loading modules for the kernel

/ etc/init.d/multipathd start: start the service

Chkconfig multipathd on: boot service

5. View the configuration results

-

Multipath-ll: view the multi-path effect. The following is an excerpt. / dev/mapper/mpathg is the connection file of multiple newly-created aggregated devices, and the actual file corresponds to / 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 sdi 0100 active ready running 020 sdi 812 active ready running |

`- +-policy='round-robin 0' prio=1 status=enabled

`- 36 sdl 0VOV 0RU 2 sdl 8RU 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 sdh 012 active ready running |

`- +-policy='round-robin 0' prio=1 status=enabled

`- 36VOVUR 0UR 0UR 1 sdk 8UR 160 active ready running

Fdisk-l | grep Disk: view hard disk results

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

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

Servers

Wechat

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

12
Report