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 ¤Ä°Ê¾å¤Î¥×¥ì¥Ã¥¯¥¹¤«¤é¹½À®¤µ¤ì¤Þ¤¹¡£³Æ¥×¥ì¥Ã¥¯¥¹¤Ï ¥Ü¥ê¥å¡¼¥à¤ÎÁ´¥¢¥É¥ì¥¹¶õ´Ö¤ò»ý¤Á¤Þ¤¹¡£¤³¤ì¤Ï RAID-1 (¥ß¥é¡¼) ¤Î¼ÂÁõ¤òɽ¤·¤Þ¤¹¡£ Ê£¿ô¤Î¥×¥ì¥Ã¥¯¥¹¤ò»È¤¦¤³¤È¤Ë¤è¤ê°Ê²¼¤Î¤è¤¦¤Ê¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£
    • Æɤ߽Ф·¥¹¥ë¡¼¥×¥Ã¥È¤Î¸þ¾å¡£ vinum ¤ÏºÇ¤â¥¢¥¯¥»¥¹¤Î¾¯¤Ê¤¤¥Ç¥£¥¹¥¯¤«¤é¥Ç¡¼¥¿¤òÆɤ߽Ф¹¤Î¤Ç¡¢ Ê£¿ô¤Î¥Ç¥£¥¹¥¯¤«¤é¤Ê¤ë¥×¥ì¥Ã¥¯¥¹¤ò»ý¤Ä¥Ü¥ê¥å¡¼¥à¤Ê¤é ¤è¤ê¿¤¯¤Î¥Ç¡¼¥¿¤òÊÂÎó¤ËÆɤ߽Ф¹¤³¤È¤¬²Äǽ¤Ç¤¹¡£ vinum ¤Ï 1 ¥×¥ì¥Ã¥¯¥¹¤«¤é¤Î¤ß¥Ç¡¼¥¿¤òÆɤ߽Ф·¤Þ¤¹¤¬¡¢ ¤¹¤Ù¤Æ¤Î¥×¥ì¥Ã¥¯¥¹¤ËÂФ·¤Æ¥Ç¡¼¥¿¤ò½ñ¤­¹þ¤ß¤Þ¤¹¡£
    • ¿®ÍêÀ­¤Î¸þ¾å¡£°Û¤Ê¤ë¥Ç¥£¥¹¥¯¾å¤ÎÊ£¿ô¤Î¥×¥ì¥Ã¥¯¥¹¤Ë³ÊǼ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢ ¥×¥ì¥Ã¥¯¥¹¤Î¤¦¤Á¤Î 1 ¤Ä¤¬ÍøÍÑÉÔǽ¤Ë¤Ê¤Ã¤¿¤È¤·¤Æ¤â¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤»¤ë¤Ç¤·¤ç¤¦¡£ RAID-5 ¥×¥ì¥Ã¥¯¥¹ (²¼µ­»²¾È) ¤ÈÈæ¤Ù¤Æ¡¢Ê£¿ô¤Î¥×¥ì¥Ã¥¯¥¹¤Ï¤è¤ê¿¤¯¤Î¥¹¥È¥ì¡¼¥¸ Îΰè¤òɬÍפȤ·¤Þ¤¹¤¬¡¢¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤¬Í¥¤ì¤Æ¤¤¤Þ¤¹¡£Æä˥ɥ饤¥Ö¸Î¾ã¤ÎºÝ¤Î º¹¤Ï¸²Ãø¤Ç¤·¤ç¤¦¡£
    • ¾éĹ¤Ê¥×¥ì¥Ã¥¯¥¹¤òÍøÍѤ·¤Æ¡¢¥ª¥ó¥é¥¤¥ó¤Î¤Þ¤Þ¥Ç¡¼¥¿ºÆ¹½À®¤¬¤Ç¤­¤Þ¤¹¡£ ¤¢¤ë¥×¥ì¥Ã¥¯¥¹¤ò·ë¹ç¤·¡¢ ³¤¤¤Æ¸Å¤¤¥×¥ì¥Ã¥¯¥¹¤Î 1 ¤Ä¤òʬΥ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥¢¥¯¥»¥¹¤ò˸¤²¤ë¤³¤È¤Ê¤¯ ¥ª¥ó¥é¥¤¥ó¤Ç¥Ç¡¼¥¿¤ò°ÜÆ°¤Ç¤­¤Þ¤¹¡£
    • ¾éĹ¤Ê¥×¥ì¥Ã¥¯¥¹¤Ë¤è¤ê¡¢°ì´ÓÀ­¤ò»ý¤Ã¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥À¥ó¥×¤ò ÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥×¥ì¥Ã¥¯¥¹¤ò·ë¹ç¤·¡¢¤¢¤ë»þÅÀ¤ÇʬΥ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢Ê¬Î¥¤µ¤ì¤¿¥×¥ì¥Ã¥¯¥¹¤Ï ʬΥ¤·¤¿»þÅÀ¤Ë¤ª¤±¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÀµ³Î¤Ê¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ë¤Ê¤ê¤Þ¤¹¡£
  • ³Æ¥×¥ì¥Ã¥¯¥¹¤Ï¡¢¥µ¥Ö¥Ç¥£¥¹¥¯¤È¸Æ¤Ð¤ì¤ë¡¢ 1 ¤Ä°Ê¾å¤ÎÏÀÍý¥Ç¥£¥¹¥¯¥¹¥é¥¤¥¹¤«¤é¹½À®¤µ¤ì¤Þ¤¹¡£ ¥µ¥Ö¥Ç¥£¥¹¥¯¤ÏʪÍý¥Ç¥£¥¹¥¯¤ÎϢ³¤·¤¿¥Ö¥í¥Ã¥¯¤È¤·¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£ ¥×¥ì¥Ã¥¯¥¹¤Ï¤¢¤é¤æ¤ëŬÀڤʿô¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤Ç¹½À®¤Ç¤­¤Þ¤¹¡£(¸À¤¤Âؤ¨¤ì¤Ð¡¢ ËÜÅö¤ÎÀ©¸Â¤Ï¥µ¥Ö¥Ç¥£¥¹¥¯¤Î¿ô¤Ç¤Ï¤Ê¤¯Ê̤ÎÍ×°ø¡¢Â¿¤¯¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤Î´ÉÍý¤Ë ´Ø¤¹¤ë¥á¥â¥ê¤ä¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤È¤¤¤Ã¤¿¤â¤Î¤Ç¤¹)
  • ¥µ¥Ö¥Ç¥£¥¹¥¯¤È¥×¥ì¥Ã¥¯¥¹¤Î´Ö¤ÎÊÔÀ®¤Ë¤Ï¤¤¤¯¤Ä¤«¤Î¼ïÎब¤¢¤ê¤Þ¤¹:
    • ¥³¥ó¥«¥Á¥Í¡¼¥È²½¥×¥ì¥Ã¥¯¥¹¤Ï 1 ¤Ä°Ê¾å¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤«¤é¤Ê¤ê¡¢ ³Æ¥µ¥Ö¥Ç¥£¥¹¥¯ ¤Ï¥×¥ì¥Ã¥¯¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤ÎÃæ¤ÇϢ³¤·¤¿Éôʬ¤È¤·¤ÆÊÔÀ®¤µ¤ì¤Þ¤¹¡£
    • ¥¹¥È¥é¥¤¥×²½¥×¥ì¥Ã¥¯¥¹¤Ï 2 ¤Ä°Ê¾å¤Î¡¢ Â礭¤µ¤ÎÅù¤·¤¤¥µ¥Ö¥Ç¥£¥¹¥¯¤«¤é¤Ê¤ê¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¤Î¥¢¥É¥ì¥¹¶õ´Ö¤Ï¥¹¥È¥é¥¤¥×¤Ë¡¢ ¤¹¤Ê¤ï¤Á¥µ¥Ö¥Ç¥£¥¹¥¯¤ÎÂ礭¤µ¤ÎÀ°¿ôʬ¤Î 1 ¤Ë¡¢ÂбþÉÕ¤±¤é¤ì¤Þ¤¹¡£ Ϣ³¤·¤¿¥×¥ì¥Ã¥¯¥¹¥¢¥É¥ì¥¹¶õ´Ö¤Ë¤Ï¡¢ ³Æ¥µ¥Ö¥Ç¥£¥¹¥¯¤Î¥¹¥È¥é¥¤¥×¤¬½çÈÖ¤ËÂбþÉÕ¤±¤é¤ì¤Þ¤¹¡£ ¥¹¥È¥é¥¤¥×²½¥×¥ì¥Ã¥¯¥¹¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤Ï¤¹¤Ù¤ÆƱ¤¸Â礭¤µ¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
    • RAID-5 ¥×¥ì¥Ã¥¯¥¹¤Ë¤ÏÂ礭¤µ¤ÎÅù¤·¤¤¥µ¥Ö¥Ç¥£¥¹¥¯¤¬¡¢ ¾¯¤Ê¤¯¤È¤â 3 ¤Ä¤ÏɬÍפǤ¹¡£ ¤³¤ì¤Ï¥¹¥È¥é¥¤¥×²½¥×¥ì¥Ã¥¯¥¹¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢ ³Æ¥¹¥È¥é¥¤¥×¤ÎÃæ¤Ç 1 ¤Ä¤Î¥µ¥Ö¥Ç¥£¥¹¥¯ ¤¬¥Ñ¥ê¥Æ¥£¾ðÊó¤ò»ý¤Ã¤Æ¤¤¤ëÅÀ¤¬°Û¤Ê¤ê¤Þ¤¹¡£¥Ñ¥ê¥Æ¥£¾ðÊó¤ò»ý¤Ä¥µ¥Ö¥Ç¥£¥¹¥¯¤Ï ¥¹¥È¥é¥¤¥×¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£1 ÈÖÌܤΥ¹¥È¥é¥¤¥×¤Ç¤Ï 1 ÈÖÌܤΥµ¥Ö¥Ç¥£¥¹¥¯¡¢ 2 ÈÖÌܤΥ¹¥È¥é¥¤¥×¤Ç¤Ï 2 ÈÖÌܤΥµ¥Ö¥Ç¥£¥¹¥¯¤È¤¤¤Ã¤¿¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ñ°ì¥Ç¥£¥¹¥¯¸Î¾ã¤Î¾ì¹ç¡¢ vinum ¤Ï»Ä¤ê¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë¾ðÊ󤫤é¥Ç¡¼¥¿¤òÉü¸µ¤·¤Þ¤¹¡£ ¤³¤ÎÊÔÀ®¤ÏÆɤ߽Ф·¤¬½¸Ã椹¤ë¥¢¥¯¥»¥¹¤ËÆä˸þ¤¤¤Æ¤¤¤Þ¤¹¡£RAID-5 ¥×¥ì¥Ã¥¯¥¹¤Î ¥µ¥Ö¥Ç¥£¥¹¥¯¤Ï¤¹¤Ù¤ÆƱ¤¸Â礭¤µ¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
  • ¥É¥é¥¤¥Ö ¤Ï¥¹¥È¥ì¡¼¥¸³¬ÁؤÎÃæ¤ÇºÇ¤âÄã¥ì¥Ù¥ë¤Ê¤â¤Î¤Ç¤¹¡£¤³¤ì¤Ï¥Ç¥£¥¹¥¯Æüì¥Ç¥Ð¥¤¥¹¤ò ɽ¤·¤Þ¤¹¡£
  • vinum ¤Ï¼«Æ°µ¯Æ°µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£Ä̾ï¤Î UNIX ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È°Û¤Ê¤ê¡¢ vinum ¥Ü¥ê¥å¡¼¥àÆâ¤Ë¤¹¤Ù¤Æ¤ÎÀßÄê¾ðÊó¤ò»ý¤Ã¤Æ¤¤¤ë¤¿¤á¡¢¥µ¥Ö¥·¥¹¥Æ¥à¤¬ÍøÍѲÄǽ¤Ë ¤Ê¤Ã¤¿»þ¤ËÀµ¤·¤¯µ¯Æ°¤¹¤ë¤³¤È¤òÊݾڤǤ­¤Þ¤¹¡£ ¤³¤ÎÅÀ¤¬ Veritas™ File System ¤ËÂФ¹¤ë½ÅÍפÊÍøÅÀ¤Ç¤â¤¢¤ê¤Þ¤¹¡£ ¤³¤Îµ¡Ç½¤Ï¥Ü¥ê¥å¡¼¥à¤Î¸ºß¤ò¸¡½Ð¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥Ü¥ê¥å¡¼¥à¤ò¼«Æ°Åª¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¥Þ¥¦¥ó¥È¤ò¼Â¹Ô¤¹¤ë¤Î¤Ï¡¢Ä̾ï¤Î /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 ¤ò¥¢¥ó¥í¡¼¥É¤Ç¤­¤ë¤Î¤Ï¥¢¥¤¥É¥ëÃæ¡¢¸À¤¤Âؤ¨¤ë¤È ¥Ü¥ê¥å¡¼¥à¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤ª¤é¤º¡¢Â¾¤Î vinum ¥×¥í¥°¥é¥à¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤¬¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤»þ¤Î¤ß¤Ç¤¹¡£ kld ¤Î¥¢¥ó¥í¡¼¥É¤Ï¥Ü¥ê¥å¡¼¥àÆâ¤Î¥Ç¡¼¥¿¤òÇ˲õ¤·¤Þ¤»¤ó¡£

vinum ¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤Èµ¯Æ°¤Ë¤Ï¡¢ vinum(8) ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

ioctl ¸Æ¤Ó½Ð¤·¤Ï vinum ÀßÄê¥×¥í¥°¥é¥à¤À¤±¤¬»È¤¦¤è¤¦¤ËÀ߷פµ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë /sys/sys/vinumio.h ¤ËÀâÌÀ¤¬¤¢¤ê¤Þ¤¹¡£

ÅÁÅýŪ¤Ê¥Ç¥£¥¹¥¯Æüì¥Ç¥Ð¥¤¥¹¤Ï ¥Ç¥£¥¹¥¯¥é¥Ù¥ë ¤ò¥Ç¥Ð¥¤¥¹¤ÎÂè 2 ¥»¥¯¥¿¤Ë»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï disklabel(5) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤Î¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Ë¤Ï¥Ç¥Ð¥¤¥¹Æâ¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¾ðÊ󤬵­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ vinum ¤Ï¥Ü¥ê¥å¡¼¥à¤ò¤µ¤é¤Ëʬ³ä¤¹¤ë¤³¤È¤Ï¤Ê¤¤¤Î¤Ç¡¢¥Ü¥ê¥å¡¼¥à¤Ë¤ÏʪÍý¥Ç¥£¥¹¥¯¥é¥Ù¥ë ¤¬¤¢¤ê¤Þ¤»¤ó¡£ ÍøÊؤΤ¿¤á¡¢ vinum ¤Ë¤Ï ioctl ¸Æ¤Ó½Ð¤· DIOCGDINFO (¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Î¼èÆÀ), DIOCGPART (¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¾ðÊó¤Î¼èÆÀ), DIOCWDINFO (¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¾ðÊó¤Î½ñ¤­¹þ¤ß), DIOCSDINFO (¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¾ðÊó¤ÎÀßÄê) ¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£DIOCGDINFO ¤È DIOCGPART ¤Ï ÆâÉôŪ¤Ê¥Ç¥£¥¹¥¯¥é¥Ù¥ë¾ðÊó¤ò»²¾È¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ü¥ê¥å¡¼¥àÆâ¤Ë¤Ï¸ºß¤·¤Þ¤»¤ó¡£ ½¾¤Ã¤Æ¡¢ 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 ¤ò̵»ë¤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á²¿¤âÊѹ¹¤·¤Þ¤»¤ó¡£ ½¾¤Ã¤Æ¡¢¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òÊѹ¹¤·¤è¤¦¤È¤¹¤ë¤È²¿¤Îɽ¼¨¤â¤Ê¤¯Ìµ»ë¤µ¤ì¤ë¤Ç¤·¤ç¤¦¡£

vinum ¥Ü¥ê¥å¡¼¥à¤Ï¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò»ý¤¿¤Ê¤¤¤Î¤Ç¡¢¥Ü¥ê¥å¡¼¥à¤Î̾Á°¤Ë´Ø¤·¤Æ¥Ç¥£¥¹¥¯ ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î̾Á°ÉÕ¤±¤ÎÄ̾ï¤Î¥ë¡¼¥ë¤Ë½¾¤¦É¬ÍפϤ¢¤ê¤Þ¤»¤ó¡£ ʪÍý¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¤ª¤¤¤Æ¤Ï¡¢¥Ç¥Ð¥¤¥¹Ì¾¤ÎºÇ¸å¤Îʸ»ú¤Ï ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¼±ÊÌ»Ò (a ¤«¤é h) ¤ò»ØÄꤷ¤Þ¤¹¡£ vinum ¥Ü¥ê¥å¡¼¥à¤Ï¤³¤Îµ¬Â§¤Ë½¾¤¦É¬ÍפϤ¢¤ê¤Þ¤»¤ó¡£¤·¤«¤·½¾¤ï¤Ê¤«¤Ã¤¿¾ì¹ç¡¢ newfs ¤¬¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¼±Ê̤¬½ÐÍè¤Ê¤¤¤Èʸ¶ç¤ò¸À¤¦¤Ç¤·¤ç¤¦¡£¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤Ë¤Ï newfs ¤ËÂФ·¤Æ -v ¥Õ¥é¥°¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£

vinum ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î̾Á°¤ò¥×¥ì¥Ã¥¯¥¹¤È¥µ¥Ö¥Ç¥£¥¹¥¯¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¤³¤Î̾Á°¤ò ¾å½ñ¤­¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤·¤«¤·¥Ç¥Õ¥©¥ë¥È¤Î̾Á°¤ò¾å½ñ¤­¤¹¤ë¤³¤È¤Ï¿ä¾© ¤·¤Þ¤»¤ó¡£¥ª¥Ö¥¸¥§¥¯¥È¤ËǤ°Õ¤Î̾Á°¤òÉÕ¤±¤é¤ì¤ë Veritas(tm) volume manager ¤Î»ÈÍѷи³¤«¤é¤¹¤ë¤È¡¢¤³¤Î¤è¤¦¤Ê¼«Í³ÅÙ¤ËÂ礭¤ÊÍøÅÀ¤Ï¤Ê¤¯¡¢ º®Íð¤ò°ú¤­µ¯¤³¤¹¤Ç¤·¤ç¤¦¡£

̾Á°¤Ë¤Ï¶õÇò¤Ç¤Ê¤¤Ç¤°Õ¤Îʸ»ú¤ò»È¤¨¤Þ¤¹¤¬¡¢±Ñ¿ô»ú¤È¥¢¥ó¥À¥¹¥³¥¢¤Î¤ß¤Ë À©¸Â¤¹¤ë¤³¤È¤ò´«¤á¤Þ¤¹¡£¥Ü¥ê¥å¡¼¥à¡¢¥×¥ì¥Ã¥¯¥¹¡¢¥µ¥Ö¥Ç¥£¥¹¥¯¤Î̾Á°¤Ë¤Ï 64 ʸ»ú¤Þ¤Ç¡¢¤Þ¤¿¥É¥é¥¤¥Ö¤Î̾Á°¤Ë¤Ï 32 ʸ»ú¤Þ¤Ç»È¤¨¤Þ¤¹¡£ ¥Ü¥ê¥å¡¼¥à¤È¥×¥ì¥Ã¥¯¥¹¤Î̾Á°¤òÁª¤Ö»þ¤Ë¤Ï¡¢ ¼«Æ°Åª¤ËÀ¸À®¤µ¤ì¤ë¥×¥ì¥Ã¥¯¥¹Ì¾¤È¥µ¥Ö¥Ü¥ê¥å¡¼¥à̾¤¬¡¢ ¤³¤ì¤é¤Î¸µ¤È¤Ê¤ë̾Á°¤è¤ê¤âŤ¯¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

  • vinum(8) ¤¬¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤Þ¤¿¤Ïºï½ü¤¹¤ë¤È¡¢¥Ç¥£¥ì¥¯¥È¥ê /dev/vinum ¤òºîÀ®¤·¡¢¤½¤ÎÃæ¤Ë vinum ¤¬¸¡½Ð¤·¤¿³Æ¥Ü¥ê¥å¡¼¥à¤ËÂбþ¤¹¤ë ¥Ç¥Ð¥¤¥¹¥¨¥ó¥È¥ê¤òºîÀ®¤·¤Þ¤¹¡£¤Þ¤¿¡¢vinum ¤Ï¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê /dev/vinum/plex ¤È /dev/vinum/sd ¤òºîÀ®¤·¡¢¤½¤ÎÃæ¤Ë¥×¥ì¥Ã¥¯¥¹¤È¥µ¥Ö¥Ç¥£¥¹¥¯¤ËÂбþ¤¹¤ë¥Ç¥Ð¥¤¥¹¥¨¥ó¥È¥ê¤ò ³ÊǼ¤·¤Þ¤¹¡£¹¹¤Ë¡¢vinum ¤Ï2¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê /dev/vinum/vol ¤È /dev/vinum/drive ¤òºîÀ®¤·¡¢¤½¤ÎÃæ¤Ë¥Ü¥ê¥å¡¼¥à¤È¥É¥é¥¤¥Ö¤ËÂФ¹¤ë³¬ÁØŪ¤Ê¾ðÊó¤ò³ÊǼ¤·¤Þ¤¹¡£
  • UNIX ¥É¥é¥¤¥Ö¤È°Û¤Ê¤ê¡¢ vinum ¥Ü¥ê¥å¡¼¥à¤ò¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ø¤È¤µ¤é¤Ëʬ³ä¤·¤Þ¤»¤ó¡£ ½¾¤Ã¤Æ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤ò»ý¤Á¤Þ¤»¤ó¡£ ÉÔ¹¬¤Ê»ö¤Ë¡¢¤³¤Î¤³¤È¤Ë¤è¤Ã¤Æ¤¤¤¯¤Ä¤«¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¢ÆÃ¤Ë newfs ¤Ïº®Í𤷤ޤ¹¡£ newfs ¤ÏÄ̾ï vinum ¥Ü¥ê¥å¡¼¥à̾¤ÎºÇ¸å¤Îʸ»ú¤ò¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¼±Ê̻ҤȤ·¤Æ²ò¼á¤·¤è¤¦¤È¤¹¤ë¤«¤é¤Ç¤¹¡£ a ¤«¤é c ¤Îʸ»ú¤Ç½ª¤ï¤é¤Ê¤¤Ê¸»úÎó¤ò¥Ü¥ê¥å¡¼¥à̾¤Ë»È¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢ newfs ¤ËÂФ·¤Æ -v ¥Õ¥é¥°¤ò»ØÄꤷ¤Æ¤³¤Îµ¬Â§¤ò̵»ë¤¹¤ë¤è¤¦ newfs ¤Ë»Ø¼¨¤¹¤ë¤³¤È¤¬É¬ÍפǤ¹¡£
  • ¥×¥ì¥Ã¥¯¥¹¤Ë¤ÏÌÀ¼¨Åª¤Ë̾Á°¤ò³ä¤êÅö¤Æ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£¥Ç¥Õ¥©¥ë¥È¤Î¥×¥ì¥Ã¥¯¥¹ ̾¤Ï¥Ü¥ê¥å¡¼¥à̾¤Ëʸ»úÎó .p ¤È¥×¥ì¥Ã¥¯¥¹¤ÎÈÖ¹æ¤ò³¤±¤¿¤â¤Î¤Ç¤¹¡£ Î㤨¤Ð¡¢¥Ü¥ê¥å¡¼¥à vol3 ¤Î¥×¥ì¥Ã¥¯¥¹¤Ï vol3.p0, vol3.p1 ¤È¤¤¤Ã¤¿É÷¤Ë̾ÉÕ¤±¤é¤ì¤Þ¤¹¡£ ¤³¤Î̾Á°¤ò¾å½ñ¤­¤¹¤ë¤³¤È¤Ï²Äǽ¤Ç¤¹¤¬¤ª´«¤á¤·¤Þ¤»¤ó¡£
  • ¥×¥ì¥Ã¥¯¥¹¤ÈƱÍÍ¡¢¥µ¥Ö¥Ç¥£¥¹¥¯¤Ë¤Ä¤¤¤Æ¤â¼«Æ°Åª¤Ë̾Á°¤¬³ä¤êÅö¤Æ¤é¤ì¡¢ ÌÀ¼¨Åª¤Ê̾Á°ÉÕ¤±¤Ï¤ª´«¤á¤·¤Þ¤»¤ó¡£ ¥µ¥Ö¥Ç¥£¥¹¥¯Ì¾¤Ï¥×¥ì¥Ã¥¯¥¹Ì¾¤Ëʸ»úÎó .s ¤È¥µ¥Ö¥Ç¥£¥¹¥¯ ¤ò¼±Ê̤¹¤ëÈÖ¹æ¤ò³¤±¤¿¤â¤Î¤Ç¤¹¡£Î㤨¤Ð¡¢¥×¥ì¥Ã¥¯¥¹ vol3.p0 ¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤Ï vol3.p0.s0, vol3.p0.s1 ¤È¤¤¤Ã¤¿É÷¤Ë̾ÉÕ¤±¤é¤ì¤Þ¤¹¡£
  • °ìÊý¡¢ ¥É¥é¥¤¥Ö ¤Ïɬ¤ºÌ¾Á°¤òÉÕ¤±¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¥É¥é¥¤¥Ö¤ò°Û¤Ê¤ë¾ì½ê¤Ë°ÜÆ°¤·¤¿ ¤È¤·¤Æ¤â¼«Æ°Åª¤Ëǧ¼±¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥É¥é¥¤¥Ö̾¤ÎŤµ¤Ï 32 ʸ»ú¤Þ¤Ç¤Ç¤¹¡£

»ÈÍÑÎã

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
¥µ¥Ö¥Ç¥£¥¹¥¯¤Ï¸½ºßÉü³èºî¶ÈÃæ¤Ç¤¹¡£½ñ¤­¹þ¤ß¤Ï²Äǽ¤Ç¤¹¤¬¡¢Æɤ߽Ф·¤Ï¤Ç¤­¤Þ¤»¤ó¡£

°Ê²¼¤Î¾õÂ֤ϡ¢Í­¸ú¤Ê¥Ç¡¼¥¿¤ò»ý¤Ä¥¢¥¯¥»¥¹²Äǽ¤Ê¥µ¥Ö¥Ç¥£¥¹¥¯¤òɽ¤·¤Þ¤¹¡£

reborn
¥µ¥Ö¥Ç¥£¥¹¥¯¥¨¥ó¥È¥ê¤Ï´°Á´¤ËºîÀ®¤µ¤ì¤Þ¤·¤¿¡£¤¹¤Ù¤Æ¤Î¥Õ¥£¡¼¥ë¥É¤ÏÀµ¾ï¤Ç¡¢ ¥Ç¥£¥¹¥¯¤Ï¹¹¿·¤µ¤ì¡¢¥Ç¡¼¥¿¤ÏÍ­¸ú¤Ç¤¹¤¬¡¢ ¥É¥é¥¤¥Ö¤¬Ää»ß¤·¤¿¸åºÆ¤Óµ¯Æ°¤·¤¿¾õÂ֤Ǥ¹¡£ ¹¹¿·¤ÏÁ´¤¯¼º¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¥µ¥Ö¥Ç¥£¥¹¥¯¤¬Â»½ý¤·¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ ÁªÂò¤Î;ÃϤ¬¤¢¤ì¤Ð¤³¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤«¤é¤ÎÆɤ߽Ф·¤Ï¹Ô¤ï¤Ê¤¤¤Ç¤·¤ç¤¦¡£ ¤â¤·¤³¤Î¥µ¥Ö¥Ç¥£¥¹¥¯¤¬¥×¥ì¥Ã¥¯¥¹Æâ¤Ç³ºÅö¤¹¤ë¥¢¥É¥ì¥¹¶õ´Ö¤ò¥«¥Ð¡¼¤¹¤ëÍ£°ì¤Î ¥µ¥Ö¥Ç¥£¥¹¥¯¤À¤Ã¤¿¾ì¹ç¡¢¤½¤Î¤è¤¦¤Ê¾õ¶·²¼¤Ç¤Ï¥µ¥Ö¥Ç¥£¥¹¥¯¤Î¾õÂÖ¤ò 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 ¥é¥Ù¥ë¤ò´Þ¤ó¤Ç¤ª¤ê¡¢ 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.