°Ô½Ã¹° 259°Ç
   
[Red Hat] multipath 1¹ø°
±Û¾´ÀÌ : theko ³¯Â¥ : 2014-07-18 (±Ý) 17:58 Á¶È¸ : 21941

multipath 

EMC ½ºÅ丮Áö¿¡ ÀÖ´Â µð¹ÙÀ̽º Á¤º¸¸¦ HBA CardÀ¸·Î ¿¬°á,

EMC ½ºÅ丮Áö¿¡ ÀÖ´Â 2°³ÀÇ lun(µð¹ÙÀ̽º Á¤º¸)¿¡ ¿¬°áµÇ¾î¼­ ÇÑÂÊ ¿¬°áÀÌ ²÷¾îÁ®µµ ´Ù¸¥ ÇÑÂÊÀ¸·Î Åë½ÅÀÌ °¡´É Çϵµ·Ï ¸ÖƼ Æнº¸¦

±¸¼ºÇÒ ¼ö ÀÖ´Ù.

 

 

 

multipath ÆÐÅ°Áö

device-mapper-multipath-libs-0.4.9-23.0.9.el5
device-mapper-multipath-0.4.9-23.0.9.el5

-> ¸ÖƼÆнº¸¦ Çϱâ À§Çؼ­´Â À§ ÆÐÅ°Áö°¡ ÇÊ¿ä

 

 

 

multipath wwwid °ª È®ÀÎ

# multipath -l > multipath.test

-> EMC¿¡¼­ lun °ü·Ã Á¤º¸¸¦ multipath.test ÆÄÀÏ·Î ÀúÀå

 

# /sbin/scsi_id -g -u -s /block/sdb

-> sdb, sdc, sddÀ¸·Î È®ÀÎ

 

# cat multipath.test | grep mpath | awk '{print $2}' | sed s/\(\//g | sed s/\)\//g

-> lun °ü·Ã Á¤º¸ Áß wwwid°ª È®ÀÎ

 

 

multipath wwwid °ª È®ÀÎÇÏ´Â ½ºÅ©¸³Æ®

#!/bin/bash

 

for a in `cat /proc/partitions | awk '{print $4}' |grep sd`

do

        scsi_id -u -g -s /block/$a

done

-> partitions¿¡¼­ º¸ÀÌ´Â º¼·ý¿¡ ´ëÇؼ­ ¼øÂ÷ÀûÀ¸·Î wwwid°ª È®ÀΠ

 

 

multipath rescan

# echo - - - /sys/class/scsi_host/host0/scan

-> ¸ÖƼÆнº »õ·Î¿î º¼·ý ¸®½ºÄµ

 

 

multipath ¼³Á¤

/etc/multipath.conf

-> ¸ÖƼÆнº ¼³Á¤ÆÄÀÏ.

-> ¼³Á¤ÆÄÀÏÀÌ ¾øÀ»°æ¿ì /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf ¿¡¼­ º¹»çÇؼ­ »ç¿ë

 

 

# vi /etc/multipath.conf

 

## Use user friendly names, instead of using WWIDs as names.
defaults {
        user_friendly_names yes

        -> wwid ´ë½Å friendly nameÀ» »ç¿ëÇÏ¿© alias¸¦ ÁöÁ¤ÇÒ¼ö ÀÖµµ·Ï ¼³Á¤


#defaults {
#       udev_dir                /dev

        -> udev °¡ »ý¼ºµÇ´Â µð·ºÅ丮 ÁöÁ¤
#       polling_interval        10

        -> µÎ°³ÀÇ °æ·ÎÀ» üũ °£°Ý ÁöÁ¤ (ÃÊ´ÜÀ§)
#       selector                "round-robin 0"

        -> I/O ½ÇÇà¿¡ »ç¿ëÇÒ °æ·Î ¼³Á¤
#       path_grouping_policy    multibus

        -> failover = ¿ì¼± ¼øÀ§ ±×·ì ´ç 1 °³ÀÇ °æ·Î

            multibus = 1 °³ÀÇ ¿ì¼± ¼øÀ§ ±×·ì¿¡ ÀÖ´Â À¯È¿ÇÑ ¸ðµç °æ·Î

            group_by_serial = °Ë»öµÈ ½Ã¸®¾ó ¹øÈ£ ´ç 1 °³ÀÇ ¿ì¼± ¼øÀ§ ±×·ì

            group_by_prio = °æ·Î ¿ì¼± ¼øÀ§ °ª ´ç 1 °³ÀÇ ¿ì¼± ¼øÀ§ ±×·ì

            group_by_node_name = ´ë»ó ³ëµå À̸§ ´ç 1 °³ÀÇ ¿ì¼± ¼øÀ§ ±×·ì
#       getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
#       prio                    alua
#       path_checker            readsector0
#       rr_min_io               100
#       max_fds                 8192
#       rr_weight               priorities
#       failback                immediate
#       no_path_retry           fail
#       user_friendly_names     yes
#}


#blacklist {

-> »ç¿ëÇÏÁö ¾ÊÀ» µð¹ÙÀ̽º¸¦ ºí·¢¸®½ºÆ® ½ÃŲ´Ù.
#       wwid 26353900f02796769
#       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
#       devnode "^hd[a-z]"
#} 

multipaths {
       multipath {
               wwid                    3600c0ff0001160a2e61c114d01000000

               -> wwwid °ª ³Ö±â
               alias                   mpath1

               -> wwwid°ª¿¡ µû¸¥ µð¹ÙÀ̽º¸í ¼³Á¤
       }

       multipath {
               wwid                    3600c0ff0001160a2c416114d01000000
               alias                   mpath2
       }
       multipath {
               wwid                    3600c0ff0001160a2ac16114d01000000

               alias                   mpath3
       }

 

 

 

multipath ½ÇÇà

# service multipathd restart
-> ¸ÖƼÆнº ¼­ºñ½º ½ÇÇà

 

# chkconfig multipathd on

-> ¸®ºÎÆà ÈÄ ¸ÖƼÆнº ¼­ºñ½º ÀÚµ¿ ½ÇÇà

 

 

 

multipath ¸¶¿îÆ®

# cd /dev/mapper/

# ls

-> mpath1 , mpath2 , mpath3 µð¹ÙÀ̽º È®ÀÎ °¡´É

 

# fdisk /dev/mapper/mpath1

# pvcrate /dev/mapper/mpath2

-> ¸ÖƼÆнº·Î ¼³Á¤µÈ µð¹ÙÀ̽º´Â ¿øÇÏ´Â ÆÄÀϽýºÅÛÀ¸·Î »ç¿ë°¡´É

 

 

 

multipath ¼³Á¤ È®ÀÎ

# multipath -ll

mpath1 (S_beaf11) dm-0 IET,VIRTUAL-DISK
[size=102M][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
 \_ 3:0:0:1 sdb 8:16  [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 4:0:0:1 sdc 8:32  [active][ready]
-> ¸ÖƼÆнº °ü·ÃÁ¤º¸ È®ÀÎ

 

# multipath -ll

# multipath -v2

 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com