Troubleshooting For AIX LVM:0516-787

Today,when i extend a lv,i got following errors:

  
  
  
  
  1. # chfs -a size=80G /oradata 
  2. 0516-787 extendlv: Maximum allocation for logical volume datalv 
  3.         is 960. 

View Logical Volume information:

  
  
  
  
  1. # lslv -l datalv 
  2. datalv:/oradata 
  3. PV                COPIES        IN BAND       DISTRIBUTION   
  4. hdisk6            799:000:000   20%           160:160:159:160:160  
  5. hdisk7            161:000:000   99%           000:160:001:000:000 

View Volume Group information:

  
  
  
  
  1. # lsvg dbvg 
  2. VOLUME GROUP:       dbvg                     VG IDENTIFIER:  00f7252000004c0000000137e88db642 
  3. VG STATE:           active                   PP SIZE:        64 megabyte(s) 
  4. VG PERMISSION:      read/write               TOTAL PPs:      1598 (102272 megabytes) 
  5. MAX LVs:            256                      FREE PPs:       445 (28480 megabytes) 
  6. LVs:                5                        USED PPs:       1153 (73792 megabytes) 
  7. OPEN LVs:           5                        QUORUM:         2 (Enabled) 
  8. TOTAL PVs:          2                        VG DESCRIPTORS: 3 
  9. STALE PVs:          0                        STALE PPs:      0 
  10. ACTIVE PVs:         2                        AUTO ON:        yes 
  11. MAX PPs per VG:     32512                                      
  12. MAX PPs per PV:     1016                     MAX PVs:        32 
  13. LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no 
  14. HOT SPARE:          no                       BB POLICY:      relocatable  
  15. PV RESTRICTION:     none                                       

From above VG information,the dbvg has enough PPs to use,so you must increase the maximum allocation for logical volume datalv.Calculate the number of LPs needed = LV Size in MB / LP size in MB.Here,i want increase datalv to 80G,so LPs=80G*1024/64=1280.

  
  
  
  
  1. # chlv -x 1280 datalv 
  2. # chfs -a size=80G /oradata 
  3. Filesystem size changed to 251658240 

 

本文出自 “candon123” 博客,谢绝转载!

你可能感兴趣的:(AIX)