¼³Á¤ ÀÌÀü¿¡ Redhat ¿¡¼ Á¦°øÇÏ´Â DM-MultiPath ¸¦ »ç¿ëÇÏ´Â ¸ñÀû
ÀÌÁßÈ
DM-Multipath´Â È°¼º/ºñÈ°¼º ¼³Á¤¿¡¼ Àå¾Ö Á¶Ä¡¸¦ Á¦°øÇÒ ¼ö ÀÖ½À´Ï´Ù. È°¼º/ºñÈ°¼º ¼³Á¤¿¡¼, °æ·Î Àý¹Ý¸¸ÀÌ ¾Æ¹«¶§¿¡³ª I/O ¿ëÀ¸·Î »ç¿ëµË´Ï´Ù. I/O °æ·Î ¿ä¼Ò (ÄÉÀ̺í, ½ºÀ§Ä¡, Á¦¾î±â)¿¡ Àå¾Ö°¡ ¹ß»ýÇÒ °æ¿ì DM-Multipath´Â ´Ù¸¥ °æ·Î·Î ÀüȯÇÕ´Ï´Ù.
¼º´É Çâ»ó
DM-Multipath´Â I/O°¡ ¶ó¿îµå ·Îºó (round-robin) »óÅ¿¡ ÀÖ´Â °æ·Î¸¦ ÅëÇØ Áö³ª°¡´Â À§Ä¡¿¡¼ È°¼º/ºñÈ°¼º ¸ðµå·Î ¼³Á¤µÉ ¼ö ÀÖ½À´Ï´Ù. ÀϺΠ¼³Á¤¿¡¼ DM-Multipath´Â I/O °æ·Î¿¡¼ÀÇ ºÎÇÏ·®À» °¨ÁöÇÏ¿© À̸¦ ÀçÁ¶Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
±¸¼º ½Ã³ª¸®¿À
SR (iSCSI) - 192.168.50.20
Node - 192.168.50.50 // /iSCSI ÇÒ´çµÈ ÆÄƼ¼Ç dev/sdb
ÇÊ¿äÇÑ ÆÐÅ°Áö ¸ñ·Ï - device-mapper-multipath-x.x.x.x.x
ÆÐÅ°Áö°¡ ¾ø´Ù¸é yum À» ÅëÇØ ¼³Ä¡ÇÑ´Ù.
Node> ÇöÀç ±âº» ¼³Á¤µÇ¾î ÀÖ´Â ÆÄƼ¼Ç
[root@50-VM ~]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00048ad6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 3917 31149056 8e Linux LVM
Disk /dev/mapper/vg_sys-lv_root: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_sys-lv_swap: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 10.7 GB, 10733958144 bytes
64 heads, 32 sectors/track, 10236 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Node> wwiid È®ÀÎ ÈÄ ¸ÖƼÆнº conf ÆÄÀÏ »ý¼º
[root@50-VM ~]# scsi_id -gu /dev/sdb
1IET_00010001
/etc/multipath.conf ÆÄÀÏ »ý¼º
(/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf º¹»çµµ °¡´É)
multipaths {
multipath {
wwid 1IET_00010001
alias red
}
}
Node> service multipathd start // µ¥¸ó ½ÇÇà
Node> multipath -ll // Ãß°¡µÈ mutipath È®ÀÎ
Disk /dev/mapper/1IET\x20\x20\x20\x20\x2000010001: 10.7 GB, 10733958144 bytes
255 heads, 63 sectors/track, 1304 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000