IBM AIX´æ´¢²ã½á¹¹¼°²Ù×÷ÃüÁîʵÏÖ
Ò»¡¢AIX µÄ´æ´¢²ã
ÔÚAIXÖУ¬¿ÉÒÔÖ±½ÓIOµÄ×îµ×²ãÉ豸ÊÇPV£¬Ò²¾ÍÊÇÎïÀí¾í£¬Í¨³£ÔÚµ¥Ó²ÅÌ»·¾³¿ÉÒÔÀí½âΪÎïÀí´ÅÅÌ£¬ÔÚ¹ÒÔصÄÓ²¼þRAIDÉ豸ÉÏ£¬PV¾ÍÊÇRAID¾í×é(ÓÐʱºò³ÆΪÂß¼¾í£¬ÐéÄâ¾í)¡£
PVͨ³£²»ÓÃÀ´Ö±½Ó´æ´¢Êý¾Ý£¬½ö×öΪVGµÄ³ÉԱʹÓá£ÒòPVµÄ´óСÊÇËæ»úµÄ£¬´æ´¢Ê±ÎªÁËЧÂÊÉϵĿ¼ÂÇ£¬VGÐèÒªÓÐÌض¨µÄ·ÖÅä¿ÅÁ£´óС£¬Õâ¾ÍÓÖÒýÈëÁË2¸ö´æ´¢¸ÅÄPPºÍLP¡£
PP(Physical Partition)ÔÚ´´½¨VGʱָ¶¨£¬Ö¸VGµÄ´æ´¢×é³ÉµÄ×îСµ¥Î»¡£ÈçPPµÄ´óСÊÇ16M£¬Òâζ×ÅÕû¸öVG¶¼ÊÇÓÉÈô¸É¸öPP×é³É(Ëƺõ¾ÍÏñPCÉϵĵ¥Ó²Å̺ÍÉÈÇøµÄ¸ÅÄî)£¬Ã¿¸öPPÒ»¶¨ÊÇÀ´Ô´ÓÚÖ¸¶¨µÄij¸öPV¡£ËùÒÔ£¬ÔÚPV¼ÓÈëVGʱ£¬´ÓPV×îÇ°ÃæµÄÒ»¶ÎVGDA¡¢VGSAÇøÓò(ºÜ¶àÊÇ0x220000 byte)¿ªÊ¼£¬Õû¸öPV¾Í±»ÃèÊö³ÉÁËÒ»¸ö¸öµÄµ¥¶ÀPP£¬VGÖÐËùÓÐPVµÄËùÓÐPPÔÚVGÖÐ˳Ðò±àºÅ£¬¾ÍÊÇÕû¸öVGµÄ¿ÉÓÿռ䡣
̸LP֮ǰÏÈ˵һÏÂLV¡£VG´´½¨³öÀ´ºó£¬¾ÍÐèÒª¶ÔÆä¿ÉÓÿռä½øÐÐÀûÓã¬Õâ¸ö¸ÅÄÀàËÆÓÚPCµÄÓ²ÅÌ·ÖÇø£¬LVÊÇVGÖÐÒ»²¿·ÖPPµÄ¼¯ºÏ¡£1¸öVGÖпÉÒÔ»®·Ö¶à¸öLV£¬µ«Ò»¸öLVÖ»¿ÉÒÔÊôÓÚÒ»¸öVG(²»¿ÉÒÔ¿çVG»®·ÖLV)¡£ÓÐʱºòPPµÄÊýÁ¿ºÜ¶à£¬ÎªÁËЧÂÊÉϵĿ¼ÂÇ£¬LVµÄ·ÖÅ䵥λ¿ÉÒÔÊǶà¸öPP£¬Õâ¾ÍÊÇLP¡£LP×îСÊÇ1¸öPP(×î¶àÇé¿ö)£¬Ò²¿ÉÒÔÊÇ2¸ö»ò3¸öPP£¬LPÓëPPµÄ¹Øϵ¾ÍÏñÎļþϵͳÀïµÄ´ØÓëÉÈÇø¡£
LV´´½¨³öÀ´ºó¾Í¿ÉÒÔ´æ´¢Êý¾ÝÁË£¬Í¨³£µÄÓÃ;ÊÇÎļþϵͳFS£¬Ò»¸öLV¿ÉÒÔ¸ñʽ»¯ÎªÒ»¸öFS£¬Ò²¿ÉÒÔÓɼ¸¸öLV×é³ÉRAID0,RAID1,RAID10£¬ÔÙ¸ñʽ»¯ÎªFS¡£
¶þ¡¢²¿·ÖAIX´æ´¢ÃüÁî
lspv ÁгöϵͳÄÚ¿Éʶ±ðµÄpv
lspv -l hdisk0 Áгö hdisk0µÄÊôÐÔÕªÒª
od ¨Ct x1 hdisk0 |more ÒÔHEX·½Ê½²é¿´hdisk0£¬¿É²âÊÔÆäÊÇ·ñ¿É¶Á
lsvg ÁгöËùÓÐVG
lsvg <vgname> ÁгöÖ¸¶¨VGÊôÐÔ
lsvg ¨Cl <vgname> ÁгöÖ¸¶¨VGϵÄLVÐÅÏ¢
lsvg ¨CM <vgname> ÁгöÖ¸¶¨VGÏÂPPµÄLV·ÖÅäMAP±í¡£
lslv <lvname> ÁгöÖ¸¶¨lvÊôÐÔ
lslv ¨Cm <lvname> ÁгöÖ¸¶¨lvÔÚVGÖеÄPP MAP·ÖÅä±í¡£
cfgmgr ʶ±ðÐÂÓ²¼þ£¬ÈçÐÂpv
cfgmgr ¨Ci iscsi ʶ±ðеÄiscsi´ÅÅÌ
´´½¨ÃüÁîÂÔ(¿ÉÒÔÓÃsmit )
varyonvg ¼¤»îVG
varyoffvg ·Ç¼¤»îVG
´ÓPVÖе¼ÈëVG£º importvg ¨Cy <vgname> <pvname>
´´½¨Ò»¸ö²âÊÔ»·¾³£¬»ùÓÚISCSI
{
iscsi²¿·Ö£º
1¡¢´¦ÀíTARGET²¿·Ö£¬WINDOWSÉϵÄSTARWIND£¬WINTARGET,LINUXÉϵÄOPENFILERÖ®ÀàµÄ
2¡¢lsdev |grep iscsi,Èç¹ûÌáʾ¡°iscsi0 Available iSCSI Protocol Device¡± ±íʾISCSI¿Í»§¶ËÒѾ°²×°£¬É豸ºÅÊÇiscsi0¡£Ò²¿ÉÒÔÓÃlslpp -L|grep -i iscsi È·ÈÏÊÇ·ñÒѾ°²×°ÁËISCSIÈí¼þ°ü¡£
3¡¢vi /etc/iscsi/targets ÔÚ×îºóÒ»ÐУ¬ÒÔ¿Õ¸ñ¸ô¿ª£¬·ÖÉÏ"IP ¶Ë¿Ú iqn_name"£¬Èç
192.168.1.153 3260 iqn.2003-06.com.rocketdivision.starwind.www.datahf.net.imagefile0
4¡¢cfgmgr -i iscsi(ɨÃèËùÓÐISCSIÉ豸)»ò cfgmgr -l iscsi0£¨Ö»É¨Ãèiscsi0É豸£¬¼ûÉÏÃæiscsi0É豸µÄ»ñÈ¡¹ý³Ì£©
5¡¢lspv »òlsdev -Cc diskÈ·ÈÏ´ÅÅÌÊÇ·ñ¹ÒÉÏ£¬¿ÉÓÃlsattr -El hdisk£¿²é¿´´ÅÅÌϸ½Ú
VG\LV\FS²¿·Ö(ÍƼöÓÃsmit)£º
1¡¢chdev -l hdisk? -a pv=yes (ΪhdiskÉú³Épvid) 2¡¢mkvg -y testvg hdisk? (´´½¨VG) 3¡¢mklv -y testlvjfs2 testvg 600 (´´½¨LV) mklv -y testlvjfs2log testvg 30 4¡¢chlv -t jfs2 testlvjfs2 chlv -t jfs2log testlvjfs2log mkfs -V jfs2 -o log=/dev/testlvjfs2log /dev/testlvjfs2 5¡¢mount -o log=/dev/testlvjfs2log /dev/testlvjfs2 /mnt/j2fs
}
ɾ³ýVG£ºremovevg(СÐÄ¡£Êý¾Ý»á¶ª£¬µ±È»»¨Ç®ÕÒÎÒÃDZ±ÑÇÊý¾Ý»Ö¸´ÖÐÐÄÊÇ¿ÉÒÔ»Ö¸´µÄ£¬ºÙºÙ)
ɾ³ýÒ»¸ö²âÊÔ´æ´¢µÄ¹ý³Ì
{
µ¼³öVG£º
umount <FS>
varyoffvg <vgname>
exportvg <vgname> (Èç¹ûPVÒѾ¶ªÊ§£¬Ö±½ÓÖ´ÐдËÃüÁî¼´¿É´ÓODM¿âÖÐÇå³ýVGÐÅÏ¢)
ɾ³ýPV£ºrmdev -dl hdisk?(¿ÉÒÔ½«ÎÞЧµÄhdiskÐÅÏ¢ÊÍ·Å)
}
logform ¸ñʽ»¯jfs /jfs2ÈÕÖ¾(ÈÕÖ¾Ëð»µÊ±»òÐíÐèÒª)
|