1、NetApp Multipath 最佳实践配置1. Red Hat Enterprise Linux 6 with ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningRed Hat Enterprise Linux 6 with ALUA enabled:defaults user_friendly_names nomax_fds maxflush_on_last_del ye
2、squeue_without_daemon noblacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio “alua“path_checker turfailback immediatepath_selector “r
3、ound-robin 0“hardware_handler “1 alua“rr_weight uniformrr_min_io 128getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“2. Red Hat Enterprise Linux 6 without ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningRed Hat
4、Enterprise Linux 6 and does not have ALUA enabled.Note: Unless you are running the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaults user_friendly_names nomax_fds maxflush_on_last_del yesqueue_without_daemon noblacklist devnode “hda-z“devnode “(ram|raw|loop|fd|m
5、d|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio “ontap“path_checker turfailback immediatepath_selector “round-robin 0“hardware_handler “0“rr_weight uniformrr_min_io 128getuid_callo
6、ut “/lib/udev/scsi_id -g -u -d /dev/%n“3. Red Hat Enterprise Linux 6 update 1 with ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningRed Hat Enterprise Linux 6 update 1 with ALUA enabled:defaults user_friendly_names
7、 nomax_fds maxflush_on_last_del yesqueue_without_daemon nodev_loss_tmo 2147483647fast_io_fail_tmo 5blacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_in
8、it_retries 50“prio “alua“path_checker turfailback immediatepath_selector “round-robin 0“hardware_handler “1 alua“rr_weight uniformrr_min_io 128getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“4. Red Hat Enterprise Linux 6 update 1 without ALUA enabled sample configuration fileThe following file pr
9、ovides an example of the values you need to supply when your host is runningRed Hat Enterprise Linux 6 update 1 and does not have ALUA enabled.Note: Unless you are running the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaults user_friendly_names nomax_fds maxflu
10、sh_on_last_del yesqueue_without_daemon nodev_loss_tmo 2147483647fast_io_fail_tmo 5blacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“pri
11、o “ontap“path_checker turfailback immediatepath_selector “round-robin 0“hardware_handler “0“rr_weight uniformrr_min_io 128getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“5. Red Hat Enterprise Linux 6 update 2 with ALUA enabled sample configuration fileThe following file provides an example of the
12、 values you need to supply when your host is runningRed Hat Enterprise Linux 6 update 2 with ALUA enabled:defaults user_friendly_names nomax_fds maxflush_on_last_del yesqueue_without_daemon nodev_loss_tmo infinityfast_io_fail_tmo 5blacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0
13、-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio “alua“path_checker turfailback immediatepath_selector “round-robin 0“hardware_handler “1 alua“rr_weight uniformrr_min_io 128getuid_callout “/lib/udev
14、/scsi_id -g -u -d /dev/%n“6. Red Hat Enterprise Linux 6 update 2 without ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningRed Hat Enterprise Linux 6 update 2 and does not have ALUA enabled.Note: Unless you are runn
15、ing the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaults user_friendly_names nomax_fds maxflush_on_last_del yesqueue_without_daemon nodev_loss_tmo infinityfast_io_fail_tmo 5blacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.
16、*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio “ontap“path_checker turfailback immediatepath_selector “round-robin 0“hardware_handler “0“rr_weight uniformrr_min_io 128getuid_callout “/lib/udev/scsi_id -g -u -d /dev/
17、%n“7. Red Hat Enterprise Linux 5 update 8 or update 7 with ALUA enabled sample configuration fileThis file provides an example of the values you need to supply when your host is running Red HatEnterprise Linux 5 with update 8 or update 7 and has ALUA enabled.Note: Both Red Hat Enterprise Linux 5 upd
18、ate 8 and Red Hat Enterprise Linux 5 update 7 use thesame values in the DM-Multipath configuration file, so this file can apply to either version.defaults user_friendly_names noqueue_without_daemon noflush_on_last_del yesmax_fds maxpg_prio_calc avgblacklist devnode “hda-z“devnode “(ram|raw|loop|fd|m
19、d|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio_callout “/sbin/mpath_prio_alua /dev/%n“path_checker turpath_selector “round-robin 0“failback immediatehardware_handler “1 alua“rr_we
20、ight uniformrr_min_io 128getuid_callout “/sbin/scsi_id -g -u -s /block/%n“8. Red Hat Enterprise Linux 5 update 8 or update 7 without ALUA enabled sample configuration fileThis file provides an example of the values you need to supply when your host is running Red HatEnterprise Linux 5 with update 8
21、or update 7 and does not have ALUA enabled.Note: Unless you are running the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaults user_friendly_names noqueue_without_daemon noflush_on_last_del yesmax_fds maxpg_prio_calc avgblacklist devnode “hda-z“devnode “(ram|raw|
22、loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “3 queue_if_no_path pg_init_retries 50“prio_callout “/sbin/mpath_prio_ontap /dev/%n“path_checker turpath_selector “round-robin 0“failback immediatehardware_handler “0“
23、rr_weight uniformrr_min_io 128getuid_callout “/sbin/scsi_id -g -u -s /block/%n“9. Red Hat Enterprise Linux 5 update 6 with ALUA enabled sample configuration fileThis file provides an example of the values you need to supply when your host is running Red HatEnterprise Linux 5 with update 6 and has AL
24、UA enabled:defaults user_friendly_names noqueue_without_daemon noflush_on_last_del yesmax_fds maxpg_prio_calc avgblacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “1 queue_if
25、_no_path“prio_callout “/sbin/mpath_prio_alua /dev/%n“path_checker directiopath_selector “round-robin 0“failback immediatehardware_handler “1 alua“rr_weight uniformrr_min_io 128getuid_callout “/sbin/scsi_id -g -u -s /block/%n“10. Red Hat Enterprise Linux 5 update 6 without ALUA enabled sample configu
26、ration fileThis file provides an example of the values you need to supply when your host is running Red HatEnterprise Linux 5 with update 6 and does not have ALUA enabled.Note: Unless you are running the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaults user_fri
27、endly_names noqueue_without_daemon noflush_on_last_del yesmax_fds maxpg_prio_calc avgblacklist devnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devices device vendor “NETAPP“product “LUN“path_grouping_policy group_by_priofeatures “1 queue_if_no_path“prio_callout “/sbin
28、/mpath_prio_ontap /dev/%n“path_checker directiopath_selector “round-robin 0“failback immediatehardware_handler “0“rr_weight uniformrr_min_io 128getuid_callout “/sbin/scsi_id -g -u -s /block/%n“11. Red Hat Enterprise Linux 4 Update 9 sample configuration fileThis file provides an example of the value
29、s you need to supply when your host is running Red HatEnterprise Linux 4 Update 9:defaultsuser_friendly_names noqueue_without_daemon nomax_fds maxflush_on_last_del yesdevnode_blacklistdevnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devicesdevicevendor “NETAPP“product
30、“LUN“getuid_callout “/sbin/scsi_id -g -u -s /block/%n“prio_callout “/sbin/mpath_prio_ontap /dev/%n“features “1 queue_if_no_path“hardware_handler “0“path_grouping_policy group_by_priopath_selector “round-robin 0“failback immediaterr_weight uniformrr_min_io 128path_checker directio12. SUSE Linux Enter
31、prise Server 11, 11 SP1 with ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningeither SUSE Linux Enterprise Server 11 or 11 SP1 with ALUA:defaultsuser_friendly_names nomax_fds maxflush_on_last_del yesblacklistdevnod
32、e “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devicesdevicevendor “NETAPP“product “LUN“getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“prio “alua“features “1 queue_if_no_path“hardware_handler “1 alua“path_grouping_policy group_by_priopath_selector “round-robin 0“failba
33、ck immediaterr_weight uniformrr_min_io 128path_checker tur13. SUSE Linux Enterprise Server 11, 11 SP1 without ALUAThe following file provides an example of the values you need to supply when your host is runningSUSE Linux Enterprise Server 11 or 11 SP1 and ALUA is not enabled.Note: Unless you are ru
34、nning the iSCSI protocol and Data ONTAP operating in 7-Mode, youshould have ALUA enabled.defaultsuser_friendly_names nomax_fds maxflush_on_last_del yesblacklistdevnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devicesDevicevendor “NETAPP“product “LUN“getuid_callout “/li
35、b/udev/scsi_id -g -u -d /dev/%n“prio “ontap“features “1 queue_if_no_path“hardware_handler “0“path_grouping_policy group_by_priopath_selector “round-robin 0“failback immediaterr_weight uniformrr_min_io 128path_checker tur14. SUSE Linux Enterprise Server 11 SP2 with ALUA enabled sample configuration f
36、ileThe following file provides an example of the values you need to supply when your host is runningSUSE Linux Enterprise Server 11 SP2 with ALUA:defaultsuser_friendly_names nomax_fds maxqueue_without_daemon noflush_on_last_del yesblacklistdevnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-
37、9*“devnode “cciss.*“devicesdevicevendor “NETAPP“product “LUN“getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“prio “alua“features “3 queue_if_no_path pg_init_retries 50“hardware_handler “1 alua“path_grouping_policy group_by_priofailback immediaterr_weight uniformrr_min_io 128path_checker tur15. SU
38、SE Linux Enterprise Server 11 SP2 without ALUA enabled sample configuration fileThe following file provides an example of the values you need to supply when your host is runningSUSE Linux Enterprise Server 11 SP2 and ALUA is not enabled.Note: Unless you are running the iSCSI protocol and Data ONTAP
39、operating in 7-Mode, youshould have ALUA enabled.defaultsuser_friendly_names nomax_fds maxqueue_without_daemon noflush_on_last_del yesblacklistdevnode “hda-z“devnode “(ram|raw|loop|fd|md|dm-|sr|scd|st)0-9*“devnode “cciss.*“devicesdevicevendor “NETAPP“product “LUN“getuid_callout “/lib/udev/scsi_id -g -u -d /dev/%n“prio “ontap“features “3 queue_if_no_path pg_init_retries 50“hardware_handler “0“path_grouping_policy group_by_priofailback immediaterr_weight uniformrr_min_io 128path_checker tur