Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20079
  • 博文数量: 4
  • 博客积分: 65
  • 博客等级: 民兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-09 15:58
文章分类
文章存档

2012年(4)

我的朋友

分类: 系统运维

2012-05-04 15:22:30

# vgdisplay -v 
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write    
VG Status                   available                
Max LV                      255   
Cur LV                      8     
Open LV                     8     
Max PV                      16    
Cur PV                      2     
Act PV                      2     
Max PE per PV               4238        
VGDA                        4  
PE Size (Mbytes)            8              
Total PE                    8456   
Alloc PE                    6428   
Free PE                     2028   
Total PVG                   0       
Total Spare PVs             0             
Total Spare PVs in use      0                    
   --- Logical volumes ---
   LV Name                     /dev/vg00/lvol1
   LV Status                   available/syncd          
   LV Size (Mbytes)            1792           
   Current LE                  224      
   Allocated PE                448        
   Used PV                     2      
   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd          
   LV Size (Mbytes)            2048           
   Current LE                  256      
   Allocated PE                512        
   Used PV                     2      
   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd          
   LV Size (Mbytes)            1024           
   Current LE                  128      
   Allocated PE                256        
   Used PV                     2      
   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd          
   LV Size (Mbytes)            512            
   Current LE                  64       
   Allocated PE                128        
   Used PV                     2      
   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd          
   LV Size (Mbytes)            104            
   Current LE                  13       
   Allocated PE                26         
   Used PV                     2      
   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd          
   LV Size (Mbytes)            8000           
   Current LE                  1000     
   Allocated PE                2000       
   Used PV                     2      
   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd          
   LV Size (Mbytes)            6952           
   Current LE                  869      
   Allocated PE                1738       
   Used PV                     2      
   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd          
   LV Size (Mbytes)            5280           
   Current LE                  660      
   Allocated PE                1320       
   Used PV                     2      

   --- Physical volumes ---
   PV Name                     /dev/dsk/c2t0d0s2
   PV Status                   available               
   Total PE                    4228   
   Free PE                     1014   
   Autoswitch                  On       
   PV Name                     /dev/dsk/c2t1d0s2
   PV Status                   available               
   Total PE                    4228   
   Free PE                     1014   
   Autoswitch                  On       
 
 

# for I in 1 2 3 4 5 6 7 8
> do
> lvreduce -m 0 /dev/vg00/lvol$I /dev/dsk/c2t0d0s2
> done
Logical volume "/dev/vg00/lvol1" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol2" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol3" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol4" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol5" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol6" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol7" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol8" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
 
 
 
# vgreduce vg00 /dev/dsk/c2t0d0s2
Volume group "vg00" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
 
 
 
 
 
阅读(1359) | 评论(0) | 转发(0) |
0

上一篇:HPUX 11.23下根盘镜像全过程(转)

下一篇:没有了

给主人留下些什么吧!~~