1752808 Members
5996 Online
108789 Solutions
New Discussion юеВ

Re: file sytem is full

 
SOLVED
Go to solution
Nshenba
Occasional Advisor

file sytem is full

/usr file system is 95%, what are all the possibilities to solve this issue.. Could anyone tell me.. 10 points assured
16 REPLIES 16
Michal Kapalka (mikap)
Honored Contributor

Re: file sytem is full

hi,

if the file system is filled up today or some last days ago you cold check with the find command last x days changed files.

check this link :

http://www.unix.com/unix-advanced-expert-users/45700-how-find-files-older-than-4hours-hp-ux.html

but use the command carefully instead of -exec rm -f {} \; use ls () \;

mikap
Sunny123_1
Esteemed Contributor

Re: file sytem is full

Hi

Check that any unwanted data is there or not ??
use du -sk |sort -nr command and see which is taking so much size.
If you dont find any thing then only one way that you need to extend the file system.

Regards
Sunny
Sutapa Dey
Frequent Advisor

Re: file sytem is full

You may try increasing the space for the /usr partition.
Please do a bdf on the hp-ux box. It will give u the LVM on which the /usr is mounted. Then use the command lvmextend or sam to increase the space in the /usr partition.
Using SAM:
sam->disk systems->select the partition for /usr(Use tab to select)
Then go to actions and select increase size.
Set the size.
It will increase the size of /usr.
Then just unmount the filesystem and mount it again.Check this link:
http://docs.hp.com/en/B2355-60103/mount.1M.html
James R. Ferguson
Acclaimed Contributor

Re: file sytem is full

Hi:

The '/usr' filesystem should be static, growing only if/when patches and/or new software is installed.

You don't offer the size, the release you are running, whether or not you recently installed anything, or any other details. Thus, your question is meaningless. You may need to enlarge the filesystem.

You do not want to capraciously start removing things, either!

Regards!

...JRF...
Nshenba
Occasional Advisor

Re: file sytem is full

ya, i want to increase the size of the filesystem, i dont have a online JFS.
Durvesh Mendhekar
Regular Advisor

Re: file sytem is full

Hi,

Try command for example
find /usr -type f -size +150000 -print
find /usr/* -size +1000000000c -exec ls -l {} \;
and find out which file is taking more size if file is not important then remove it.

Regards,
Durvesh
James R. Ferguson
Acclaimed Contributor

Re: file sytem is full

Hi (again):

> ya, i want to increase the size of the filesystem, i dont have a online JFS.

Then you need to boot into single-user mode (where '/usr' isn't mounted). Once there, use the commands in '/sbin' -- '/sbin/lvextend' and '/sbin/extendfs' to enlarge your logical volume and your filesystem within, respectively.

When done, reboot to return your system to its fully normal state.

Regards!

...JRF...
Sajjad Sahir
Honored Contributor

Re: file sytem is full

Dear Friend

Please check the core files and remove it
by using the following command.

1.find /usr -name core -exec rm -i {} \;

Please check the /usr directory

go to /usr dir

2.#cd /usr
#du -sk |sort -n

Any big applications in /usr may be considered for moving in a seperate file system.If not consider, Please extend it
please let us know current size of /usr file system

thanks and regards

Sajjad Sahir
Prashantj
Valued Contributor

Re: file sytem is full

Hi Nshenba,

* ls -Rlt | more to view old file/directory with timestamp and remove it
* delete the "core" file
* cd /usr
find /usr -size +10000000 -print to view the file and then zip or move it to tmp and if the moved file effected on system then remove it.
* Increase the filesystem size.

Hope this will help you.

Prashant
Good judgment comes from experience and experience comes from bad judgment.