打印

求助:lv不能扩展

求助:lv不能扩展

新加了一个硬盘到vg00想扩展/dev/vg00/oracle到15000,用下面命令要报错 不明白是怎么回事
哪位高手解惑一下
root>lvextend -L 15000 /dev/vg00/oracle                              
Warning: rounding up logical volume size to extent boundary at size "15008" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/oracle" could not be extended.                        
Failure possibly caused by strict allocation policy

vg信息如下:
root>vgdisplay /dev/vg00                                         
--- Volume groups ---                                                   
VG Name                     /dev/vg00                                            
VG Write Access             read/write                                          
VG Status                   available                                       
Max LV                      255                                             
Cur LV                      12                                    
Open LV                     12                                 
Max PV                      16                                                   
Cur PV                      3                                                   
Act PV                      3                              
Max PE per PV               4384                           
VGDA                        6                                 
PE Size (Mbytes)            16                                      
Total PE                    13122                                   
Alloc PE                    8706                                       
Free PE                     4416                                       
Total PVG                   0                                         
Total Spare PVs             0                                         
Total Spare PVs in use      0

TOP

lvdisplay -v /dev/vg00/oracle 看看

TOP

lv  大小有问题
vgdisplay -v vg00 看看oracle的大小是多少

TOP

从楼主提供的信息来看,vg00有3个PV,空闲空间有64G,但看不出空闲空间在三个PV上是如何分布的,也看不出ORACLE逻辑卷是分布在哪个PV上.

我猜测的可能性是不是ORACLE逻辑卷的PE分配策略是连续分配,而不是缺省的非连续分配.如果是这样的话,ORACLE卷扩到15G(具体扩大多少不知道),而它所在的PV空闲空间已经没有这么多了,所以报错.

以下是一个例子,环境是:
VG00含两块盘,/C1T2D0和/C2T2D0,其中/C2T2D0空间已满,/C1T2D0大约有13G的空间,
ORACLE卷分布在/C2T2D0上,PE分配策略是连续分配的,此时再扩,就会报错.
报错信息和楼主的不完全一样,但可供参考.

操作如下:

dh4:/#lvdisplay /dev/vg00/lvol3
--- Logical volumes ---
LV Name                     /dev/vg00/lvol3
VG Name                     /dev/vg00
LV Permission               read/write   
LV Status                   available/syncd           
Mirror copies               0            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            1000            
Current LE                  250      
Allocated PE                250         
Stripes                     0      
Stripe Size (Kbytes)        0                  
Bad block                   off         
Allocation                  strict/contiguous         
IO Timeout (Seconds)        default            

dh4:/#lvextend -L 1200 /dev/vg00/lvol3
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
dh4:/#vgdisplay vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255   
Cur LV                      9      
Open LV                     9      
Max PV                      16     
Cur PV                      2      
Act PV                      2      
Max PE per PV               4350         
VGDA                        4   
PE Size (Mbytes)            4               
Total PE                    8680   
Alloc PE                    5281   
Free PE                     3399   
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0

TOP

解决了吗/

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-11-20 17:30 京ICP证060528 号

Designed By 17DST