How to get wwid to configure multipath ?

How to get wwid ?

scsi_id -g -u -s /block/sda

http://dba010.wordpress.com/2013/04/02/multipath-configuration-on-rhel6/
http://www.guidsgonewild.com/2009/08/10/determining-a-devices-wwid-in-linux/

Sample Multipath Configuration for RHEL 6.4 and Hitachi – Huawei Hardware

cat /etc/multipath.conf
# multipath.conf written by anaconda

defaults {
        user_friendly_names yes
}
blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[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 multipaths
        device {
                vendor  "ATA"
        }
        # don't count 3ware devices as multipaths
        device {
                vendor  "3ware"
        }
        device {
                vendor  "AMCC"
        }
        # nor highpoint devices
        device {
                vendor  "HPT"
        }
        wwid "3600508e000000000870772cdd5d8740d"
        device {
                vendor TSSTcorp
                product CDDVDW_SE-208DB
        }
        wwid "*"
}
blacklist_exceptions {
        wwid "36f84abf1005fc774000d6e8b00000000"
}
multipaths {
        multipath {
                uid 0
                gid 0
                wwid "36f84abf1005fc774000d6e8b00000000"
                mode 0600
        }
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.