cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Nshenba
Occasional Advisor

Re: file sytem is full

the current size is /dev/vg00/lvol1 1048576 822505 214508 79% /usr
Sunny123_1
Esteemed Contributor

Re: file sytem is full

Hi

Firstly it was 95% now it is 79%

did you removed something????


Regards
Sunny
Nshenba
Occasional Advisor

Re: file sytem is full

Hi prasanthi

find /usr -size +10000000 -print , in this command 10000000 means what it is kb or mb, see for example i want to find the file having the size more than 2 Gb, what command i have to execute. please let me know.. points assured
Prashantj
Valued Contributor
Solution

Re: file sytem is full

Nshenba,
use
* find /usr -size +2000000000c -print for 2GB

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Nshenba
Occasional Advisor

Re: file sytem is full

So could anyone tell me how to increase the /usr file system without online JFS.. please reply with the steps and commands to execute... Thanks in advance
Yashwant
Valued Contributor

Re: file sytem is full

Check reply in new thread
subodhbagade
Regular Advisor

Re: file sytem is full

Hi,

Please check all core file in /usr with command:---

(1)find /usr - name core*

(2)du * | sort -rn | head

(3) du -kx | sort -rn | more ( This will give you the max space utilization of sub dir and file in descending order)

(4) Otherwise extend the /usr logical volume

(a) Interrupt the boot sequence and go into single user mode
(b)you will find only root and /stand file system mounted
(c)Lvextend -L final size /dev/vg/lvol
(d)extendfs -F /dev/vg/rlvol
(e) mount /dev/vg/lv /mnt point
(f) check with bdf command

Regards,
Subodh.