1828596 Members
1876 Online
109983 Solutions
New Discussion

reduce / FS

 
SOLVED
Go to solution
Vick10
Advisor

reduce / FS

I've just installed HPUX 11.23 EOE, with default SW selection, while setting the FS size I was suprised to see a message saying that the / partition has to be at least 1152MB for the SW selection, I wanted it to be 1000MB. I had no choice so I set it to 1500MB. After the installation the / FS usage was only 372MB

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1540096 327384 1203296 21% /

I need to know :

1. Why did the system says / has to be 1152MB when the actual usage was only 372MB

2. Is there any way to reduce the / partition from 1500MB to 1000MB now ??


Appreciate any leads. Thanks....

7 REPLIES 7
Jaime Bolanos Rojas.
Honored Contributor
Solution

Re: reduce / FS

Hi Vick,

Most likely the system was planning for future needs, so given that resizing the / FS is not easy ( well it´s easy :-) ) then it calculated possible future needs.

Now you can make it smaller if you want to, just make a make_tape_recovery, boot from it, enter into interactive mode and resize the root file system to something smaller.

Regards,

Jaime
Work hard when the need comes out.

Re: reduce / FS

>> 1. Why did the system says / has to be 1152MB when the actual usage was only 372MB

You don't want a root FS thats at over 90% full do you? Also one day you might want to upgrade this OS to 11iv3, so assigning plenty of space to the filesystems is always a sensible idea. Diskspace is cheap - why do you care about 500MB?

>> 2. Is there any way to reduce the / partition from 1500MB to 1000MB now ??

If you really want to... I guess this would work - but I'd advise you to take an Ignite backup first:

fsadm -F vxfs -b 1024000 /

lvreduce -L 1000 dev/vg00/lvol3

HTH

Duncan



I am an HPE Employee
Accept or Kudo
Ivan Krastev
Honored Contributor

Re: reduce / FS

And before doing any reduce, do a defragmentation of the file system - just in case.

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

and after that reduce:

# fsadm -F vxfs -b 1024M /

# lvreduce -L 1024M /dev/vg00/lvol3


regards,
ivan
Steven E. Protter
Exalted Contributor

Re: reduce / FS

Shalom,

If you have Online JFS (I think you do), you can us fsadm to reduce the file system hot without downtime or umount.

This is fairly straightforward and is well documented in the man page.

Its fairly i/o intensive, and I always back up the data before doing it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: reduce / FS

Shalom,

after reducing the file system, lvreduce must be run to get any disk space back.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vick10
Advisor

Re: reduce / FS

Ivan,

Thanks alot for your solution,
I was able to resize the / FS without having to reinstall the OS,
YOUR'E THE BEST !!

Thanks to everyone else too, who poured some ideas