1832927 Members
3080 Online
110048 Solutions
New Discussion

Reduce a File System

 
SOLVED
Go to solution
Arun Jain
Frequent Advisor

Reduce a File System

Dear All,

Please let me know if there is any method to reduce the size of a file system.
I can reduce the size of the LV by lvreduce command. But like extendfs is used to extend a fs, any command is there to reduce it.

Regards:
Arun
speak less say more
4 REPLIES 4
Ramesh S
Esteemed Contributor
Solution

Re: Reduce a File System

Hi

try

# fsadm -b

You should reduce the filesystem size first and reduce the lvol second..


Thanks & Regards

Ramesh
Siju Vadakkan
Trusted Contributor

Re: Reduce a File System

fsadm -F -b


if ur giving filesystem size in mega bytes dont forget to postfix "m" with size
lvdisplay will give the filesystem size in mega bytes

eg: to extend a 1GB files to 2 GB

fsadm -F vxfs -b 20480 /siju
or
fsadm -F vxfs -b 2048m /siju
Siju Vadakkan
Trusted Contributor

Re: Reduce a File System

fsadm -F -b


if ur giving filesystem size in mega bytes dont forget to postfix "m" with size
lvdisplay will give the filesystem size in mega bytes

eg: to extend a 1GB to 2 GB

fsadm -F vxfs -b 20480 /siju
or
fsadm -F vxfs -b 2048m /siju
Siju Vadakkan
Trusted Contributor

Re: Reduce a File System

fsadm -F -b


if ur giving filesystem size in mega bytes dont forget to postfix "m" with size, other wise it will reduce the filesystem.
lvdisplay will give the filesystem size in mega bytes

eg: to extend a 1GB to 2 GB

fsadm -F vxfs -b 20480 /siju
or
fsadm -F vxfs -b 2048m /siju