[go: up one dir, main page]

0% found this document useful (0 votes)
31 views10 pages

Multi Path

The document provides instructions for configuring and managing multipath storage in a Linux environment, including commands to find new LUNs, modify the multipath configuration file, and reload settings. It also details how to create a new disk in a virtual machine and identify LUN details. Additionally, it includes troubleshooting information related to multipath paths and device mapper events.

Uploaded by

raghuvarman.e
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views10 pages

Multi Path

The document provides instructions for configuring and managing multipath storage in a Linux environment, including commands to find new LUNs, modify the multipath configuration file, and reload settings. It also details how to create a new disk in a virtual machine and identify LUN details. Additionally, it includes troubleshooting information related to multipath paths and device mapper events.

Uploaded by

raghuvarman.e
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Multipath

Service /etc/init.d./multipathd

Main configuration file = /etc/multipath.conf

Find out new LUN in server using lsblk,lsscsi or fdisk command.

We can see lun details using below commands.

Multipath –ll
Take LUN details and add into /etc/multipath.conf file and need to reload multipath file

Multipath -r

Modify /etc/multipath.conf

defaults {
user_friendly_names yes
bindings_file "/etc/multipath/bindings"

}
devices {
device {
vendor "HP"
product "OPEN-.*"
path_grouping_policymultibus
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
path_selector "round-robin 0"
path_checker tur
hardware_handler "0"
failback immediate
rr_weight uniform
rr_min_io 1000
no_path_retry 18
}
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^vd[a-z]"
devnode "^cciss!c[0-9]d[0-9].*"
}
multipaths {
multipath {
wwid360060e801532bc00000132bc00009080 -- new lun id
alias altboot0
}
}

reload the multipath configuration

multipath -r

To rescan scsi id’s


rescan-scsi-bus.sh

multipath -v2

How to remove unused multipath


Multipath –F
F= flush

Feb 8 22:55:28 gvx0lsaml03q multipathd: 3pSwap01: remaining active paths: 1


Feb 8 22:55:28 gvx0lsaml03q kernel: device-mapper: multipath: Failing path 8:176.
Feb 8 22:55:29 gvx0lsaml03q kernel: qla2xxx [0000:07:00.0]-801c:3: Abort command
issued nexus=3:0:4 -- 1 2002.
Feb 8 22:55:33 gvx0lsaml03q multipathd: 3pSwap01: sdl - directio checker reports path is
up
Feb 8 22:55:33 gvx0lsaml03q multipathd: 8:176: reinstated
Feb 8 22:55:33 gvx0lsaml03q multipathd: 3pSwap01: remaining active paths: 2
Feb 9 01:05:19 gvx0lsaml03q multipathd: dm-11: remove map (uevent)
Feb 9 01:05:19 gvx0lsaml03q multipathd: dm-11: devmap not registered, can't remove
Feb 9 01:05:19 gvx0lsaml03q multipathd: dm-0: remove map (uevent)
Feb 9 01:05:19 gvx0lsaml03q multipathd: dm-6: remove map (uevent)

How to create new disk in virtual machine


The below procedure for add new Hard disk to virtual machine.
Login in to server and execute the below command for scan new disk.

Echo “- - -“ >> /sys/class/scsi_host/host0/device/scsi_host/host0/scan

Echo “- - -“ >> /sys/class/scsi_host/host1/device/scsi_host/host1/scan

Echo “- - -“ >> /sys/class/scsi_host/host2/device/scsi_host/host2/scan

Echo “- - -“ >> /sys/class/scsi_host/host3/device/scsi_host/host3/scan

Echo “- - -“ >> /sys/class/scsi_host/host4/device/scsi_host/host4/scan


How to identify LUN details

You might also like