RHEL6 configures multipath software to connect to storage

Source: Internet
Author: User
RHEL6 configures multipath software to connect storage RHEL6 and 5. there are some minor differences in multi-path configuration. Some parameters of the scsi_id command are not supported. You can use the & amp; ndash; whitelist parameter to obtain the wwid of a disk in RHEL6: [root @ db1 ~] # Scsi_id -- whitelist...
RHEL6 configures multipath software to connect storage RHEL6 and 5. there are some minor differences in multi-path configuration. Some parameters of the scsi_id command are not supported. You can use the-whitelist parameter to obtain the wwid of a disk in RHEL 6: [root @ db1 ~] # Scsi_id -- whitelist/dev/sdg 360060160a2212f00f8139df761ece111 www.2cto.com you can use a shell command to obtain the wwid of all the system disks: # for I in 'cat/proc/partitions when awk {'print $ 4'} then grep sD'; do echo "###$ I: 'scsi _ id -- whitelist/dev/$ I '"; done in RHEL 5 can obtain the disk wwid in the following way: # for I in 'cat/proc/partitions when awk {'print $ 4'} then grep sD'; do echo "###$ I: 'scsi _ id-g-u-s/block/$ I '"; in addition, the multi-path configuration file in RHEL 6 also changes: # multipath. Conf written by anacondadefaults {user_friendly_names yes} blacklist {devnode "^ (ramrawloopfdmddm-srscdst) [0-9] * "devnode" ^ hd [a-z] "devnode" ^ dcssblk [0-9] * "device {vendor" DGC "product" LUNZ "} device {vendor "IBM" product "S/390. * "} # don't count normal SATA devices as multipathsdevice {vendor" ATA "} # don't count 3 ware devices as multipathsdevice {vendor" 3 ware "} device {vendor" AMCC "} # nor highpoint dev Icesdevice {vendor "HPT"} wwid "20080930-1" wwid "20080930-1" device {vendor Ciscoproduct Virtual_CD_DVD} wwid "*" // You can comment out this, in this way, you do not need to enter blacklist_exceptions} blacklist_exceptions {// wwidwwid "exclude" wwid "exclude"} multipaths {multipath {uid 0 // uidgid 0/ /disk group gidwwid "360060160a2212f00a67e0b91f2dbe111" // wwid mode 0600 // disk read/write permission} mult Ipath {wwid "360060160a2212f0044a0fc6ef5eae111" alias data // alias }...... // You can also configure the alias, uid, gid, mode etc...} of other disks according to the actual situation ...} after configuring www.2cto.com, restart the multipathd service and view the disks bound to the software through multipath. Note: to format the disk, use the device names such as/dev/mapper/[alias] for fdisk.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.