1833415 Members
3596 Online
110052 Solutions
New Discussion

Reducing a filesystem

 
SOLVED
Go to solution
Haitham Hamad
Regular Advisor

Reducing a filesystem

I am trying to reduce a hfs filesystem from 2.5G to 2G (used volume is up to 1.7G). Is there a simpler way than recreating the filesystem and bringing a backup. We don't have advanced JFS
5 REPLIES 5
Vikas Khator
Honored Contributor

Re: Reducing a filesystem

Nop!

Can't think of a reliable and safe way to reduce FS without advance JFS ( also not sure if advance JFS would allow you to reduce hfs filesystem)
Keep it simple
A. Clay Stephenson
Acclaimed Contributor

Re: Reducing a filesystem

In an hfs filesystem this can't be done.
If it ain't broke, I can fix that.
Rob Smith
Respected Contributor

Re: Reducing a filesystem

Just went through this myself on a 10.20 box and I had to recreate and restore. Sorry, hope this helps.

Rob

Learn the rules so you can break them properly.
Vincenzo Restuccia
Honored Contributor

Re: Reducing a filesystem

Backup your file system,umount it,lvreduce -L totalMb /dev/vgxx/lvolxx,mount and restore.
Thierry Poels_1
Honored Contributor
Solution

Re: Reducing a filesystem

lvreduce on a hfs filsystem? NO WAY

copy, backup or move your data, drop the filesystem, an recreate the (vxfs ;) filesystem.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.