Q:
RAID´Â µ¥ÀÌÅÍ ¼Õ½ÇÀ» ¸·¾ÆÁÙ ¼ö ÀÖ´Ù, ÇÏÁö¸¸, ½Ã½ºÅÛÀ» ¼Õ»ó¾øÀÌ
°¡´ÉÇÑ ¿À·¡ ÄѳõÀ» ¼ö Àִ°¡?
RAID can help protect me against data loss. But how can I also
ensure that the system is up as long as possible, and not prone
to breakdown? Ideally, I want a system that is up 24 hours a
day, 7 days a week, 365 days a year.
A:
°í °¡¿ë¼º(High-Availability)Àº Á» ´õ ¾î·Æ°í ºñ½Ñ °ÍÀÌ´Ù.
¾Æ·¡ÀÇ hint¿Í tip, »ý°¢, ¼Ò¹®ÀÌ ±× ¹®Á¦¿¡ ´ëÇؼ µµ¿ÍÁÙ °ÍÀÌ´Ù.
- °°Àº IDE ¸®º» ÄÉÀÌºí¿¡ ¿¬°áµÈ µð½ºÅ©Áß Çϳª¿¡ ¿À·ù°¡ ³ª¸é,
µð½ºÅ© µÎ°³°¡ ¸ðµÎ ¸Á°¡Áø °ÍÀ¸·Î ÀÎ½ÄµÉ °ÍÀÌ´Ù.
ÇϳªÀÇ IDE ÄÉÀÌºí¿¡´Â ÇϳªÀÇ µð½ºÅ©¸¸À» »ç¿ëÇضó.
- SCSI chain ¿ª½Ã ÇϳªÀÇ ¿À·ùµð½ºÅ©°¡ ¸ðµç µð½ºÅ©¿¡
Á¢±Ù ¸øÇÏ°Ô ÇÒ°ÍÀÌ´Ù. °°Àº SCSI chain¿¡ °°Àº RAID ½Ã½ºÅÛÀÇ
µð½ºÅ©µéÀ» µÎÁö ¸»¾Æ¶ó.
- µð½ºÅ© ÄÜÆ®·Ñ·¯µµ ¿ª½Ã ¿©·¯°³¸¦ »ç¿ëÇ϶ó.
- ¸ðµç µð½ºÅ©¸¦ °°Àº ȸ»ç, °°Àº ¸ðµ¨·Î ¾²Áö ¸»¾Æ¶ó.
µð½ºÅ©µéÀÌ ¹°¸®ÀûÀÎ Ãæ°ÝÀ» ¹ÞÀ» °æ¿ì Á» ´õ ¾ÈÀüÇÒ °ÍÀÌ´Ù.
- CPU³ª ÄÜÆ®·Ñ·¯ÀÇ ½ÇÆÐÇÒ °æ¿ì¿¡ ´ëºñÇؼ SCSI¸¦ µÎ°³ÀÇ ÄÄÇ»ÅÍ¿Í
¿¬°áµÇ´Â "twin-tailed" »óÅ·Π¼³Á¤ÇÒ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
(¾Æ·¡ ¿ø¹®À» Âü°í ÇϽñæ.. -.-; ÂÁ.)
- Ç×»ó UPS¸¦ »ç¿ëÇÏ°í shutdownÀ» Ç϶ó.
- SCSI ÄÉÀ̺íÀº ¸Å¿ì ±î´Ù·Ó°í, ¹®Á¦°¡ µÇ±â ½¬¿î °ÍÀ¸·Î ¾Ë·ÁÀú ÀÖ´Ù.
»ì ¼ö ÀÖ´Â °¡Àå ÁÁÀº ÁúÀÇ ÄÉÀ̺íÀ» »ç¿ëÇضó.
- SSI (Serial Storage Architecture) ¸¦ º¸°í ´Ù¼Ò ºñ½Î´õ¶óµµ
¾ÈÀüÇÏ´Ù°í ¾Ë·ÁÁø Á¦Ç°À» »ç¿ëÇضó.
- Áñ°Ü¶ó, ¸Á°¡Áö´Â °ÍÀº ´ç½ÅÀÌ »ý°¢ÇÏ´Â °Íº¸´Ù ³ªÁß ÀÏÀÏ °ÍÀÌ´Ù.
High-Availability is difficult and expensive. The harder
you try to make a system be fault tolerant, the harder
and more expensive it gets. The following hints, tips,
ideas and unsubstantiated rumors may help you with this
quest.
- IDE disks can fail in such a way that the failed disk
on an IDE ribbon can also prevent the good disk on the
same ribbon from responding, thus making it look as
if two disks have failed. Since RAID does not
protect against two-disk failures, one should either
put only one disk on an IDE cable, or if there are two
disks, they should belong to different RAID sets.
- SCSI disks can fail in such a way that the failed disk
on a SCSI chain can prevent any device on the chain
from being accessed. The failure mode involves a
short of the common (shared) device ready pin;
since this pin is shared, no arbitration can occur
until the short is removed. Thus, no two disks on the
same SCSI chain should belong to the same RAID array.
- Similar remarks apply to the disk controllers.
Don't load up the channels on one controller; use
multiple controllers.
- Don't use the same brand or model number for all of
the disks. It is not uncommon for severe electrical
storms to take out two or more disks. (Yes, we
all use surge suppressors, but these are not perfect
either). Heat & poor ventilation of the disk
enclosure are other disk killers. Cheap disks
often run hot.
Using different brands of disk & controller
decreases the likelihood that whatever took out one disk
(heat, physical shock, vibration, electrical surge)
will also damage the others on the same date.
- To guard against controller or CPU failure,
it should be possible to build a SCSI disk enclosure
that is "twin-tailed": i.e. is connected to two
computers. One computer will mount the file-systems
read-write, while the second computer will mount them
read-only, and act as a hot spare. When the hot-spare
is able to determine that the master has failed (e.g.
through a watchdog), it will cut the power to the
master (to make sure that it's really off), and then
fsck & remount read-write. If anyone gets
this working, let me know.
- Always use an UPS, and perform clean shutdowns.
Although an unclean shutdown may not damage the disks,
running ckraid on even small-ish arrays is painfully
slow. You want to avoid running ckraid as much as
possible. Or you can hack on the kernel and get the
hot-reconstruction code debugged ...
- SCSI cables are well-known to be very temperamental
creatures, and prone to cause all sorts of problems.
Use the highest quality cabling that you can find for
sale. Use e.g. bubble-wrap to make sure that ribbon
cables to not get too close to one another and
cross-talk. Rigorously observe cable-length
restrictions.
- Take a look at SSI (Serial Storage Architecture).
Although it is rather expensive, it is rumored
to be less prone to the failure modes that SCSI
exhibits.
- Enjoy yourself, its later than you think.