GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
vinum(4) FreeBSD Kernel Interfaces Manual vinum(4)

vinum
³í¸® º¼·ý ¸Å´ÏÀú

kldload vinum kldload Vinum

vinum (Àº)´Â ³í¸® º¼·ý ¸Å´ÏÀúÀÔ´Ï´Ù. Veritas Volume Manager ¿¡ ȯ±âµÇ°í ÀÖ½À´Ï´Ù¸¸ Á÷Á¢ À¯·¡ÇÏ´Â °ÍÀÌ ¾Æ´Õ´Ï´Ù. ÀÌ°ÍÀº ´ÙÀ½°ú °°Àº ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.
  • µð¹ÙÀ̽º¿¡ ÀÇÁ¸ÇÏÁö ¾Ê´Â ³í¸® µð½ºÅ©¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ°ÍÀ» º¼·ý¶ó°í ºÎ¸¨´Ï´Ù. º¼·ýÀº ½Ã½ºÅÛ³»ÀÇ µð½ºÅ©ÀÇ Å©±â¿¡ Á¦ÇѵÇÁö ¾Ê½À´Ï´Ù.
  • º¼·ýÀº 1 °³ ÀÌ»óÀÇ ÇÁ·º½º·ÎºÎÅÍ ±¸¼ºµË´Ï´Ù. °¢ ÇÁ·º½º´Â º¼·ýÀÇ Àüaddress °ø°£À» °¡Áý´Ï´Ù. ÀÌ°ÍÀº RAID-1 (¹Ð·¯)ÀÇ ½ÇÀåÀ» ³ªÅ¸³À´Ï´Ù. º¹¼öÀÇ ÇÁ·º½º¸¦ »ç¿ëÇÏ´Â °ÍÀ¸·Î ÀÌÇÏ¿Í °°Àº È¿°ú°¡ ÀÖ½À´Ï´Ù.
    • Àбâ throughputÀÇ Çâ»ó. vinum (Àº)´Â °¡Àå ¾×¼¼½ºÀÇ ÀûÀº µð½ºÅ©·ÎºÎÅÍ µ¥ÀÌÅ͸¦ Àо¹Ç·Î, º¹¼öÀÇ µð½ºÅ©·ÎºÎÅÍ µÇ´Â ÇÁ·º½º¸¦ °¡Áö´Â º¼·ýÀ̶ó¸é º¸´Ù ¸¹Àº µ¥ÀÌÅ͸¦ º´·Ä¿¡ Àо´Â °ÍÀÌ °¡´ÉÇÕ´Ï´Ù. vinum (Àº)´Â 1 ÇÁ·º½º·ÎºÎÅÍ ¸¶¼Å µ¥ÀÌÅ͸¦ Àоî³À´Ï´Ù¸¸, ¸ðµç ÇÁ·º½º¿¡ ´ëÇؼ­ µ¥ÀÌÅ͸¦ ±âÀÔÇÕ´Ï´Ù.
    • ½Å·Ú¼ºÀÇ Çâ»ó. ´Ù¸¥ µð½ºÅ©»óÀÇ º¹¼öÀÇ ÇÁ·º½º¿¡ °Ý³³ÇÏ´Â °ÍÀ¸·Î½á, ÇÁ·º½º Áß 1 °³°¡ ÀÌ¿ë ºÒ´ÉÀÌ µÇ¾ú´Ù°í Çصµ µ¥ÀÌŸ¸¦ »Ì±â ½ÃÀÛÇÒ ¼ö ÀÖ°ÚÁö¿ä. RAID-5 ÇÁ·º½º (¾Æ·¡¿Í °°ÀÌ ÂüÁ¶)¿Í ºñ±³ÇØ, º¹¼öÀÇ ÇÁ·º½º´Â º¸´Ù ¸¹Àº ½ºÅ丮Áö area¸¦ ÇÊ¿ä·Î ÇÕ´Ï´Ù¸¸, ÆÛÆ÷¸Õ½º°¡ ¿ì¼öÇÕ´Ï´Ù. ƯÈ÷ µå¶óÀÌºê °íÀ嶧ÀÇ Â÷ÀÌ´Â ÇöÀúÇÏ°ÚÁö¿ä.
    • ÀåȲÇÑ ÇÁ·º½º¸¦ ÀÌ¿ëÇØ, ¿Â¶óÀÎ »óÅ µ¥ÀÌÅÍ À籸¼ºÀ» ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾î´À ÇÁ·º½º¸¦ °áÇÕÇØ, °è¼ÓµÇ¾î ³°Àº ÇÁ·º½ºÀÇ 1 °³¸¦ ºÐ¸®ÇÏ´Â °ÍÀ¸·Î½á, ¾×¼¼½º¸¦ ¹æÇØÇÏ´Â ÀÏ ¾øÀÌ ¿Â¶óÀÎÀ¸·Î µ¥ÀÌÅ͸¦ À̵¿ÇÒ ¼ö ÀÖ½À´Ï´Ù.
    • ÀåȲÇÑ ÇÁ·º½º¿¡ ÀÇÇØ, ÀÏ°ü¼ºÀ» °¡Áø ÆÄÀÏ ½Ã½ºÅÛ ´ýÇÁ¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. ÇÁ·º½º¸¦ °áÇÕÇØ, ¾î¶² ½ÃÁ¡¿¡ ºÐ¸®ÇÏ´Â °ÍÀ¸·Î½á, ºÐ¸®µÈ ÇÁ·º½º´Â ºÐ¸®ÇÑ ½ÃÁ¡¿¡ À־ÀÇ ÆÄÀÏ ½Ã½ºÅÛÀÇ Á¤È®ÇÑ snapshot°¡ µË´Ï´Ù.
  • °¢ ÇÁ·º½º´Â, ¼­ºê µð½ºÅ©·Î ºÒ¸®´Â, 1 °³(»ì) ÀÌ»óÀÇ ³í¸® µð½ºÅ© ½½¶óÀ̽º·ÎºÎÅÍ ±¸¼ºµË´Ï´Ù. ¼­ºê µð½ºÅ©´Â ¹°¸® µð½ºÅ©°¡ ¿¬¼ÓÇÑ ºí·ÏÀ¸·Î¼­ Á¤Àǵ˴ϴÙ. ÇÁ·º½º´Â ¸ðµç ÀûÀýÇÑ ¼öÀÇ ¼­ºê µð½ºÅ©·Î ±¸¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. (¹Ù²ã ¸»Çϸé, ÁøÂ¥ Á¦ÇÑÀº ¼­ºê µð½ºÅ©ÀÇ ¼ö´Â ¾Æ´Ï°í ´Ù¸¥ ¿äÀÎ, ¸¹Àº ¼­ºê µð½ºÅ©ÀÇ °ü¸®¿¡ °üÇÑ ¸Þ¸ð¸®³ª ÆÛÆ÷¸Õ½º¶ó°í ÇÑ °ÍÀÔ´Ï´Ù)
  • ¼­ºê µð½ºÅ©¿Í ÇÁ·º½ºÀÇ »çÀÌÀÇ Æí¼º¿¡´Â ¸î°³ÀÇ Á¾·ù°¡ ÀÖ½À´Ï´Ù:
    • ÄÜÄ«Ä¡³×ÀÌƮȭ ÇÁ·º½º´Â 1 °³(»ì) ÀÌ»óÀÇ ¼­ºê µð½ºÅ©·ÎºÎÅÍ µÇ¾î, °¢ ¼­ºê µð½ºÅ© (Àº)´Â ÇÁ·º½ºÀÇ address °ø°£ Áß(¾È)¿¡¼­ ¿¬¼ÓÇÑ ºÎºÐÀ¸·Î¼­ Æí¼ºµË´Ï´Ù.
    • ½ºÆ®¶óÀÌÇÁÈ­ ÇÁ·º½º´Â 2 °³(»ì) ÀÌ»óÀÇ, Å©±âÀÇ µ¿ÀÏÇÑ ¼­ºê µð½ºÅ©·ÎºÎÅÍ µË´Ï´Ù. ÆÄÀÏÀÇ address °ø°£Àº ½ºÆ®¶óÀÌÇÁ¿¡, Áï ¼­ºê µð½ºÅ©ÀÇ Å©±âÀÇ Á¤¼ö ºÐÀÇ 1 ¿¡, ´ëÀÀ ºÙÀÏ ¼ö ÀÖ½À´Ï´Ù. ¿¬¼ÓÇÑ ÇÁ·º½º¾Æµå·¹½º�ó�Ô¿¡´Â, °¢ ¼­ºê µð½ºÅ©ÀÇ ½ºÆ®¶óÀÌÇÁ°¡ Â÷·Ê·Î ´ëÀÀ ºÙÀÏ ¼ö ÀÖ½À´Ï´Ù. ½ºÆ®¶óÀÌÇÁÈ­ ÇÁ·º½ºÀÇ ¼­ºê µð½ºÅ©´Â ¸ðµÎ °°Àº Å©±âÀÏ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
    • RAID-5 ÇÁ·º½º¿¡´Â Å©±âÀÇ µ¿ÀÏÇÑ ¼­ºê µð½ºÅ©°¡, Àû¾îµµ 3 °³(»ì)Àº ÇÊ¿äÇÕ´Ï´Ù. ÀÌ°ÍÀº ½ºÆ®¶óÀÌÇÁÈ­ ÇÁ·º½º¸¦ ´à¾Æ ÀÖ½À´Ï´Ù¸¸, °¢ ½ºÆ®¶óÀÌÇÁ Áß(¾È)¿¡¼­ 1 °³ÀÇ ¼­ºê µð½ºÅ© ÇÏÁö¸¸ Æи®Æ¼ Á¤º¸¸¦ °¡Áö°í ÀÖ´Â Á¡ÀÌ ´Ù¸¨´Ï´Ù. Æи®Æ¼ Á¤º¸¸¦ °¡Áö´Â ¼­ºê µð½ºÅ©´Â ½ºÆ®¶óÀÌÇÁ¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. 1 ¹ø°ÀÇ ½ºÆ®¶óÀÌÇÁ¿¡¼­´Â 1 ¹ø°ÀÇ ¼­ºê µð½ºÅ©, 2 ¹ø°ÀÇ ½ºÆ®¶óÀÌÇÁ¿¡¼­´Â 2 ¹ø°ÀÇ ¼­ºê µð½ºÅ© ¿Í °°ÀÌ µË´Ï´Ù. ´ÜÀÏ µð½ºÅ© °íÀåÀÇ °æ¿ì, vinum (Àº)´Â ³ª¸ÓÁöÀÇ ¼­ºê µð½ºÅ©¿¡ °Ý³³µÇ°í ÀÖ´Â Á¤º¸·ÎºÎÅÍ µ¥ÀÌÅ͸¦ º¹¿øÇÕ´Ï´Ù. ÀÌ Æí¼ºÀº ÀбⰡ ÁýÁßÇÏ´Â ¾×¼¼½º¿¡ Ưº°È÷ ÇâÇÏ°í ÀÖ½À´Ï´Ù. RAID-5 ÇÁ·º½ºÀÇ ¼­ºê µð½ºÅ©´Â ¸ðµÎ °°Àº Å©±âÀÏ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
  • µå¶óÀ̺ê (Àº)´Â ½ºÅ丮Áö °èÃþ Áß(¾È)¿¡¼­ °¡Àå Àú·¹º§ÀÎ ¹°°ÇÀÔ´Ï´Ù. ÀÌ°ÍÀº µð½ºÅ© Ư¼ö µð¹ÙÀ̽º¸¦ ³ªÅ¸³À´Ï´Ù.
  • vinum (Àº)´Â ÀÚµ¿ ±âµ¿ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. Åë»óÀÇ UNIX ÆÄÀÏ ½Ã½ºÅÛ°ú ´Þ¸®, vinum º¼·ý³»¿¡ ¸ðµç ¼³Á¤ Á¤º¸¸¦ °¡Áö°í ÀÖ±â (À§ÇØ)¶§¹®¿¡, ÇϺÎÁ¶Á÷ÀÌ ÀÌ¿ë °¡´ÉÇÏ°Ô µÇ¾úÀ» ¶§¿¡ ¿Ã¹Ù¸£°Ô ±âµ¿ÇÏ´Â °ÍÀ» ÇÁ·ÎÅؼÇÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ Á¡ÀÌ Veritas™ File System ¿¡ ´ëÇÑ Áß¿äÇÑ ÀÌÁ¡À̱⵵ ÇÕ´Ï´Ù. ÀÌ ±â´ÉÀº º¼·ýÀÇ Á¸À縦 °ËÃâÇÕ´Ï´Ù. ÀÌ°ÍÀº, º¼·ýÀ» ÀÚµ¿ÀûÀ¸·Î mount ÇÑ´Ù°í ÇÏ´Â Àǹ̰¡ ¾Æ´Õ´Ï´Ù. mount¸¦ ½ÇÇàÇÏ´Â °ÍÀº, Åë»óÀÇ /etc/fstab ¿¡ ÀÇÇÑ ±âµ¿ ¼ø¼­ÀÔ´Ï´Ù.

vinum (Àº)´Â ÇöÀç Ä¿³Î ·Îµå °¡´É ¸ðµâ (kld)·Î¼­ Á¦°øµÇ°í ÀÖ¾î Ä¿³ÎÀÇ ¼³Á¤Àº ºÒÇÊ¿äÇÕ´Ï´Ù. ´Ù¸¥ kld ¿Í °°ÀÌ, kld ´Â OS ÀÇ ¹öÁ¯°ú Àý´ë·Î ÀûÇÕÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é vinum (Àº)´Â ¿¡·¯ ¸Þ¼¼Áö¸¦ Ãâ·ÂÇØ Á¾·áÇÏ°ÚÁö¿ä.
vinum ¿¡´Â ÇöÀç 2 °³ÀÇ ¹öÁ¯ÀÌ ÀÖ½À´Ï´Ù. ±×°ÍÀº, RAID-5 ±â´ÉÀ» °¡ÁöÁö ¾Ê´Â ÀÚÀ¯·Ó°Ô ÀÔ¼ö °¡´ÉÇÑ ¹öÁ¯°ú RAID-5 ÀÇ ±â´ÉÀ» °¡Áö´Â ¿ÏÀüÇÑ ¹öÁ¯ÀÔ´Ï´Ù. ¿ÏÀüÇÑ ¹öÁ¯Àº Cybernet Systems Inc. (http://www.cybernet.com)(À¸)·ÎºÎÅÍ ÀÔ¼ö °¡´ÉÇÕ´Ï´Ù.

Åë»ó, ¼³Á¤µÈ ¹öÁ¯ÀÇ vinum (À»)¸¦ ºÎÆ®½Ã¿¡ ±âµ¿½Ãŵ´Ï´Ù. /etc/rc.conf ¾ÈÀÇ º¯¼ö vinum_drives ¿¡ vinum µå¶óÀ̺갡 ³õ¿©Á® ÀÖ´Â ½½¶óÀ̽º¸¦ ¼³Á¤ÇÕ´Ï´Ù. ¿¹¸¦ µé¸é, vinum µå¶óÀ̺갡 /dev/da1h, /dev/da2h, /dev/da3h, /dev/da4h, /dev/da5h ¿¡ ÀÖ´Ù°í Çϸé(ÀÚ), ÀÌ º¯¼ö¸¦ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÕ´Ï´Ù.
vinum_drives="/dev/da1 /dev/da2 /dev/da3 /dev/da4 /dev/da5"

ÀÚÀ¯·Ó°Ô ÀÔ¼ö °¡´ÉÇÑ ¹öÁ¯ÀÇ vinum kld ´Â /modules/vinum.ko (À̾î)¿©, RAID-5 ¹öÁ¯ÀÇ kld ´Â /modules/Vinum.o ÀÔ´Ï´Ù. ¸ðµâÀ» ·ÎµåÇÏ·Á¸é ´ÙÀ½ÀÇ ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù:
# kldload vinum
¶Ç vinum(8) (Àº)´Â ·ÎµåµÇ¾î ÀÖÁö ¾ÊÀ¸¸é kld ¸ðµâÀ» ÀÚµ¿ÀûÀ¸·Î ·ÎµåÇÕ´Ï´Ù.
vinum (À»)¸¦ ·ÎµåÇÑ ÈÄ, ¼³Á¤À» ½ÇÇàÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ¹ú½á ÀνºÅçÀÌ ³¡³ª ÀÖÀ¸¸é, ´ÙÀ½ÀÇ ¸í·É¿¡ ÀÇÇØ, Á¸ÀçÇÏ´Â µð½ºÅ© ÁýÇÕÀ¸·ÎºÎÅÍ ¼³Á¤À» Àоî³À´Ï´Ù.
# vinum read /dev/da1 /dev/da2 /dev/da3 /dev/da4 /dev/da5 /dev/da6
ÀÌ ¸í·É¿¡¼­´Â vinum ¿¡ ÀÇÇØ »ç¿ëµÇ´Â ¸ðµç µð¹ÙÀ̽º¸¦ ÁöÁ¤ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. vinum(8) (Àº)´Â, ÃÖ½ÅÀÇ ¼³Á¤ ÆÄÀÏÀ» »ç¿ëÇØ, ¼³Á¤À» µð¹ÙÀ̽ºº¸´Ù Àоî³À´Ï´Ù. °è¼ÓÇØ, º¸´Ù ³°Àº ¼³Á¤À¸·ÎºÎÅÍ ¾òÀ» ¼ö ÀÖ´ø Ãß°¡ Á¤º¸°¡ ÀÖÀ¸¸é, ¼³Á¤À» °»½ÅÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ¸í·ÉÀº Åë»ó, ±âµ¿ ÆÄÀÏ /etc/rc ¿¡ ÆĹ¯È÷°í ÀÖ½À´Ï´Ù.
vinum ¼³Á¤À» ÀÛ¼ºÇÏ´Â ¹æ¹ý¿¡ ´ëÇؼ­´Â vinum(8) (À»)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
kld ¸¦ ¾ð·ÎµåÇÏ·Á¸é , ¿ì¼± kldstat ±×¸®°í Id Çʵ带 ã½À´Ï´Ù.
# kldstat 
Id Refs Address    Size     Name 
 1    2 0xf0100000 1c7de8   kernel 
 2    1 0xf0f5b000 b0000    Vinum.ko
¸ðµâÀ» ¾ð·ÎµåÇÏ·Á¸é kldunload (À»)¸¦ »ç¿ëÇÕ´Ï´Ù:
# kldunload -n Vinum
kld ¸¦ ¾ð·ÎµåÇÒ ¼ö ÀÖ´Â °ÍÀº ¾ÆÀ̵¹Áß, ¹Ù²ã ¸»Çϸé(ÀÚ) º¼·ýÀÌ mount µÇÁö ¾Ê°í, ´Ù¸¥ vinum ÇÁ·Î±×·¥ÀÇ ÀνºÅϽº°¡ ¾×ƼºêÇÏÁö ¾ÊÀ» ¶§¸¸ÀÔ´Ï´Ù. kld ÀÇ ¾ð·Îµå´Â º¼·ý³»ÀÇ µ¥ÀÌÅ͸¦ Æı«ÇÏÁö ¾Ê½À´Ï´Ù.

vinum ¿ÀºêÁ§Æ®ÀÇ ¼³Á¤°ú ±âµ¿¿¡´Â, vinum(8) À¯Æ¿¸®Æ¼¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä.

ioctl È£ÃâÀº vinum ¼³Á¤ ÇÁ·Î±×·¥¸¸ÀÌ »ç¿ëÇϵµ·Ï(µíÀÌ) ¼³°èµÇ°í ÀÖ½À´Ï´Ù. Çì´õ ÆÄÀÏ /sys/sys/vinumio.h ¿¡ ¼³¸íÀÌ ÀÖ½À´Ï´Ù.

ÀüÅëÀûÀÎ µð½ºÅ© Ư¼ö µð¹ÙÀ̽º´Â µð½ºÅ© label (À»)¸¦ µð¹ÙÀ̽ºÀÇ Á¦ 2 ¼½ÅÍ¿¡ °¡Áö°í ÀÖ½À´Ï´Ù. »ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â disklabel(5) (À»)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. ÀÌ µð½ºÅ© label¿¡´Â µð¹ÙÀ̽º³»ÀÇ ÆÄƼ¼Ç Á¤º¸°¡ ±â¼úµÇ°í ÀÖ½À´Ï´Ù. vinum (Àº)´Â º¼·ýÀ» ÇÑÃþ ´õ ºÐÇÒÇÒ °ÍÀº ¾ø±â ¶§¹®¿¡, º¼·ý¿¡´Â ¹°¸® µð½ºÅ© label (ÀÌ)°¡ ¾ø½À´Ï´Ù. Æí¸®À̱⠶§¹®¿¡, vinum ¿¡´Â ioctl È£Ãâ DIOCGDINFO (µð½ºÅ© labelÀÇ Ãëµæ), DIOCGPART (ÆÄƼ¼Ç Á¤º¸ÀÇ Ãëµæ), DIOCWDINFO (ÆÄƼ¼Ç Á¤º¸ÀÇ ±âÀÔ), DIOCSDINFO (ÆÄƼ¼Ç Á¤º¸ÀÇ ¼³Á¤)(ÀÌ)°¡ ½ÇÀåµÇ°í ÀÖ½À´Ï´Ù. DIOCGDINFO ¿Í DIOCGPART ´Â ³»ºÎÀûÀÎ µð½ºÅ© label Á¤º¸¸¦ ÂüÁ¶ÇÕ´Ï´Ù¸¸, ÀÌ°ÍÀº º¼·ý³»¿¡´Â Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. µû¶ó¼­, disklabel(8) ÀÇ -r ¿É¼ÇÀº, »ýÀÇ µð½ºÅ© Á¤º¸¸¦ ÀÐÀ¸¹Ç·Î, ½ÇÆÐÇÏ°ÚÁö¿ä.
ÀϹÝÀûÀ¸·Î, disklabel(8) (Àº)´Â vinum º¼·ý¿¡ ÀÖ¾î À¯¿ëÇÑ È¿°ú´Â ¾ø½À´Ï´Ù. ¸¸¾à µ¿ÀÛ½ÃÅ°¸é(ÀÚ), disklabel ´Â 3 °³ÀÇ ÆÄƼ¼Ç a, b, c ¸¦ Ç¥½ÃÇØ, fstype ¸¦ Á¦¿ÜÇØ À̰͵éÀº °°°Ô µÇ°ÚÁö¿ä. ¿¹¸¦ µé¸é ÀÌÇÏ¿Í °°ÀÌ Ç¥½ÃµË´Ï´Ù:
3 partitions: 
#        size   offset    fstype   [fsize bsize bps/cpg] 
  a:     2048        0    4.2BSD     1024  8192     0   # (Cyl.     0 - 0) 
  b:     2048        0      swap                        # (Cyl.     0 - 0) 
  c:     2048        0    unused        0     0         # (Cyl.     0 - 0)
vinum (Àº)´Â DIOCWDINFO ¿Í DIOCSDINFO ÀÇ ioctl ¸¦ ¹«½ÃÇÕ´Ï´Ù. Áï ¾Æ¹«°Íµµ º¯°æÇÏÁö ¾Ê½À´Ï´Ù. µû¶ó¼­, µð½ºÅ© label¸¦ º¯°æÇÏ·Á°í Çϸé(ÀÚ) ¾Æ¹« Ç¥½Ãµµ ¾ø°Ô ¹«½ÃµÇ°ÚÁö¿ä.

vinum º¼·ýÀº ÆÄƼ¼ÇÀ» °¡ÁöÁö ¾Ê±â ¶§¹®¿¡, º¼·ýÀÇ À̸§¿¡ °üÇؼ­ µð½ºÅ© ÆÄƼ¼ÇÀÇ À̸§ºÎÀÇ Åë»óÀÇ ·ê¿¡ µû¸¦ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ¹°¸® µð½ºÅ© ÆÐƼ¼Ç¿¡ ´ëÇؼ­´Â, µð¹ÙÀ̽º¸íÀÇ ¸¶Áö¸· ij¸¯ÅÍ´Â ÆÄƼ¼Ç ½Äº°ÀÚ (a ·ÎºÎÅÍ h)¸¦ ÁöÁ¤ÇÕ´Ï´Ù. vinum º¼·ýÀº ÀÌ ±ÔÄ¢¿¡ µû¸¦ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ±×·¯³ª µû¸£Áö ¾Ê¾Ò´ø °æ¿ì, newfs ÇÏÁö¸¸ ÆÄƼ¼ÇÀÇ ½Äº°À» ÇÒ ¼ö ¾øÀ¸¸é ºÒÆòÇÏ°ÚÁö¿ä. ÀÌ ¹®Á¦¸¦ ÇØ°áÇÏ·Á¸é newfs ¿¡ ´ëÇؼ­ -v Ç÷¡±×¸¦ ÁöÁ¤ÇØ ÁÖ¼¼¿ä.

vinum (Àº)´Â µðÆúÆ®ÀÇ À̸§À» ÇÁ·º½º¿Í ¼­ºê µð½ºÅ©¿¡ ÇÒ´çÇÕ´Ï´Ù. ÀÌ À̸§À» µ¡¾²±âÇÏ´Â Àϵµ °¡´ÉÇÕ´Ï´Ù. ±×·¯³ª µðÆúÆ®ÀÇ À̸§À» µ¡¾²±âÇÏ´Â °ÍÀº Ãßõ ÇÏÁö ¾Ê½À´Ï´Ù. ¿ÀºêÁ§Æ®¿¡ ÀÓÀÇÀÇ À̸§À» ºÙÀÏ ¼ö ÀÖ´Ù Veritas(tm) volume manager ÀÇ »ç¿ë °æÇèÀ¸·ÎºÎÅÍ Çϸé(ÀÚ), ÀÌ·¯ÇÑ ÀÚÀ¯µµ¿¡ Å« ÀÌÁ¡Àº ¾ø°í, È¥¶õÀ» ÀÏÀ¸Å°°ÚÁö¿ä.
À̸§¿¡´Â °ø¹éÀÌ ¾Æ´Ñ ÀÓÀÇÀÇ Ä³¸¯Å͸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ¿µ¼ýÀÚ¿Í ¾ð´õ½ºÄھ¸¸ Á¦ÇÑÇÏ´Â °ÍÀ» ±ÇÇÕ´Ï´Ù. º¼·ý, ÇÁ·º½º, ¼­ºê µð½ºÅ©ÀÇ À̸§¿¡´Â 64 ij¸¯ÅͱîÁö, ¶Ç µå¶óÀ̺êÀÇ À̸§¿¡´Â 32 ij¸¯ÅͱîÁö »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. º¼·ý°ú ÇÁ·º½ºÀÇ À̸§À» ¼±ÅÃÇÒ ¶§¿¡´Â, ÀÚµ¿ÀûÀ¸·Î »ý¼ºµÇ´Â ÇÁ·º½º¸í°ú ¼­ºê º¼·ý¸íÀÌ, ÀÌ·¯ÇÑ ÀüÀÌ µÇ´Â À̸§º¸´Ù ±æ¾îÁö´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
  • vinum(8) ÇÏÁö¸¸ ¿ÀºêÁ§Æ®¸¦ »ý¼º ¶Ç´Â »èÁ¦Çϸé(ÀÚ), µð·ºÅ丮 /dev/vinum (À»)¸¦ ÀÛ¼ºÇØ, ±× Áß¿¡ vinum °¡ °ËÃâÇÑ °¢ º¼·ý¿¡ ´ëÀÀÇÑ´Ù µð¹ÙÀ̽º ¿£Æ®¸®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ¶Ç, vinum ´Â ¼­ºê µð·ºÅ丮 /dev/vinum/plex (¿Í)°ú /dev/vinum/sd (À»)¸¦ ÀÛ¼ºÇØ, ±× Áß¿¡ ÇÁ·º½º¿Í ¼­ºê µð½ºÅ©¿¡ ´ëÀÀÇÏ´Â µð¹ÙÀ̽º ¿£Æ®¸®¸¦ °Ý³³ÇÕ´Ï´Ù. ´õ¿í, vinum ´Â 2°³ÀÇ µð·ºÅ丮 /dev/vinum/vol (¿Í)°ú /dev/vinum/drive (À»)¸¦ ÀÛ¼ºÇØ, ±× Áß¿¡ º¼·ý°ú µå¶óÀ̺꿡 ´ëÇÑ °èÃþÀûÀÎ Á¤º¸¸¦ °Ý³³ÇÕ´Ï´Ù.
  • UNIX µå¶óÀ̺ê¿Í ´Þ¸®, vinum º¼·ýÀ» ÆÄƼ¼ÇÀ¸·Î ÇÑÃþ ´õ ºÐÇÒÇÏÁö ¾Ê½À´Ï´Ù. µû¶ó¼­ µð½ºÅ© label¸¦ °¡ÁöÁö ¾Ê½À´Ï´Ù. ºÒÇàÇÑ ÀÏ¿¡, ÀÌ°Í¿¡ ´Þ·Á ÀÖ°í ±¸µÎÀΰ¡ÀÇ À¯Æ¿¸®Æ¼, ƯÈ÷ newfs (Àº)´Â È¥¶õÇÕ´Ï´Ù. newfs (Àº)´Â Åë»ó vinum º¼·ý¸íÀÇ ¸¶Áö¸· ij¸¯Å͸¦ ÆÄƼ¼Ç ½Äº°Àڷμ­ Çؼ®ÇÏ·Á°í Çϱ⠶§¹®ÀÔ´Ï´Ù. a (À¸)·ÎºÎÅÍ c ÀÇ Ä³¸¯ÅÍ·Î ³¡³ªÁö ¾Ê´Â ij¸¯ÅÍ ¶óÀÎÀ» º¼·ý¸í¿¡ »ç¿ëÇßÀ» °æ¿ì¿¡´Â, newfs ¿¡ ´ëÇؼ­ -v Ç÷¡±×¸¦ ÁöÁ¤ÇØ ÀÌ ±ÔÄ¢À» ¹«½ÃÇÏ´Â µí newfs ¿¡ Áö½ÃÇÏ´Â °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.
  • ÇÁ·º½º¿¡´Â ¸í½ÃÀûÀ¸·Î À̸§À» ÇÒ´çÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. µðÆúÆ®ÀÇ ÇÁ·º½º À̸§Àº º¼·ý¸í¿¡ ij¸¯ÅÍ ¶óÀÎ .p ¿Í ÇÁ·º½ºÀÇ ¹øÈ£¸¦ °è¼ÓÇÑ °ÍÀÔ´Ï´Ù. ¿¹¸¦ µé¸é, º¼·ý vol3 ÀÇ ÇÁ·º½º´Â vol3.p0, vol3.p1 ±×·¸´Ù°í ÇÏ´Â ½ÄÀ¸·Î À̸§ÀÌ ºÙ¿©Áý´Ï´Ù. ÀÌ À̸§À» µ¡¾²±âÇÏ´Â °ÍÀº °¡´ÉÇÕ´Ï´Ù¸¸ ÃßõÇÏÁö ¾Ê½À´Ï´Ù.
  • ÇÁ·º½º¿Í °°ÀÌ, ¼­ºê µð½ºÅ©¿¡ ´ëÇؼ­µµ ÀÚµ¿ÀûÀ¸·Î À̸§À» ÇÒ´çÇÒ ¼ö ÀÖ¾î ¸í½ÃÀûÀÎ À̸§ºÎ´Â ÃßõÇÏÁö ¾Ê½À´Ï´Ù. ¼­ºê µð½ºÅ©¸íÀº ÇÁ·º½º¸í¿¡ ij¸¯ÅÍ ¶óÀÎ .s ¿Í ¼­ºê µð½ºÅ© (À»)¸¦ ½Äº°ÇÏ´Â ¹øÈ£¸¦ °è¼ÓÇÑ °ÍÀÔ´Ï´Ù. ¿¹¸¦ µé¸é, ÇÁ·º½º vol3.p0 ÀÇ ¼­ºê µð½ºÅ©´Â vol3.p0.s0, vol3.p0.s1 ±×·¸´Ù°í ÇÏ´Â ½ÄÀ¸·Î À̸§ÀÌ ºÙ¿©Áý´Ï´Ù.
  • ÇÑÆí, µå¶óÀ̺ê (Àº)´Â ¹Ýµå½Ã À̸§À» ºÙÀÏ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ, µå¶óÀ̺긦 ´Ù¸¥ Àå¼Ò·Î À̵¿Çß´Ù (ÀÌ)¶ó°í Çصµ ÀÚµ¿ÀûÀ¸·Î ÀνÄÇÏ´Â °ÍÀÌ °¡´ÉÇÏ°Ô µË´Ï´Ù. µå¶óÀÌºê ³×ÀÓÀÇ ±æÀÌ´Â 32 ij¸¯ÅͱîÁöÀÔ´Ï´Ù.
»ç¿ë¿¹
vinum ¿ÀºêÁ§Æ®°¡ vinum(8) ÀÇ ¼³Á¤ ÆÄÀÏ ¿¹ÀÇ ¸¶µð¿¡ ¼³¸íµÇ°í ÀÖ´Â °ÍÀÌ´Ù°í ÇÕ´Ï´Ù. µð·ºÅ丮 /dev/vinum (Àº)´Â ´ÙÀ½°ú °°ÀÌ º¸ÀÌ°ÚÁö¿ä:
# ls -lR /dev/vinum/ /dev/rvinum 
total 5 
brwxr-xr--  1 root  wheel   25,   2 Mar 30 16:08 concat 
brwx------  1 root  wheel   25, 0x40000000 Mar 30 16:08 control 
drwxrwxrwx  2 root  wheel       512 Mar 30 16:08 drive 
drwxrwxrwx  2 root  wheel       512 Mar 30 16:08 plex 
drwxrwxrwx  2 root  wheel       512 Mar 30 16:08 rvol 
drwxrwxrwx  2 root  wheel       512 Mar 30 16:08 sd 
brwxr-xr--  1 root  wheel   25,   3 Mar 30 16:08 strcon 
brwxr-xr--  1 root  wheel   25,   1 Mar 30 16:08 stripe 
brwxr-xr--  1 root  wheel   25,   0 Mar 30 16:08 tinyvol 
drwxrwxrwx  7 root  wheel       512 Mar 30 16:08 vol 
brwxr-xr--  1 root  wheel   25,   4 Mar 30 16:08 vol5 
 
/dev/vinum/drive: 
total 0 
brw-r-----  1 root  operator    4,  15 Oct 21 16:51 drive2 
brw-r-----  1 root  operator    4,  31 Oct 21 16:51 drive4 
 
/dev/vinum/plex: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x10000002 Mar 30 16:08 concat.p0 
brwxr-xr--  1 root  wheel   25, 0x10010002 Mar 30 16:08 concat.p1 
brwxr-xr--  1 root  wheel   25, 0x10000003 Mar 30 16:08 strcon.p0 
brwxr-xr--  1 root  wheel   25, 0x10010003 Mar 30 16:08 strcon.p1 
brwxr-xr--  1 root  wheel   25, 0x10000001 Mar 30 16:08 stripe.p0 
brwxr-xr--  1 root  wheel   25, 0x10000000 Mar 30 16:08 tinyvol.p0 
brwxr-xr--  1 root  wheel   25, 0x10000004 Mar 30 16:08 vol5.p0 
brwxr-xr--  1 root  wheel   25, 0x10010004 Mar 30 16:08 vol5.p1 
 
/dev/vinum/rvol: 
total 0 
crwxr-xr--  1 root  wheel   91,   2 Mar 30 16:08 concat 
crwxr-xr--  1 root  wheel   91,   3 Mar 30 16:08 strcon 
crwxr-xr--  1 root  wheel   91,   1 Mar 30 16:08 stripe 
crwxr-xr--  1 root  wheel   91,   0 Mar 30 16:08 tinyvol 
crwxr-xr--  1 root  wheel   91,   4 Mar 30 16:08 vol5 
 
/dev/vinum/sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000002 Mar 30 16:08 concat.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100002 Mar 30 16:08 concat.p0.s1 
brwxr-xr--  1 root  wheel   25, 0x20010002 Mar 30 16:08 concat.p1.s0 
brwxr-xr--  1 root  wheel   25, 0x20000003 Mar 30 16:08 strcon.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100003 Mar 30 16:08 strcon.p0.s1 
brwxr-xr--  1 root  wheel   25, 0x20010003 Mar 30 16:08 strcon.p1.s0 
brwxr-xr--  1 root  wheel   25, 0x20110003 Mar 30 16:08 strcon.p1.s1 
brwxr-xr--  1 root  wheel   25, 0x20000001 Mar 30 16:08 stripe.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100001 Mar 30 16:08 stripe.p0.s1 
brwxr-xr--  1 root  wheel   25, 0x20000000 Mar 30 16:08 tinyvol.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100000 Mar 30 16:08 tinyvol.p0.s1 
brwxr-xr--  1 root  wheel   25, 0x20000004 Mar 30 16:08 vol5.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100004 Mar 30 16:08 vol5.p0.s1 
brwxr-xr--  1 root  wheel   25, 0x20010004 Mar 30 16:08 vol5.p1.s0 
brwxr-xr--  1 root  wheel   25, 0x20110004 Mar 30 16:08 vol5.p1.s1 
 
/dev/vinum/vol: 
total 5 
brwxr-xr--  1 root  wheel   25,   2 Mar 30 16:08 concat 
drwxr-xr-x  4 root  wheel       512 Mar 30 16:08 concat.plex 
brwxr-xr--  1 root  wheel   25,   3 Mar 30 16:08 strcon 
drwxr-xr-x  4 root  wheel       512 Mar 30 16:08 strcon.plex 
brwxr-xr--  1 root  wheel   25,   1 Mar 30 16:08 stripe 
drwxr-xr-x  3 root  wheel       512 Mar 30 16:08 stripe.plex 
brwxr-xr--  1 root  wheel   25,   0 Mar 30 16:08 tinyvol 
drwxr-xr-x  3 root  wheel       512 Mar 30 16:08 tinyvol.plex 
brwxr-xr--  1 root  wheel   25,   4 Mar 30 16:08 vol5 
drwxr-xr-x  4 root  wheel       512 Mar 30 16:08 vol5.plex 
 
/dev/vinum/vol/concat.plex: 
total 2 
brwxr-xr--  1 root  wheel   25, 0x10000002 Mar 30 16:08 concat.p0 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 concat.p0.sd 
brwxr-xr--  1 root  wheel   25, 0x10010002 Mar 30 16:08 concat.p1 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 concat.p1.sd 
 
/dev/vinum/vol/concat.plex/concat.p0.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000002 Mar 30 16:08 concat.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100002 Mar 30 16:08 concat.p0.s1 
 
/dev/vinum/vol/concat.plex/concat.p1.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20010002 Mar 30 16:08 concat.p1.s0 
 
/dev/vinum/vol/strcon.plex: 
total 2 
brwxr-xr--  1 root  wheel   25, 0x10000003 Mar 30 16:08 strcon.p0 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 strcon.p0.sd 
brwxr-xr--  1 root  wheel   25, 0x10010003 Mar 30 16:08 strcon.p1 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 strcon.p1.sd 
 
/dev/vinum/vol/strcon.plex/strcon.p0.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000003 Mar 30 16:08 strcon.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100003 Mar 30 16:08 strcon.p0.s1 
 
/dev/vinum/vol/strcon.plex/strcon.p1.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20010003 Mar 30 16:08 strcon.p1.s0 
brwxr-xr--  1 root  wheel   25, 0x20110003 Mar 30 16:08 strcon.p1.s1 
 
/dev/vinum/vol/stripe.plex: 
total 1 
brwxr-xr--  1 root  wheel   25, 0x10000001 Mar 30 16:08 stripe.p0 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 stripe.p0.sd 
 
/dev/vinum/vol/stripe.plex/stripe.p0.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000001 Mar 30 16:08 stripe.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100001 Mar 30 16:08 stripe.p0.s1 
 
/dev/vinum/vol/tinyvol.plex: 
total 1 
brwxr-xr--  1 root  wheel   25, 0x10000000 Mar 30 16:08 tinyvol.p0 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 tinyvol.p0.sd 
 
/dev/vinum/vol/tinyvol.plex/tinyvol.p0.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000000 Mar 30 16:08 tinyvol.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100000 Mar 30 16:08 tinyvol.p0.s1 
 
/dev/vinum/vol/vol5.plex: 
total 2 
brwxr-xr--  1 root  wheel   25, 0x10000004 Mar 30 16:08 vol5.p0 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 vol5.p0.sd 
brwxr-xr--  1 root  wheel   25, 0x10010004 Mar 30 16:08 vol5.p1 
drwxr-xr-x  2 root  wheel       512 Mar 30 16:08 vol5.p1.sd 
 
/dev/vinum/vol/vol5.plex/vol5.p0.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20000004 Mar 30 16:08 vol5.p0.s0 
brwxr-xr--  1 root  wheel   25, 0x20100004 Mar 30 16:08 vol5.p0.s1 
 
/dev/vinum/vol/vol5.plex/vol5.p1.sd: 
total 0 
brwxr-xr--  1 root  wheel   25, 0x20010004 Mar 30 16:08 vol5.p1.s0 
brwxr-xr--  1 root  wheel   25, 0x20110004 Mar 30 16:08 vol5.p1.s1 
 
/dev/rvinum: 
crwxr-xr--  1 root  wheel   91,   2 Mar 30 16:08 rconcat 
crwxr-xr--  1 root  wheel   91,   3 Mar 30 16:08 rstrcon 
crwxr-xr--  1 root  wheel   91,   1 Mar 30 16:08 rstripe 
crwxr-xr--  1 root  wheel   91,   0 Mar 30 16:08 rtinyvol 
crwxr-xr--  1 root  wheel   91,   4 Mar 30 16:08 rvol5
ÇÁ·º½º³ª ¼­ºê µð½ºÅ©¸¦ ºÐ¸®ÇßÀ» °æ¿ì¿¡´Â, ÀÌ À̸§Àº ¿¹¾àµÈ ä·Î ÀÖ½À´Ï´Ù. ¼­ºê µð½ºÅ©´Â ±×°ÍÀÌ ¹èÄ¡µÇ°í ÀÖ´Â µð½ºÅ©ÀÇ À̸§À» ¹ÙÅÁÀ¸·Î À̸§ÀÌ ºÙ¿©Á® ÇÁ·º½º´Â ¼­ºê µð½ºÅ©ÀÇ À̸§À» ¹ÙÅÁÀ¸·Î À̸§ÀÌ ºÙ¿©Áö°í ÀÖ½À´Ï´Ù. ÀÌ ´ëÀÀºÎ¿¡°Ô´Â ¾ÆÁ÷ °í·ÁÀÇ ¿©Áö°¡ ÀÖ½À´Ï´Ù.

°¢ vinum ¿ÀºêÁ§Æ®¿¡´Â, ¿ÀºêÁ§Æ®¿¡ °ü·Ã ÁöÀ» ¼ö ÀÖ´ø »óÅ°¡ ÀÖ½À´Ï´Ù. vinum (Àº)´Â ¿ÀºêÁ§Æ®¿¡ ´ëÇÑ Á¶ÀÛÀ» °áÁ¤Çϱâ À§Çؼ­(¶§¹®¿¡) ÀÌ »óŸ¦ ÀÌ¿ëÇÕ´Ï´Ù.

º¼·ý¿¡´Â ´ÙÀ½ »óÅ°¡ ÀÖ½À´Ï´Ù.
volume_down
º¼·ýÀÌ ¿ÏÀüÈ÷ ¾×¼¼½º ºÒ´ÉÀÔ´Ï´Ù.
volume_up
º¼·ýÀº ±âµ¿ÇÏ°í ÀÖ¾î, Àû¾îµµ ÀϺδ ±â´ÉÇÏ°í ÀÖ½À´Ï´Ù. ¸ðµç ÇÁ·º½º ÇÏÁö¸¸ ÀÌ¿ë °¡´ÉÇÏ´Ù°í´Â ÇÒ ¼ö ¾ø½À´Ï´Ù.

ÇÁ·º½º¿¡´Â ´ÙÀ½ »óÅ°¡ ÀÖ½À´Ï´Ù.
faulty
ÇÁ·º½º´Â I/O ¿¡·¯¿¡ ÀÇÇØ ¿ÏÀüÇÏ°Ô Á¤ÁöÇÏ°í ÀÖ½À´Ï´Ù.
down
ÇÁ·º½º´Â °ü¸®ÀÚ¿¡ ÀÇÇØ Á¤Áö ´çÇÏ°í ÀÖ½À´Ï´Ù.
initializing
ÇÁ·º½º´Â ÃʱâÈ­ÁßÀÔ´Ï´Ù.
ÀÌÇÏ »óÅ´Â, ÇÁ·º½ºÀÇ Àû¾îµµ ÀϺδ ±âµ¿ÇÏ°í ÀÖ´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù.
corrupt
ÇÁ·º½º¿£Æ®¸®´Â Àû¾îµµ ÀϺδ ±âµ¿ÇÏ°í ÀÖ½À´Ï´Ù. ¸ðµç ¼­ºê µð½ºÅ©°¡ ÀÌ¿ë °¡´ÉÇÏÁö ¾Ê°í, ÀÏ°ü¼ºÀÇ °á¿©°¡ ÀϾ°í ÀÖ½À´Ï´Ù. ¸¸¾à ¸Á°¡ÁöÁö ¾ÊÀº ´Ù¸¥ ÇÁ·º½º°¡ ¾øÀ¸¸é, º¼·ý¿¡´Â ÀÌ¹Ì ÀÏ°ü¼ºÀÌ ¾ø½À´Ï´Ù.
degraded
RAID-5 ÇÁ·º½º¿£Æ®¸®´Â ¾×¼¼½º °¡´ÉÇÕ´Ï´Ù¸¸, 1 °³ÀÇ ¼­ºê µð½ºÅ©°¡ Á¤ÁöÇÏ°í ÀÖ¾î, ¸¹Àº I/O ¿ä±¸¸¦ À§Çؼ­(¶§¹®¿¡)´Â ¼öº¹ÀÌ ÇÊ¿äÇÕ´Ï´Ù.
flaky
ÇÁ·º½º´Â Á¤¸»·Î ±âµ¿ÇÏ°í ÀÖ½À´Ï´Ù¸¸, º¹±¸µÈ ¼­ºê µð½ºÅ©¸¦ °¡Áö°í ÀÖ½À´Ï´Ù. ÀÌ ¼­ºê µð½ºÅ©´Â, ¿ÏÀüÇÏ°Ô ¹ÏÀ» ¼ö ¾ø´Â »óÅÂÀ̸ç, ¸¸¾à ÇÇÇÏ´Â °ÍÀÌ °¡´ÉÇϸé ÀÐ°í ½ÍÁö ¾ÊÀº »óÅÂÀÔ´Ï´Ù.
up
ÇÁ·º½º¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ±âµ¿ÇÏ°í ÀÖ½À´Ï´Ù. ¸ðµç ¼­ºê µð½ºÅ©°¡ ±âµ¿ÇÏ°í ÀÖ½À´Ï´Ù.

¼­ºê µð½ºÅ©¿¡´Â ´ÙÀ½ »óÅ°¡ ÀÖ½À´Ï´Ù.
empty
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©´Â °»½ÅµÇ°í ÀÖ½À´Ï´Ù¸¸, µð½ºÅ©»ó¿¡ µ¥ÀÌÅÍ´Â ¾ø½À´Ï´Ù.
initializing
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾î ÇöÀç ÃʱâÈ­ÁßÀÔ´Ï´Ù.
ÀÌÇÏ »óÅ´Â, ¹«È¿ÀÎ µ¥ÀÌÅ͸¦ ³ªÅ¸³À´Ï´Ù.
obsolete
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©»óÀÇ ¼³Á¤Àº °»½ÅµÇ¾î µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù¸¸, µå¶óÀ̺갡 Á¤Áö ´çÇÏ°í ÀÖ¾î ±× °á°ú °»½Å¿¡ ½ÇÆÐÇÏ°í ÀÖ½À´Ï´Ù.
stale
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©´Â °»½ÅµÇ¾î µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù¸¸, µå¶óÀ̺갡 °íÀ峪°í ÀÖ¾î °»½ÅÀÌ ¾ø¾îÁö°í ÀÖ½À´Ï´Ù.
ÀÌÇÏ »óÅ´Â, À¯È¿ÇÏÁö¸¸ ¾×¼¼½º ÇÒ ¼ö ¾ø´Â µ¥ÀÌÅ͸¦ ³ªÅ¸³À´Ï´Ù.
crashed
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©´Â °»½ÅµÇ¾î µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù¸¸, µå¶óÀ̺갡 Á¤ÁöÇÏ°í ÀÖ½À´Ï´Ù. °íÀåÀÇ µÚ¼­ºê µð½ºÅ©¿¡ÀÇ ±âÀÔÀº ÇàÇØÁöÁö ¾Ê°í, ±× ¶§¹®¿¡ µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù.
down
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ±âµ¿ÇÏ°í ÀÖ¾î, À¯È¿ÇÑ µ¥ÀÌÅ͸¦ °¡Á®, °ü¸®ÀÚ¿¡ ÀÇÇØ Á¤Áö ´çÇÏ°í ÀÖ½À´Ï´Ù. µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù.
reviving
¼­ºê µð½ºÅ©´Â ÇöÀç restore ÀÛ¾÷ÁßÀÔ´Ï´Ù. ±âÀÔÀº °¡´ÉÇÕ´Ï´Ù¸¸, Àбâ´Â ÇÒ ¼ö ¾ø½À´Ï´Ù.
ÀÌÇÏ »óÅ´Â, À¯È¿ÇÑ µ¥ÀÌÅ͸¦ °¡Áö´Â ¾×¼¼½º °¡´ÉÇÑ ¼­ºê µð½ºÅ©¸¦ ³ªÅ¸³À´Ï´Ù.
reborn
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©´Â °»½ÅµÇ¾î µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù¸¸, µå¶óÀ̺갡 Á¤ÁöÇÑ ÈÄ ´Ù½Ã ±âµ¿ÇÑ »óÅÂÀÔ´Ï´Ù. °»½ÅÀº ÀüÇô ¾ø¾îÁö°í ÀÖÁö ¾Ê½À´Ï´Ù¸¸, ¼­ºê µð½ºÅ©°¡ ¼Õ»óÇÏ°í ÀÖÀ» °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù. ¼±ÅÃÀÇ ¿©Áö°¡ ÀÖÀ¸¸é ÀÌ ¼­ºê µð½ºÅ©·ÎºÎÅÍÀÇ Àбâ´Â ½Ç½ÃÇÏÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. ¸¸¾à ÀÌ ¼­ºê µð½ºÅ©°¡ ÇÁ·º½º³»¿¡¼­ ÇØ´çÇÏ´Â address °ø°£À» Ä¿¹öÇÏ´Â À¯ÀÏÇÑ ¼­ºê µð½ºÅ©¿´´ø °æ¿ì, ±×·¯ÇÑ »óȲÇÏ¿¡¼­´Â ¼­ºê µð½ºÅ© »óŸ¦ up ·Î ¼³Á¤ ÇÕ´Ï´Ù. µû¶ó¼­ ÀÌ »óÅ´Â, Àб⠿䱸¸¦ ä¿ì´Â ´Ù¸¥ ¼­ºê µð½ºÅ©°¡ Á¸ÀçÇÏ´Â °ÍÀ» ÀǹÌÇÕ´Ï´Ù.
up
¼­ºê µð½ºÅ© ¿£Æ®¸®´Â ¿ÏÀüÇÏ°Ô ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¸ðµç Çʵå´Â Á¤»óÀûÀ̾î, µð½ºÅ©´Â °»½ÅµÇ¾î µ¥ÀÌÅÍ´Â À¯È¿ÇÕ´Ï´Ù.

µå¶óÀ̺꿡´Â ´ÙÀ½ »óÅ°¡ ÀÖ½À´Ï´Ù.
down
µå¶óÀ̺ê´Â ¾×¼¼½º ºÒ´ÉÀÔ´Ï´Ù.
up
µå¶óÀ̺ê´Â ±âµ¿ÇÏ°í ÀÖ¾î µ¿ÀÛÁßÀÔ´Ï´Ù.

  1. vinum (Àº)´Â »õ·Î¿î ÇÁ·Î´öÆ®ÀÔ´Ï´Ù. ¸¹Àº ¹ö±×°¡ ÀÖ°ÚÁö¿ä. ¼³Á¤ÀÇ ¸ÞÄ«´ÏÁòÀº ¹Ýµå½Ã ¿ÏÀüÇÏ°Ô´Â µ¿ÀÛÇÏ°í ÀÖÁö ¾Ê½À´Ï´Ù. ¸¸¾à °ï¶õÇϸé(ÀÚ), ¹®Á¦¸¦ º¸°íÇϱâ Àü¿¡ ´ÙÀ½ÀÇ URL ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. http://www.lemis.com/vinum_beta.html ¹× http://www.lemis.com/vinum_debugging.html
  2. vinum ¸ðµâÀ» kldunload ¸í·ÉÀ» »ç¿ëÇØ ¾ð·ÎµåÇÏ´Â °ÍÀÌ °¡´ÉÇÕ´Ï´Ù. ±×·¯³ª ÀÌ Á¶ÀÛ¿¡´Â ¹ö±×°¡ ¸¹¾Æ, ÀÌ Á¶ÀÛÀÌ Á¸ÀçÇÏ´Â ÀÌÀ¯´Â ´ÜÁö ½Ã½ºÅÛÀ» Å×½ºÆ®ÇÏ´Â »ç¶÷ÀÌ Çϱ⠽±°Ô Çϱâ À§ÇÑ(ÇØ) ÀÔ´Ï´Ù. ´ë½Å ¹æ¹ýÀº ¸®ºÎÆ®ÀÔ´Ï´Ù. µ¿ÀÛ È®·üÀº ¾à 80% ÀÔ´Ï´Ù. Áï ¾ð·ÎµåÀÇ 5 ȸ¿¡ 1 ȸ´Â ÆдÐÀÌ µÈ´Ù°í »ý°¢µË´Ï´Ù.
  3. vinum (À»)¸¦ Á¤ÀûÀ¸·Î ¸µÅ© ÇÑ Ä¿³ÎÀ» ±¸ÃàÇÒ ¼öµµ ÀÖ½À´Ï´Ù¸¸, ÀÌ ¹æ¹ýÀº ÀüÇô Å×½ºÆ®µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. ¸¸¾à, vinum ÀÇ»ç µð¹ÙÀ̽º¸¦ Á¤Àû ¸µÅ© ÇÑ »óÅ·Π¹®Á¦°¡ ÀϾÀ» °æ¿ì¿¡¼­µµ kld ¸ðµâ ±×¸®°í ¹®Á¦°¡ ÀçÇöµÇÁö ¾Ê´Â ÀÌ»ó ÀϺη¯ ¹®Á¦¸¦ º¸°íÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä.
  4. RAID-5 ÇÁ·º½º´Â ÃʱâÈ­ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÃʱâÈ­¸¦ ÇÏÁö ¾Ê¾Æµµ, Åë»óÀÇ ¿î¿ëÀÇ ¹æÇطδ µÇÁö ¾Ê½À´Ï´Ù¸¸, µð½ºÅ© Áß 1 °³°¡ °íÀå³µÀ» ¶§¿¡ ÀüüÀÇ Æı«¸¦ ÀÏÀ¸Å°°ÚÁö¿ä. ÀÌ ÃʱâÈ­¸¦ °­Á¦Çϱâ À§ÇÑÀÌ¾ß ÀÖ°í ¹æ¹ý (¶Ç´Â Àú¼ÓÀ̶ó°í Çصµ, Æи®Æ¼ ºí·ÏÀ» À籸Ãà ÇÏ´Â ´ëü ¹æ¹ý) ÇÏÁö¸¸ »ý°¢³ªÁö ¾Ê½À´Ï´Ù. ¹«¾ùÀΰ¡ ÁÁÀº ¾ÆÀ̵ð¾î°¡ ÀÖÀ¸¸é Á¦°øÀ» ȯ¿µÇÕ´Ï´Ù.
  5. Ä¿³Î°ú kld ÀÇ ¹öÁ¯ÀÇ »óÀ§¸¦ °ËÃâÇÏ´Â ±¸Á¶´Â ½ÇÀåµÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.

vinum ¿¡ °üÇÑ ¹®Á¦ÀÇ ÇØ°áÀº ¾î·Á¿î ÀÏÀÏÁöµµ ¸ð¸¨´Ï´Ù. ÀÌ ¸¶µð¿¡¼­´Â ¸î°³ÀÇ Á¢±Ù (À»)¸¦ ¼Ò°³ÇÕ´Ï´Ù.

vinum ÀÇ ¼³Á¤Àº, ºñ±³Àû (¸Å¿ì) ¹®Á¦¿¡ ºÎµúÄ¡±â ½±´Ù°í ¸»ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹®Á¦°¡ ÀϾ¸é(ÀÚ), ¿ì¼± ½Ç½ÃÇØ¾ß ÇÑ´Ù (ÀÏ)°ÍÀº ¼³Á¤ Á¤º¸ÀÇ °»½ÅÀ» ´ÙÀ½°ú °°ÀÌ ÇØ ¸ØÃß´Â °ÍÀÔ´Ï´Ù.
# vinum setdaemon 4
ÀÌ°Í¿¡ ÀÇÇØ °»½Å°ú µð½ºÅ©»óÀÇ ¼³Á¤ÀÇ ÇÑÃþ ´õ Æı«¸¦ ¸ØÃß°ÚÁö¿ä.
´ÙÀ½¿¡, µð½ºÅ©»óÀÇ ¼³Á¤À» È®ÀÎÇÕ´Ï´Ù. Bourne ŸÀÔÀÇ ½©·Î ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
# rm -f log 
# for i in /dev/da0s1h /dev/da1s1h /dev/da2s1h /dev/da3s1h; do 
>    (dd if=/dev/da1h skip=8 count=6|tr -d '\000-\011\200-\377'; echo) >> log 
>  done
µð¹ÙÀ̽ºÀÇ À̸§Àº, ¸ðµç vinum ½½¶óÀ̽ºÀÇ À̸§ÀÔ´Ï´Ù. ±×·¸´Ù¸é, log ÆÄÀÏ¿¡´Â ´ÙÀ½°ú °°Àº ³»¿ëÀÌ µé¾î°¡ ÀÖÀ» °ÍÀÔ´Ï´Ù.
IN VINOpanic.lemis.comdrive1}6E7~^K6T^Yfoovolume obj state up 
volume src state up 
volume raid state down 
volume r state down 
volume foo state up 
plex name obj.p0 state corrupt org concat vol obj 
plex name obj.p1 state corrupt org striped 128b vol obj 
plex name src.p0 state corrupt org striped 128b vol src 
plex name src.p1 state up org concat vol src 
plex name raid.p0 state faulty org disorg vol raid 
plex name r.p0 state faulty org disorg vol r 
plex name foo.p0 state up org concat vol foo 
plex name foo.p1 state faulty org concat vol foo 
sd name obj.p0.s0 drive drive2 plex obj.p0 state reborn len 409600b driveoffset 265b plexoffset 0b 
sd name obj.p0.s1 drive drive4 plex obj.p0 state up len 409600b driveoffset 265b plexoffset 409600b 
sd name obj.p1.s0 drive drive1 plex obj.p1 state up len 204800b driveoffset 265b plexoffset 0b 
sd name obj.p1.s1 drive drive2 plex obj.p1 state reborn len 204800b driveoffset 409865b plexoffset 128b 
sd name obj.p1.s2 drive drive3 plex obj.p1 state up len 204800b driveoffset 265b plexoffset 256b 
sd name obj.p1.s3 drive drive4 plex obj.p1 state up len 204800b driveoffset 409865b plexoffset 384b
ÃÖÃÊÀÇ ÇàÀº vinum label¸¦ Æ÷ÇÔÇÏ°í ÀÖ¾î IN VINO ±×·¸´Ù°í ÇÏ´Â ÅؽºÆ®·Î ½ÃÀ۵Ǿî ÀÖÀ» ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ Çà¿¡´Â ½Ã½ºÅÛÀÇ À̸§µµ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. Á¤È®ÇÑ Á¤ÀÇ´Â /usr/src/sys/dev/vinum/vinumvar.h ¿¡ ±âÀçµÇ¾î ÀÖ½À´Ï´Ù. º¸Á¸µÈ ¼³Á¤Àº ÀÌ ÇàÀÇ µµÁߺÎÅÍ volume obj state up ±×·¸´Ù°í ÇÏ´Â ÅؽºÆ®·Î ½ÃÀ۵Ǿî ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº µð½ºÅ©ÀÇ ¼½ÅÍ 9 ·ÎºÎÅÍ ½ÃÀ۵Ǿî ÀÖ½À´Ï´Ù. ±× ÀÌÈÄÀÇ Ãâ·ÂÀº µð½ºÅ©»óÀÇ ¼³Á¤ÀÇ ³ª¸ÓÁöÀÇ ºÎºÐÀ» ³ªÅ¸³»°í ÀÖ½À´Ï´Ù. ¾î¼¸é ¸ðµç ¼³Á¤À» º¸±â À§Çؼ­(¶§¹®¿¡)´Â, dd ¸í·ÉÀÇ count ÀÇ Àμö¸¦ ´Ã¸± ÇÊ¿ä°¡ ÀÖÀ»Áöµµ ¸ð¸¨´Ï´Ù.
¸ðµç µð½ºÅ©»óÀÇ ¼³Á¤Àº °°´Ù¶ó°í ÇÏ´Â °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì¿¡´Â, log ÆÄÀÏÀÇ Á¤È®ÇÑ ³»¿ë°ú ÇÔ²² ¹®Á¦¸¦ º¸°íÇØ ÁÖ¼¼¿ä. µð½ºÅ©»óÀÇ ¼³Á¤À» ȸº¹Çϱâ À§Çؼ­ ÇÒ ¼ö ÀÖ´Â °ÍÀº ¾Æ¸¶ °ÅÀÇ ¾øÀ» °ÍÀÔ´Ï´Ù°¡, ¸¸¾à ¿ÀºêÁ§Æ®¸¦ »ý¼ºÇßÀ» ¶§¿¡ »ç¿ëÇÑ ÆÄÀÏÀÇ Ä«ÇǸ¦ º¸Á¸µÇ¾î ÀÖÀ¸¸é, ¿ÀºêÁ§Æ®¸¦ Àç»ý¼ºÇÒ ¼ö ÀÖ°ÚÁö¿ä. create ¸í·ÉÀº ¼­ºê µð½ºÅ©ÀÇ µ¥ÀÌÅ͸¦ º¯°æÇÏÁö ¾Ê±â ¶§¹®¿¡, ÀÌ Ä¿¸àµå´Â µ¥ÀÌÅÍÀÇ Æı«¸¦ ÀÏÀ¸Å°Áö ¾Ê½À´Ï´Ù. ÀÌ·± Á¾·ùÀÇ ¹®Á¦¸¦ ¸¸³µÀ» °æ¿ì¿¡´Â, resetconfig ¸í·ÉÀ» »ç¿ëÇÒ ÇÊ¿ä°¡ ÀÖÀ»Áöµµ ¸ð¸¨´Ï´Ù.

vinum ¿¡ À¯·¡ÇÑ´Ù°í »ý°¢µÇ´Â ÆдÐÀ» Çؼ®ÇÏ·Á¸é , µð¹ö±×¿ë Ä¿³ÎÀ» ±¸ÃàÇÒ ÇÊ¿ä (ÀÌ)°¡ ÀÖ½À´Ï´Ù. µð¹ö±×¿ë Ä¿³ÎÀÇ ±¸ÃàÀÇ »ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â, ¿Â¶óÀÎ ÇÚµåºÏ (À»)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. vinum Ä¿³Î ·Îµå °¡´É ¸ðµâÀÇ ½Éº¼ Á¤º¸¸¦ ¾òÀ¸·Á¸é , ´õ¿í ÀÛ¾÷ÀÌ ÇÊ¿äÇÕ´Ï´Ù.
  1. °¡´ÉÇϸé, µð¹ö±× Ä¿³ÎÀÇ Ä«ÇÇ ¶Ç´Â ¸µÅ©¸¦ /var/crash/kernel.gdb ¿¡ ÀÛ¼ºÇÕ´Ï´Ù. ÀÌ°ÍÀº gdb ÀÇ ÃʱâÈ­ ÆÄÀÏÀÌ ÀÌ Á¤µµÄ¡¸¦ °Ë»öÇϱ⠶§¹®ÀÔ´Ï´Ù.
  2. vinum ¸ðµâÀ» µð¹ö±× Á¤º¸¿Í ÇÔ²² ±¸ÃàÇÏ°í ÀÖ´Â °ÍÀ» È®ÀÎÇսôÙ. Åë»óÀÇ Makefile À̸é, ÀÌ°ÍÀº µðÆúÆ®ÀÇ ¼³Á¤ÀÔ´Ï´Ù.
  3. vinum °³½Ã ÈÄ, ´ÙÀ½ÀÇ ¸í·ÉÀ» ½ÇÇàÇսôÙ:
    echo add-symbol-file /modules/vinum.ko \ 
      0x`objdump --section-headers /modules/vinum.ko \ 
      | grep ' .text' \ 
      | awk '{print $4}'`+`kldstat \ 
      | grep vinum | awk '{print $3}'`
        
    ÀÌ°ÍÀ» ÆÄÀÏ¿¡ °Ý³³ÇØ, ½ÇÇà °¡´ÉÇÏ°Ô ÇØ, ½ÇÇàÇÏ´Â °ÍÀÌ °¡Àå °£´ÜÇÕ´Ï´Ù. Ãâ·ÂÀº ´ÙÀ½°ú °°ÀÌ µÇ°ÚÁö¿ä:
    add-symbol-file /modules/vinum.ko 0x00005e24+0xf0f4e000
        
  4. /usr/src/sys/modules/vinum/.gdbinit.crash ÆÄÀÏÀ» ´ç½ÅÀÌ Çؼ®À» ½ÇÇàÇÏ°í ½ÍÀº µð·ºÅ丮 (¿¹¸¦ µé¸é /var/crash )¿¡ Ä«ÇÇÇØ, .gdbinit ¿¡ À̸§À» ¹Ù²ß´Ï´Ù.
  5. /modules ¿¡ ³õ¿©Á® ÀÖ´Â ¹öÁ¯ÀÇ vinum ÇÏÁö¸¸ ½Éº¼À» Æ÷ÇÔÇÏÁö ¾ÊÀ¸¸é ¿¡·¯ ¸Þ¼¼Áö´Â Ç¥½ÃµË´Ï´Ù¸¸, ½ºÅà Ʈ·¹À̽º´Â ½Éº¼À» Ç¥½ÃÇÏÁö ¾Ê½À´Ï´Ù. gdb (À»)¸¦ ½ÃÀÛÇϱâ Àü¿¡ ¸ðµâÀ» üũÇսôÙ.
    $ file /modules/vinum.ko 
    /modules/vinum.ko: ELF 32-bit LSB shared object, Intel 80386, 
      version 1 (FreeBSD), not stripped
        
    ±× Ãâ·ÂÀÌ /modules/vinum.ko is stripped ¿´´ø °æ¿ì, strip µÇ¾î ÀÖÁö ¾ÊÀº ¹öÁ¯À» ã¾Æ³¾ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. Åë»ó, /usr/obj/sys/modules/vinum/vinum.ko ÀÇ ¾È ( make world (À»)¸¦ ÀÌ¿ëÇØ vinum (À»)¸¦ ±¸ÃàÇßÀ» °æ¿ì) Àΰ¡ /usr/src/sys/modules/vinum/vinum.ko ÀÇ ¾È (ÀÌ µð·ºÅ丮¿¡¼­ vinum (À»)¸¦ ±¸ÃàÇßÀ» °æ¿ì)¿¡ ÀÖ½À´Ï´Ù.
  6. ¸¸¾à µð¹ö±× Ä¿³ÎÀ» /var/crash/kernel.gdb (ÀÌ)¶ó´Â À̸§À¸·Î ÇÏ°í ÀÖÁö ¾ÊÀº °æ¿ì¿¡´Â, .gdbinit (À»)¸¦ ÆíÁýÇØ, ¿Ã¹Ù¸¥ Àå¼Ò¸¦ Áö½ÃÇϵµ·Ï ÇØ ÁÖ¼¼¿ä. ½Ã¸®¾ó Á¢¼ÓÀ» ÅëÇØ ¸®¸ðÆ® µð¹ö±×¸¦ ÇÏ°í ÀÖ´Â °æ¿ì¿¡´Â, /usr/src/sys/modules/vinum/.gdbinit.crash ÆÄÀÏÀ» .gdbinit (ÀÌ)¶ó´Â À̸§À¸·Î µð¹ö±×¸¦ ½ÇÇàÇÏ°í ÀÖ´Â µð·ºÅ丮¿¡ Ä«ÇÇÇØ, ´ÙÀ½ÀÇ ¸í·É·Î ±âµ¿ÇØ ÁÖ¼¼¿ä.
    gdb -k
        
    gdb (Àº)´Â ÀÚµ¿ÀûÀ¸·Î Á¢¼ÓÀ» È®¸³ÇÕ´Ï´Ù. ¸®¸ðÆ® ¸Ó½ÅÀº ±× ½ÃÁ¡¿¡¼­ gdb ÇÏÁö¸¸ µ¿ÀÛÁßÀÌ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. ÀÌ .gdbinit ÆÄÀÏÀº ½Ã¸®¾ó Á¢¼ÓÀÌ 38400 bps ·Î µ¿ÀÛÇÏ´Â °ÍÀ̶ó°í ±â´ëÇÏ°í ÀÖ½À´Ï´Ù. ´Ù¸¥ ½ºÇǵå·Î µ¿ÀÛ½ÃÅ°°í ½ÍÀº °æ¿ì¿¡´Â, ÀÌ ÆÄÀÏÀ» ÀûÀýÈ÷ ÆíÁýÇØ ÁÖ¼¼¿ä ( remotebaud ¿¡ °üÇÑ ±â¼úÀ» ã¾Æ ÁÖ¼¼¿ä).
  7. ´ýÇÁ¸¦ ÃëÇϰųª gdb (À»)¸¦ »ç¿ëÇÏ´Â °ÍÀ¸·Î ¹®Á¦¸¦ ºÐ¼®ÇØ ÁÖ¼¼¿ä. ȤÀº »ó±âÀÇ ¼Ð ½ºÅ©¸³Æ®ÀÇ Ãâ·Â (À»)¸¦ ÀÌ¿ëÇØ ÁÖ¼¼¿ä. ´ÙÀ½¿¡ ¸®¸ðÆ® µð¹ö±×ÀÇ ¼¼¼ÇÀ¸·Î vinum(8) ¿¡ À־ÀÇ debug ¸í·ÉÀÇ À̿뿹¸¦ ³ªÅ¸³À´Ï´Ù.
    (kgdb) add-symbol-file /usr/src/sys/modules/vinum/vinum.ko 0x00005e24+0xf0f4e000 
    add symbol table from file "/usr/src/sys/modules/vinum/vinum.ko" at text_addr = 0xf0f53e24? 
    (y or n) y 
    (kgdb) bt 
    #0  Debugger (msg=0xf0f661ac "vinum debug") at ../../i386/i386/db_interface.c:318 
    #1  0xf0f60a7c in vinumioctl (dev=0x40001900, cmd=0xc008464b, data=0xf6923ed0 "", 
          flag=0x3, p=0xf688e6c0) at 
          /usr/src/sys/modules/vinum/../../dev/vinum/vinumioctl.c:109 
    #2  0xf01833b7 in spec_ioctl (ap=0xf6923e0c) at ../../miscfs/specfs/spec_vnops.c:424 
    #3  0xf0182cc9 in spec_vnoperate (ap=0xf6923e0c) at ../../miscfs/specfs/spec_vnops.c:129 
    #4  0xf01eb3c1 in ufs_vnoperatespec (ap=0xf6923e0c) at ../../ufs/ufs/ufs_vnops.c:2312 
    #5  0xf017dbb1 in vn_ioctl (fp=0xf1007ec0, com=0xc008464b, data=0xf6923ed0 "", 
          p=0xf688e6c0) at vnode_if.h:395 
    #6  0xf015dce0 in ioctl (p=0xf688e6c0, uap=0xf6923f84) at ../../kern/sys_generic.c:473 
    #7  0xf0214c0b in syscall (frame={tf_es = 0x27, tf_ds = 0x27, tf_edi = 0xefbfcff8, 
          tf_esi = 0x1, tf_ebp = 0xefbfcf90, tf_isp = 0xf6923fd4, tf_ebx = 0x2, 
          tf_edx = 0x804b614, tf_ecx = 0x8085d10, tf_eax = 0x36, tf_trapno = 0x7, 
          tf_err = 0x2, tf_eip = 0x8060a34, tf_cs = 0x1f, tf_eflags = 0x286, 
          tf_esp = 0xefbfcf78, tf_ss = 0x27}) at ../../i386/i386/trap.c:1100 
    #8  0xf020a1fc in Xint0x80_syscall () 
    #9  0x804832d in ?? () 
    #10 0x80482ad in ?? () 
    #11 0x80480e9 in ?? () 
    (kgdb) f 1 
    #1  0xf0f60a7c in vinumioctl (dev=0x40001900, cmd=0xc008464b, data=0xf6923ed0 "", 
        flag=0x3, p=0xf688e6c0) at 
        /usr/src/sys/modules/vinum/../../dev/vinum/vinumioctl.c:109 
    Source file is more recent than executable. 
    109             Debugger ("vinum debug");
        
    µð¹ö°Å·ÎºÎÅÍ ½ÇÇà °³½ÃÇÒ ¶§, ÇÁ·¹ÀÓ 1 ÀÇ ¼Ò½º (À§ÀÇ ¿¹¿¡¼­´Â ¸¶Áö¸· ºÎºÐ)¿¡ ´ÙÀ½ÀÇ Ä³¸¯ÅÍ ¶óÀÎÀÌ Æ÷ÇԵǾî ÀÖ´Â °ÍÀº Áß¿äÇÕ´Ï´Ù.
    Debugger ("vinum debug");
        
    ÀÌ°ÍÀº ÁÖ¼Ò Á¤ÀÇ°¡ ¿Ã¹Ù¸¥ ÀÏÀ» ³ªÅ¸³»°í ÀÖ½À´Ï´Ù.
ÃÖÃÊÀÇ Á¶»ç¿¡¼­ °¡Àå Áß¿äÇÑ Á¤º¸´Â, À§¿¡ ³ªÅ¸³ª°í ÀÖµµ·Ï(µíÀÌ) bt (¹é Æ®·¹À̽º) ¸í·ÉÀÇ Ãâ·ÂÀÔ´Ï´Ù.

Greg Lehey <grog@lemis.com>

vinum (Àº)´Â FreeBSD 3.0 À¸·ÎºÎÅÍ µîÀåÇß½À´Ï´Ù.

vinum(8), disklabel(5), disklabel(8)
22 July 1998 FreeBSD

Search for    or go to Top of page |  Section 4 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.