This shows you the differences between two versions of the page.
— | storage:legacy [2021/03/08 14:29] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Multipath ====== | ||
+ | < | ||
+ | yum install device-mapper-multipath | ||
+ | </ | ||
+ | |||
+ | ===== Mapping point ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Initialize multipath.conf ===== | ||
+ | < | ||
+ | |||
+ | ===== Default Blacklist ===== | ||
+ | |||
+ | < | ||
+ | blacklist { | ||
+ | devnode " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Block devices under two paths ===== | ||
+ | < | ||
+ | defaults { | ||
+ | ... | ||
+ | find_multipaths yes | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== ORACLE DB ===== | ||
+ | < | ||
+ | < | ||
+ | ls -lthr</ | ||
+ | |||
+ | grep scsi-xxxxxxxxxxxxxxxxxxx-part1 | ||
+ | |||
+ | < | ||
+ | devices { | ||
+ | device { | ||
+ | vendor " | ||
+ | product " | ||
+ | features " | ||
+ | hardware_handler " | ||
+ | prio " | ||
+ | no_path_retry 24 | ||
+ | path_grouping_policy " | ||
+ | path_checker " | ||
+ | failback immediate | ||
+ | rr_weight " | ||
+ | fast_io_fail_tmo 5 | ||
+ | dev_loss_tmo infinity | ||
+ | path_selector " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | multipaths { | ||
+ | multipath { | ||
+ | wwid 36000d310042cbc000000000000000004 | ||
+ | alias DATA_01 | ||
+ | features "1 queue_if_no_path" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | defaults { | ||
+ | no_path_retry | ||
+ | find_multipaths yes | ||
+ | user_friendly_names yes | ||
+ | polling_interval 5 | ||
+ | } | ||
+ | </ | ||
+ | DATA_01 should be ASM name | ||
+ | ===== Multipath info ===== | ||
+ | < | ||
+ | < | ||
+ | mpatha (36000d310042cbc000000000000000004) dm-2 COMPELNT, | ||
+ | size=500G features=' | ||
+ | `-+- policy=' | ||
+ | |- 7: | ||
+ | |- 7: | ||
+ | |- 16:0:0:1 sdd 8:48 active ready running | ||
+ | `- 16:0:2:1 sde 8:64 active ready running | ||
+ | </ |