Mirroring2ÀÌ»óÀÇ µð½ºÅ©¸¦ µ¿ÀÏÇÏ°Ô º¹»çÇØ ¿î¿µÇÏ´Â ¹æ½ÄÀ¸·Î ZFS´Â ÀÚµ¿À¸·Î Data¸¦ Mirroring µÈ µð½ºÅ© »çÀÌ¿¡ Striping ÇØÁØ´Ù. Áï Mirroring ¼³Á¤¸¸ ÇØÁÖ¸é ¾Ë¾Æ¼ ½ºÆ®¶óÀÌÇÎÇؼ ³ªÅ¸³ª°Ô µÈ´Ù.
2°³ÀÇ µð½ºÅ©¸¦ µ¿±âÈÇϱ⠶§¹®¿¡ ¹°¸®ÀûÀÎ µð½ºÅ© ¿ë·®¿¡ Àý¹Ý¸¸ »ç¿ë°¡´ÉÇÏ´Ù.
# zpool create VM_DISK_IMG mirror sdb sdc mirror sdd sde
# zpool status
pool: VM_DISK_IMG
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
VM_DISK_IMG ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
DISK : 240G * 4
¿ë·® : 2 / (240G * N)
VM_DISK_IMG zfs 438G 0 438G 0% /tank
RAIDZ
Mirroring ¹æ½ÄÀº ¾ÈÁ¤ÀûÀÌÁö¸¸ ¸¹Àº ½ºÅ丮Áö ºñ¿ëÀ» À¯¹ßÇÒ ¼ö Àֱ⠶§¹®¿¡ µ¿µîÇÑ ¼öÁØÀÇ ¾ÈÀü¼ºÀ» º¸ÀåÇϸ鼵µ ½ºÅ丮Áö ºñ¿ëÀ» ÁÙÀÏ ¼ö ÀÖ´Â ¹æ¾ÈÀÌ ÇÊ¿äÇÏ´Ù.
RAID 5 ¿Í RAID 6ó·³ Striping °ú Parity checkingÀ» »ç¿ëÇÏ´Â ¹æ½ÄÀ¸·Î ZFS´Â °¢°¢ RAIDZ(single parity)¿Í RAIDZ2(double parity)¸¦ Á¦°øÇÑ´Ù. Mirroring ¹æ½Ä°úÀÇ Â÷ÀÌ´Â RAIDZ¿¡¼´Â attach¿Í detach ±â´ÉÀ» Á¦°øÇÏÁö ¾Ê´Â´Ù´Â °ÍÀÌ´Ù. ´Ü disk failure°¡ ¹ß»ýÇÏ¿© ÀÚµ¿À¸·Î hot spares¿¡ ÀÖ´ø disk¸¦ spare·Î »ç¿ëÇÏ°í ³ªÁß¿¡ »õ·Î¿î disk¸¦ ±³Ã¼ÇÑ ÈÄ spare·Î »ç¿ëÇß´ø disk¸¦ hot spare·Î »¬¶§¿¡´Â detach ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.
¡Ø RAID-Z : Æи®Æ¼°¡ 1(raidz), 2(raidz2), 3(raidz3) À¸·Î Æи®Æ¼¹æ½ÄÀ» »ç¿ëÇÏ¿© ¸¸µé¼öÀÖ´Ù.
RAID-Z ±¸¼ºÀº µð½ºÅ© °ø°£À» ÃÖ´ëÈÇϸç ÀϹÝÀûÀ¸·Î µ¥ÀÌÅÍ°¡ Å«(128KÀÌ»ó) ¾²°í ÀÐÀ»¶§ ¼º´ÉÀÌ Çâ»óµÈ´Ù. ¼¼°³ÀÇ µð½ºÅ©(2+1)¿¡ ´ÜÀÏ Æи®Æ¼ ±¸¼º(raidz)À» ¸¸µç´Ù.
RAID-2 ±¸¼ºÀº ´õ Çâ»óµÈ µ¥ÀÌÅÍ °¡¿ë¼ºÀ» Á¦°øÇϸç, RAID-Z¿Í ºñ½ÁÇÑ ¼º´ÉÀ» Á¦°øÇÑ´Ù. RAID-2´Â RAID-Z¶Ç´Â ¾ç¹æÇ⠹̷¯¿¡ ºñÇØ »ó´çÈ÷ Çâ»óµÈ MTTD(Mean Time To Data Loss)¸¦ Á¦°øÇϸç 6(4+2)°³ÀÇ µð½ºÅ©¿¡ ÀÌÁß Æи®Æ¼(raida2) ±¸¼ºÀ» ¸¸µç´Ù.
RAID-3 ±¸¼ºÀº µð½ºÅ© °ø°£À» Ãë´ëÈÇϸç, ¼¼°³ÀÇ µð½ºÅ© ¿À·ù¸¦ °ßµô¼ö ÀÖÀ¸¹Ç·Î ¶Ù¾î³ °¡¿ë¼ºÀ» Á¦°øÇϸç 8°³ÀÇ µð½ºÅ©(5+3)¿¡ »ïÁß Æи®Æ¼(raidz3) ±¸¼ºÀ» ¸¸µç´Ù.
# zpool create storage raidz -f sdb sdc sdd sde
# zpool status
pool: storage
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
VM_DISK_IMG ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
DISK : 240G * 4
¿ë·® : 3 / (240G * N)
VM_DISK_IMG zfs 654G 128K 654G 1% /storage