Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Tuesday, September 2, 2014

How to reduce size of a FileSystem + HPUX

How to reduce size of a FileSystem :

mount point : /kirdata
LV Name: /dev/lvol2/kirdata
Total size: 15G
Need to reduce FS by 5GB so new size will be 10GB


Solution:

1. Take backup of particular FS

2. OnLineJFS must be installed on your system

    #swlist | grep -i OnLineJFS

If yes...

3. Defragment the mount point: 

   #fsadm -F vxfs -d -D -e -E
  #fsadm -F vxfs -d -D -e -E /kirdata

-d Reorganizes directories. 

-D Reports on directory fragmentation.

-e Extent reorganization. 

-E Reports on extent fragmentation. 

4. Reduce the filesystem:

#fsadm -b

#fsadm -b 10240M /kirdata   

5. Reduce the logical volume:

#lvreduce -L

#lvreduce -L 10240M /dev/lvol2/kirdata


6. To verify :

It should display new size of LV:

#lvdisplay /dev/lvol2/kirdata


Thanks...
Kiraan B Jadhhav


**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment