UnixPedia : HPUX / LINUX / SOLARIS: HPUX :Increase the /var with 1GB

Sunday, April 13, 2014

HPUX :Increase the /var with 1GB



Increase the /var with 1GB.
Overview
Increase the /var with 1GB.
Procedures
In case of no file can be deleted or housekeeped from FS /var. Then admin can choose to increase the sze of FS as per growth rate provided vg00 have enough PE for extension.

Bladem01:root:/.root
# bdf /var
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol8    5144576 3554082 1498307   70% /var
Bladem01:root:/.root
#
Bladem01:root:/.root
# vgdisplay /dev/vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write    
VG Status                   available                
Max LV                      255   
Cur LV                      11    
Open LV                     11     
Max PV                      16    
Cur PV                      4     
Act PV                      4     
Max PE per PV               4350        
VGDA                        8  
PE Size (Mbytes)            4              
Total PE                    17380  
Alloc PE                    15616  
Free PE                     1764   
Total PVG                   0       
Total Spare PVs             0             
Total Spare PVs in use      0                    
Bladem01:root:/.root
Bladem01:root:/.root
# lvdisplay /dev/vg00/lvol8
--- Logical volumes ---
LV Name                     /dev/vg00/lvol8
VG Name                     /dev/vg00
LV Permission               read/write  
LV Status                   available/syncd          
Mirror copies               1           
Consistency Recovery        MWC                
Schedule                    parallel    
LV Size (Mbytes)            5024           
Current LE                  1256     
Allocated PE                2512       
Stripes                     0      
Stripe Size (Kbytes)        0                  
Bad block                   on          
Allocation                  strict                   
IO Timeout (Seconds)        default            
Bladem01:root:/.root
# bc
5024+1024
6048
Bladem01:root:/.root
# lvextend -L 6048 /dev/vg00/lvol8
Logical volume "/dev/vg00/lvol8" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Bladem01:root:/.root
# fsadm -b 6048M /var
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rlvol8 is currently 5144576 sectors - size will be increased
Bladem01:root:/.root
#
Bladem01:root:/.root
# bdf /var
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol8    6193152 3553666 2481736   59% /var
Bladem01:root:/.root
Keywords.
fsadm, lvextend, bdf.

No comments:

Post a Comment