AIXÐÞ¸ÄPVID

AIXÏÂPVIDÏê½â¼°ÆäÐ޸ķ½·¨

AIX-IBM PowerС»ú zihan 4¸öÔÂÇ° (09-19) 339ä¯ÀÀ 0ÆÀÂÛ 1.PVIDÊÇʲô

PVIDÈ«³Æphysical volume identifier,Ëü·Ç³£ÖØÒª£¬Ï൱ÓÚÈíÐòÁкţ¬µ±°ÑÒ»¸ö´ÅÅ̱ä³ÉPVʱ£¬¾ÍÉú³ÉÁËPVID£¬PVIDÊÇÓÉ»úÆ÷ÐòÁкÅ(uname -mµÄÇ°

8λ)ºÍËüÉú³ÉµÄʱ¼ä×é³É£¬ÕâÖÖ»úÖƱ£Ö¤ÁËPVIDµÄΨһÐÔ¡£µ±ÏµÍ³Æô¶¯Ê±£¬´ÅÅÌÅäÖóÌÐò»áÑ°ÕÒ´ÅÅÌÉϵÄPVID£¬²¢°ÑËü¸úODM¿âÖеÄPVIDÐÅÏ¢½øÐбÈ

¶Ô£¬Èç¹ûÔÚODMÖÐÕÒµ½Æ¥ÅäµÄÌõÄ¿£¬Ôò°ÑºÍÕâ¸öPVIDÏà¶ÔÓ¦µÄhdiskºÅ¸³ÓèÕâ¸öPV£¬Èç¹ûûÓÐÆ¥ÅäµÄÌõÄ¿£¬Ôò¸³ÓèÕâ¸öPVIDеÄhdiskºÅ¡£

2.PVID±£´æÔÚʲôµØ·½ PVID´æÔÚÓÚ¶à¸öλÖãº

¢ÙÓ²ÅÌÍ·²¿0ÉÈÇøµÄ128×Ö½Ú¡£Õâ¸öÊÇ×îÖØÒªµÄ£¬ÆäËûµØ·½´æÔڵĸÃPVµÄPVID¶¼ÒªºÍËüÏàͬ¡£ ¢ÚODMÖС£µ±ÎÒÃÇÖ´ÐÐchdev -l hdiskx -a pv=yesÕâÌõÃüÁîʱ£¬»á¶ÁÈ¡Ó²ÅÌÍ·²¿0ÉÈÇø128×Ö½ÚÖеÄPVID£¬Èç¹û´æÔÚPVID£¬ÄÇô¾Í°ÑPVIDͬ²½Ð´Èë ODM£¬Èç¹û²»´æÔÚPVID£¬Ôò °´¹æÔòÉú³ÉPVID¡£ ¢ÛVGDAÖС£

3.ÈçºÎ²éѯPVID ¢Ùlspv

¢Úlquerypv -H /dev/hdiskx

4.PVIDÄÜÐÞ¸Äô

PVIDµ±È»ÄÜÐ޸ģ¬µ«Ç§Íò±ðËæÒâÐ޸ģ¬ÀýÈç²»ÒªËæÒâÖ´ÐÐchdev -l hdiskx -a pv=clearÃüÁî¡£ÄÇʵÔÚÒªÐ޸ĵĻ°Ôõô°ìÄØ£¬¿ÉÒÔÖ´ ÐÐchdev -l hdiskx -a pv=clear£¬ È»ºóÖ´ÐÐchdev -l hdiskx -a pv=yes£¬ÕâÑù¾ÍÉú³ÉÁËеÄPVID£¬Èç¹ûÒªÐ޸ijÉÖ¸¶¨µÄpvid£¬¿ÉÒÔ Ê¹Óýű¾£¬»òdiag¨Ctask selection¨Cdisk maintenanceʹÓÃͼÐνçÃæ

Ð޸ģ¨×¢ÒâÔ¶³ÌÁ¬½ÓÈí¼þ°ÑÖÕ¶ËÉèÖóÉxterm£©¡£ 5¡¢PVIDµÄÐ޸ķ½·¨£º

1¡¢Í¨¹ýÃüÁîÐÐÐÞ¸Ä

ÏÂÃæµÄÀý×ÓÊÇ°Ñhdisk2µÄPVID¸Ä³É£º00123456cafebabe £¨1£©Ê×ÏÈÇå³ýµôhdisk2µÄÔ­ÓÐPVID # chdev -l $DISK -a pv=clear hdisk2 changed

£¨2£©²é¿´hdisk2µÄPVIDÐÅÏ¢ # lspv | grep hdisk2 hdisk2 none None

£¨3£©°ÑPVIDÐ޸ijÉ00123456cafebabe£¬ÒªÏÈ°ÑÊ®Áù½øÖÆת»»³É°Ë½øÖÆ¡£ÎÒÃÇ¿ÉÒÔÔÚAIXÏÂÓÃbcÃüÁî½øÐÐת»»¡£ # bc ibase=16 obase=8 00

0 <= \\0000 12

22 <= \\0022 34

64 <= \\0064 56

126 <= \\0126 CA

312 <= \\0312 FE

376 <= \\0376 BA

272 <= \\0272 BE

276 <= \\0276

# echo \# cat /tmp/myPVID | dd of=/dev/hdisk4 bs=1 seek=128 8+0 records in. 8+0 records out.

# lquerypv -h /dev/hdisk4 80

00000080 00123456 CAFEBABE 00000000 00000000 |..4V¡­¡­¡­¡­| # rmdev -dl hdisk4 hdisk4 deleted # cfgmgr

# lspv | grep hdisk4

hdisk4 00123456cafebabe None

2¡¢Í¨¹ýdiag²Ëµ¥½øÐÐÐ޸ġ£ £¨1£©ÐÞ¸ÄÖն˻·¾³¡£ # export TERM=xterm £¨2£©varyoffvg¾í×é¡£

£¨3£©½øÈëdiag²Ëµ¥½øÐÐÐ޸ġ£

diag¨Ctask selection¨Cdisk maintenance-Display/Alter Sector

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@) ËÕICP±¸20003344ºÅ-4