ºìÁªLinuxÃÅ»§
Linux°ïÖú

david5337 µÄÔÚHP-UXÏÂÃæ°²×°´Å´ø¿â

·¢²¼Ê±¼ä:2006-08-14 00:11:16À´Ô´:ºìÁª×÷Õß:coolentboy
¡¡¡¡¶ÔÓÚUNIXÏÂÃæ´Å´ø¿âµÄʹÓã¬Ö÷ÒªÎÊÌâÊÇLibraryµÄʶ±ð£»Èç¹ûÄܹ»½â¾öʶ±ðÎÊÌ⣬ÆäËûµÄÎÊÌâ¾ÍÓ­Èжø½â¡£
¡¡¡¡¹ØÓÚÔÚHP-UXµÄʹÓ㬽éÉÜÈçÏÂ:
¡¡¡¡1¡¢Ö÷ҪʹÓõÄÃüÁîÊÇioscanºÍlsdev£¬´ó¼Ò¿ÉÒԲ鿴¸ÃÃüÁîµÄ¾ßÌåʹÓá£

¡¡¡¡2¡¢Á¬½Ó´Å´ø¿âµÄʱºò£¬¿ÉÒÔ²ÉÓÃSCSI¿ØÖÆ¿¨ºÍFC HBA¿¨¡£HP-UXС»úµÄSCSI¿ØÖÆ¿¨ËùÁ¬½ÓµÄ´Å´ø¿âÇý¶¯³ÌÐò·ÖΪÁ½ÖÖ£ºsptºÍsctl£¬¸úSCSI¿ØÖÆ¿¨Óйأ¬ÔÚÄÚºËÖаó¶¨ÓС£
HPµÄ28655A¿¨£¬´Å´ø¿âÐèҪʹÓÃsptÇý¶¯£¬ÆäËûһЩ¼¯³ÉµÄ¿¨Ê¹ÓÃsctlÇý¶¯³ÌÐò¡£Í¨¹ýioscan -fÃüÁî¿ÉÒԲ鵽¡£
FC HBA¿¨µÄÇý¶¯³ÌÐò¸úvendorÓйØϵ¡£
Èç¹û½«Çý¶¯Ìí¼Óµ½Äںˣ¬ÐèÒªÖØбàÒëÄںˡ£
¡¡¡¡3¡¢Ê¹ÓÃsptÇý¶¯³ÌÐòµÄʱºò£¬´Å´ø¿âµÄËùÓÐÉ豸£¨°üÀ¨»úеÊÖ±ÛºÍtape£©µÄÉ豸Îļþ¶¼Î»ÓÚ/dec/sptĿ¼Ï¡£
Á¬½ÓÍê´Å´ø¿â²¢¼Óµç£¬Ê¹ÓÃioscan -fÃüÁ¿ÉÒԲ鿴µ½¸Ã´Å´ø¿âÉ豸£¬Ê¹ÓÃsptµÄÇý¶¯³ÌÐò£»È»ºóʹÓÃlsdev -d sptÃüÁî²é¿´¸ÃÉ豸µÄmajor number(137)¡£½¨Á¢mkdir /dev/sptĿ¼£¬È»ºó¸ù¾Ý´Å´ø¿âµÄTarget ID£¬LUN ID´´½¨ÀýÈçmknod /dev/spt/c1t3l0 c 137 0x013000µÄÉ豸Îļþ£¡
¡¡¡¡4¡¢½¨Á¢sctlÇý¶¯³ÌÐòµÄÉ豸Îļþ£º
¡¡¡¡ÀýÒ»£ºScalar 100´ø¿â
ʹÓÃioscan -fµÄÊä³ö½á¹û
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
ext_bus 7 0/7/0/1 c720 CLAIMED INTERFACE SCSI C896 Fast
Wide LVD
target 10 0/7/0/1.0 tgt CLAIMED DEVICE
tape 65 0/7/0/1.0.0 stape CLAIMED DEVICE QUANTUM SuperDLT1
target 11 0/7/0/1.1 tgt CLAIMED DEVICE
tape 66 0/7/0/1.1.0 stape CLAIMED DEVICE QUANTUM SuperDLT1
target 12 0/7/0/1.2 tgt CLAIMED DEVICE
autoch 14 0/7/0/1.2.0 schgr CLAIMED DEVICE ADIC Scalar 100
¿ÉÒÔ¿´µ½×îºóÒ»ÐÐÊÇADIC Scalar100µÄ»úеÊÖ£¬»¹ÓÐÁ½¸öDrive¡£
mkdir /dev/sctl
lsdev -d schgr ²é¿´major number
/etc/mknod c7t2l0 c 203 0x072000 Ϊ»úеÊÖ±Û´´½¨É豸Îļþ
/etc/mknod c7t1l0 c 203 0x071000ºÍ/etc/mknod c7t0l0 c 203 0x070000 Ϊtape drive´´½¨É豸Îļþ
È»ºó¿ÉÒÔÔÚ/dev/sctlĿ¼ÏÂÃæ¿´µ½c7t2I0,c7t1I0,c7t0I0¡£
¡¡¡¡Àý¶þ£º
STK9740Á¬½Ó FC HBA
ʹÓÃioscan -fµÄÊä³ö½á¹û£º
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
ext_bus 3 0/0/0.8.0.0.0 fcpmux CLAIMED INTERFACE HP A3308
FCP-SCSI MUX Interface
target 0 0/0/0.8.0.0.0.0 tgt CLAIMED DEVICE
tape 0 0/0/0.8.0.0.0.0.0 stape CLAIMED DEVICE QUANTUM DLT7000
target 1 0/0/0.8.0.0.0.1 tgt CLAIMED DEVICE
autoch 0 0/0/0.8.0.0.0.1.0 schgr CLAIMED DEVICE STK9740
target 2 0/0/0.8.0.0.0.7 tgt CLAIMED DEVICE
ctl 3 0/0/0.8.0.0.0.7.0 sctl CLAIMED DEVICE Initiator
cd /dev/sctl
/etc/mknod c3t1l0 c 203 0x031000 ´´½¨»úеÊÖ±ÛÉ豸Îļþ
/etc/mknod c3t0l0 c 203 0x031000 ´´½¨Tape DriveµÄÉ豸Îļþ£¡
ÔÚ/dev/rmtÏÂÃæ¿ÉÒÔ¿´µ½ÖîÈçdev/rmt/c3t0d0BESTnbµÈÉ豸£¡
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ