[indent]ѧϰÈçºÎÔÚ AIX ÉÏʵÏÖ Internet СÐͼÆËã»úϵͳ½Ó¿Ú£¨Internet small computer system interface£¬iSCSI£©¡£ÎÄÖÐÑÐò½¥½øµÄ¹ý³Ì½«ËµÃ÷ÈçºÎͨ¹ý Cisco MDS ÔÚ AIX Ö÷»úÉÏ¿ç´æ´¢ÇøÓòÍøÂç (SAN) ʵÏÖ iSCSI¡£ÕâЩ¹ý³Ì»¹½«ËµÃ÷һЩ½Ó¿ÚÓÅ»¯²ÎÊý¡£[/indent]ÒýÑÔ
¾¼Ã¸ßЧµÄ´æ´¢½â¾ö·½°¸µÄÒªÇó²¢²»ÊÇʲôÐÂÄÚÈÝ¡£Internet СÐͼÆËã»úϵͳ½Ó¿Ú (iSCSI) ͬÑù²»ÊÇÐÂÄÚÈÝ£¬²»¹ý£¬µ±ÎÒÃÇ¿ªÊ¼ÔÚ AIX® ÉÏ¿ç JS20 µ¶Æ¬ÖÐÐÄʵÏÖ iSCSI ʱ£¬iSCSI ËƺõÊÇÐÂÄÚÈÝ¡£
±¾ÎIJûÊÍÈçºÎͨ¹ý Cisco MDS ½»»»»úÔÚ AIX ÉÏʵÏÖ iSCSI¡£ÎÄÖн«ÌÖÂÛÓÐ¹Ø Cisco MDS Àà SAN ½»»»»úµÄÖ÷»úºÍ SAN ½»»»»úÅäÖõÄËùÓв½Öè¡£±¾ÎĵÄÐÅÏ¢»ùÓÚʵ¼Ê¾Ñé¡£ÎÒÃǼٶ¨ÄúÒÑÕÆÎÕ AIX ϵͳ¹ÜÀíºÍ Cisco ´æ´¢ÇøÓòÍøÂç (SAN) µÄÅäÖü¼ÄÜ¡£
´Ë¹ý³ÌÖеIJ½ÖèÓë Cisco Fabric Manager ÅäÖá¢Cisco Device Manager ÅäÖÃºÍ AIX Ö÷»úÅäÖÃÓйء£ÎÒÃÇ»¹ÌṩÁËÓÐ¹Ø AIX ÓÅ»¯µÄ²¿·Ö£¬¸Ã²¿·ÖÊÇ¿ÉÑ¡µÄ£¬µ«Êǽ¨ÒéÄúÕâÑù×ö¡£
ÏȾöÌõ¼þ
ÓÃÓÚÔÚ AIX ÉÏÅäÖà iSCSI µÄ¹ý³Ì¼Ù¶¨¾ßÓÐÒÔÏÂÌõ¼þ£º
[list][*]·þÎñÆ÷»òÖ÷»ú½ÚµãÉÏ°²×°ÓÐ AIX Version 5.2 »ò¸ü¸ß°æ±¾¡£[*]ÒÑÍê³ÉËùÓÐÍøÂçºÍ¹âÏ˵IJ¼Ïß¡£[*]×îÖØÒªµÄÒ»µãÊÇ£¬ÍøÂçÅäÖÃÒÑÍê³É²¢ÇÒÒѾ½øÐÐÁ˲âÊÔ£¬ÆäÖаüÀ¨Äܹ»Ö´ÐÐ´Ó AIX ½Úµãµ½ iSCSI IP ¶Ë¿ÚµØÖ·µÄ Ping ²âÊÔ¡£[/list]»ù±¾ÅäÖðüÀ¨£ºËĸö JS20 ·þÎñÆ÷½Úµãͨ¹ý Cisco Catalyst ÍøÂç½»»»»ú½øÐÐÁ¬½Ó£¬¶ø Cisco Catalyst ÍøÂç½»»»»úͨ¹ý Cisco MDS 9000 SAN ½»»»»úÇŽӵ½´æ´¢¡£ÔÚ´ËÓ¦ÓÃÖУ¬Òѽ«Á½¸ö IBM DS-4800 ÓÃ×÷ºó¶Ë´æ´¢¡£
Cisco Fabric Manager
Óû§ÐèÒª¾ßÓйÜÀíÔ±·ÃÎÊȨÏÞ²¢¾ßÓзÖÇøµÄÓ¦ÓÃ֪ʶ£¬ÒÔ±ãΪÖ÷»ú½ÚµãºÍºó¶Ë´æ´¢´´½¨ËùÐèµÄÇøÓò¡£ ÈôÒª´Ó Cisco Fabric Manager ÖÐÆôÓà Cisco MDS SAN ½»»»»úÉ쵀 iSCSI£¬ÇëÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]ÔÚ Physical Attributes£¨×óÏ·½£©´°¸ñµÄ MDS ÉÏ£¬Ñ¡Ôñ End Devices > iSCSI¡£[*]ΪÍøÂçÖеÄËùÓн»»»»úÑ¡Ôñ Control Ñ¡Ï£¬È»ºóÑ¡Ôñ iSCSI enable¡£[*]Ñ¡Ôñ Apply¡£[/list]·ÖÇø
ÔÚ Cisco Fabric Manager ͼÐÎÓû§½çÃæ (GUI) ÖÐÖ´ÐзÖÇøʱ£¬Ó¦Ê¹ÓÃÓëΪÆäËûÈκÎÉ豸ִÐзÖÇøÏàͬµÄ·½Ê½¡£Ò»µ©ÉèÖÃÁË MDS À´´¦Àí iSCSI ½Ó¿Ú£¬¾ÍÓ¦¸Ã½« MDS ÊÓΪÈκÎÆäËûÖÕ¶ËÉ豸¡£
Cisco Device Manager
ÔÚ Cisco MDS SAN ½»»»»úÉÏʹÓà Device Manager À´Ö´ÐÐÏÂÁв½Öè¡£Óû§ÐèÒª¾ßÓйÜÀíÔ±·ÃÎÊȨÏÞ²¢ÇÒ¾ßÓÐÈçºÎͨ¹ý Device Manager GUI À´ÅäÖà MDS Àཻ»»»úµÄÓ¦ÓÃ֪ʶ¡£½¨ÒéÕÆÎÕ SAN µÄÒ»°ã֪ʶ£¨ÆäÖаüÀ¨·ÖÇø£©¡£
ÇëÕë¶Ô³õʼµÄ MDS ÉèÖÃÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]ÔÚ Cisco MDS SAN ½»»»»úÉÏÆôÓà iSCSI License ¹¦ÄÜ¡£[*]ÔÚ MDS ÉÏ£¬´Ó Admin Ñ¡ÏÖÐÑ¡Ôñ Feature Control¡£[*]ÆôÓà iscsi-vsan-interface-membership¡£[*]Ñ¡Ôñ Apply¡£[/list]´Ëʱ£¬Cisco MDS ½»»»»ú¿ÉËæʱ½ÓÊÜ iSCSI ÃüÁî¡£
ÏÖÔÚ£¬Äú½«ÉèÖà MDS ¶Ë¿ÚºÍ²ÎÊý¡£ÈôÒªÅäÖà GigE ½Ó¿Ú£¬ÇëÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]ÕÒµ½ Cisco Catalyst ÍøÂç½»»»»úµÄ iSCSI ¶Ë¿Ú¡£[*]ÓÒ¼üµ¥»÷½«ÒªÅäÖõĶ˿ڲ¢Ñ¡Ôñ Configure¡¡£[*]´ÓÅäÖÃÃæ°åµÄ¶¥²¿Ñ¡Ôñ GigE Ñ¡Ï¡£[*]ÔÚ Description ×Ö¶ÎÖÐÊäÈë¶Ë¿ÚÃèÊö¡£[*]½« MTU ¸ü¸ÄΪ 9000¡££¨Îª»ñµÃ¸üÓŵÄÐÔÄÜ£¬½¨Ò齫 MTU ¸ü¸ÄΪ 9000£¬µ«¸ÃÉèÖÃÊÇ¿ÉÑ¡µÄ¡££©[*]ÔÚ IP Address/Mask ×Ö¶ÎÖÐΪ iSCSI ¶Ë¿ÚÊäÈë IP µØÖ·ºÍ×ÓÍø¡£[/list]Cisco Catalyst ÍøÂç½»»»»ú»á×Ô¶¯ÔÚ IP µØÖ·Ä©¶ËÌî³ä×ÓÍøÑÚÂë¡£Èç¹ûÄúÕýÔÚʹÓõÄ×ÓÍøÓë Cisco ÒѼٶ¨µÄ×ÓÍø²»Í¬£¬Ôò¿ÉÒÔÊÖ¶¯¸ü¸ÄËü¡£
[list=1][*]ͨ¹ý´Ó iscsiAuthMethod Ñ¡Ôñ¿òÖÐÑ¡ÖÐ none »ò chap À´Ñ¡Ôñ Auth ·½·¨¡£[*]Ñ¡Ôñ Apply¡£[/list]Íê³Éºó£¬ÇëÕë¶Ôÿ¸ö Ñ¡ÏӦÓÃËùÓиü¸Ä¡£Apply °´Å¥Ö»±£´æÄúµ±Ç°ÕýÔÚʹÓõÄÑ¡ÏµÄ¸ü¸Ä£¬¸Ã°´Å¥²¢²»»á¼ÌÐøÓ¦Óõ½ÆäËûÑ¡Ï¡£
ÈôÒªÅäÖà iSCSI ½Ó¿Ú£¬ÇëÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]´ÓÅäÖÃÃæ°åµÄ¶¥²¿Ñ¡Ôñ iSCSI Ñ¡Ï¡£[*]ÔÚ Description ×Ö¶ÎÖÐÊäÈë¶Ë¿ÚÃèÊö¡£[*]´ÓÏÂÀ´°¿ÚÖÐÑ¡Ôñ PortVSAN µÄÊʵ±ÐéÄâ´æ´¢ÇøÓòÍøÂç (VSAN)£¬»ò¼üÈëÊʵ±µÄ VSAN ºÅ¡£[*]ÔÚ Initiator Proxy mode ÏÂÑ¡ÖÐ Enable ¿ò¡£[*]Ϊ Assignment Ñ¡ÏîÑ¡Ôñ Auto¡£[*]Ñ¡Ôñ Apply¡£[/list]ÈôÒªÅäÖà iSCSI_TCP ½Ó¿Ú£¬ÇëÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]´ÓÅäÖÃÃæ°åµÄ¶¥²¿Ñ¡Ôñ iSCSI_TCP Ñ¡Ï¡£[*]Ϊ LocalTCPport ÊäÈëÕýÈ·µÄÖµ¡£[*]Ñ¡Ôñ Apply¡£[/list]ÇëÕë¶Ô MDS Initiator/Target ÉèÖÃÖ´ÐÐÏÂÁвÙ×÷£º
[list=1][*]´Ó MDS É쵀 IP ÏÂÀÁбíÖУ¬Ñ¡Ôñ ISCSI¡¡£[*]ÔÚ Initiator Ñ¡ÏÉÏ£¬Ñ¡Ôñ Create¡£[*]ÔÚ iSCSI Initiator creation ¿òÖУ¬ÉèÖà iSCSI ½ÚµãÃû³Æ»ò IP µØÖ·£¬ÒÔ¼° VSAN ³ÉÔ±Éí·Ý¡£[*]ÔÚ Port WWN Mapping ÏÂÑ¡ÖÐ Persistent ¿ò¡£[*]Ñ¡Ôñ Targets Ñ¡Ï£¬È»ºóÑ¡Ôñ Create¡£[*]ÔÚ iSCSI Name ×Ö¶ÎÏÂÊäÈëÄ¿±êµÄÊʵ±Ãû³Æ¡£[*]Ϊ Initiator Access listing Ñ¡Ôñ All¡£[*]Ñ¡Ôñ All£¬»òÕß´Ó Advertised Interfaces Áбí×Ö¶ÎÖÐÑ¡ÔñÊʵ±µÄ½Ó¿Ú¡£[*]Ñ¡Ôñ Apply¡£[/list]AIX Ö÷»úÅäÖÃ
Óû§ÐèÒª¾ßÓиù¼¶±ðÊÚȨ²¢ÇÒ¾ßÓÐ AIX ϵͳ¹ÜÀíµÄÓ¦ÓÃ֪ʶ¡£
ΪÁËÀûÓà DS4000 ϵÁкó¶Ë´æ´¢£¬½«ÐèÒªÏÂÁÐ ODM Ïî¡£ÆäËû´æ´¢É豸¿ÉÄÜÐèÒªËüÃÇ×Ô¼ºÌØÓÐµÄ ODM Ï²»¹ýÐèÒªÖð¸ö´¦Àí´ËÀàÇé¿ö¡£ÇëÈ·±£ÌṩÏÂÁÐ ODM Ïî²¢½« ODM Á¬½Óµ½ DS4000 ÀàÐ͵Ĵ洢É豸¡£
[table=98%][tr][td]array.iscsi.ibm-dac-V4.add
[/td][/tr][/table]
Èç¹ûδÌṩ£¬Çë´ÓÃüÁîÐÐÖз¢³öÏÂÁÐÃüÁ
[table=98%][tr][td]odmadd array.iscsi.ibm-dac-V4.add
[/td][/tr][/table]
ÈôÒªÅäÖà iscsi0 ½Ó¿Ú£¬ÔòÐèÒª´´½¨ iSCSI µÄΨһÍøÂç½Ó¿Ú¡£Ê¹Óà SMIT£¬ÊäÈ룺
[table=98%][tr][td]smitty -> chgiscsisw[/td][/tr][/table]
/etc/iscsi/targets ÅäÖÃÎļþ
/etc/iscsi/targets ÎļþÖоßÓÐËùÐèµÄÌõÄ¿¡£/etc/iscsi Ŀ¼ÖÐÓÐÒ»¸ö targets Îļþ£¬¸ÃÎļþÒªÇó¾ßÓÐÿ¸ö iSCSI Ä¿±ê¶Ë¿ÚµÄÌõÄ¿£¬Èç Cisco Device Manager ÖÐËù¸ÅÊöµÄ¡£ÕâЩÌõÄ¿±ØÐëÒÔÏÂÃæµÄÇåµ¥ 1 ÖÐËùʾµÄ¸ñʽ½øÐд´½¨¡£targets ÎļþÖл¹¾ßÓÐÓйطÃÎʺÍÊÚȨµÄ¼¶±ðµÄʾÀý¡£
Çåµ¥ 1. /etc/iscsi/targets ÎļþµÄʾÀý
[table=98%][tr][td]##################################################################
# EXAMPLE 1: iSCSI Target without CHAP(MD5) authentication
# Assume the target is at address 192.168.3.2,
# the valid port is 5003
# The target line would look like:
#
# EXAMPLE 2: iSCSI Target with CHAP(MD5) authentication
# Assume the target is at address 10.2.1.105
# the valid port is 3260
# the CHAP secret is "This is my password."
# The target line would look like:
#
# EXAMPLE 3: iSCSI Target with CHAP(MD5) authentication and line continuation
# Assume the target is at address 10.2.1.106
# the valid port is 3260
# the CHAP secret is "123ismysecretpassword.fc1b"
# The target line would look like:
# "123ismysecretpassword.fc1b"
#
#####################################################################[/td][/tr][/table]
°´ÏÂÁиñʽÊäÈë MDS Öд´½¨µÄÿ¸öÄ¿±ê£¨´æ´¢£©µØÖ·£º
ÔÚÿһ¸ö AIX ½ÚµãÉ϶¼Ö´ÐÐ lspv ÃüÁ²¢È·±£ÕâЩ½Úµã¿ÉÒÔ·ÃÎÊËùÓпÉÓõĴ洢¡£
¿ÉÑ¡µÄÖ÷»úÅäÖÃ
ΪÁËÔÚ iSCSI ÉÏ»ñµÃ¸üÓŵÄÐÔÄÜ£¬½¨ÒéÉèÖÃÏÂÁнӿÚÓÅ»¯²ÎÊý£º
[table=98%][tr][td]tcp_recvspace=262144
tcp_sendspace=262144
rfc1323=1
jumbo frames = yes[/td][/tr][/table]
ÃüÁîÐÐÊäÈë¹ý³Ì£º
[table=98%][tr][td]ifconfig en3 down
ifconfig en3 detach
chdev -a ent3 -a jumbo_frames=yes
chdev -l en3 -a tcp_recvspace=262144
chdev -l en3 -a tcp_sendspace=262144
chdev -l en3 -a rfc1323=1
ifconfig en3 up[/td][/tr][/table]½áÊøÓï
Íê³É±¾ÎĽéÉܵIJ½ÖèÖ®ºó£¬ÄúÓ¦¸Ã¾ßÓжÔÅäÖõĺó¶Ë´æ´¢µÄ·ÃÎÊȨÏÞ¡£Çë¼ÌÐøÏÂÒ»²½¹¤×÷£¬ÑéÖ¤ÊÇ·ñÌṩÁËËùÓеĴ洢²¢ÇÒ¿ÉÒÔ½øÐзÃÎÊ¡£