System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

/usr file system geting full

 
Highlighted
Regular Advisor

/usr file system geting full

Hello Team Good morning to all of you,

We are running SAP at the front end.The /usr size is 6 gig.

Now the problem is that i am facing the issue of /usr f/s geting full almost 95 to 100%.

we donst have online jfs here. In the SAP application the tracing & looging is enable thats why the application writes the 

log in the OS it self ,now the problem is that what files need to be moved or delet .

 

Please suggest the solution

 

8 REPLIES 8
Highlighted
Honored Contributor

Re: /usr file system geting full

cd into the /usr directory and then do a 'du -ks * | sort -n' to look for the largest directory in /usr.  Once you find it cd into that directory and do the du command again until you find something that can be cleaned up.  It could be a large file in a directory or a bunch of smaller files that add up to a large amount.

 

 

Highlighted
Honored Contributor

Re: /usr file system geting full

Hi,

Welcome to the HP Community forums.

From your Facebook post in HP-UX, we see that /usr is 50% filled with the SAP installation.

Do you know if SAP is creating logs in /usr/SAP?

If true, what is the path to these logs?

 

Can you post the output from: vgdisplay vg00?

 

This will show if there is any unused space that you add to /usr.



Bill Hassell, sysadmin
Highlighted
Regular Advisor

Re: /usr file system geting full

# vgdisplay vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      11
Open LV                     11
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               4465
VGDA                        2
PE Size (Mbytes)            64
Total PE                    4455
Alloc PE                    3966
Free PE                     489
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 4465g
VG Max Extents              71440

this is the out put of the vgdisplay vg00:

My concern is we cant take a downtime as it is the bussy system in production , what should i do to free the space & what should be the recomended size of the /usr is SAP application is used ....pleas suggest


@Bill Hassell wrote:

Hi,

Welcome to the HP Community forums.

From your Facebook post in HP-UX, we see that /usr is 50% filled with the SAP installation.

Do you know if SAP is creating logs in /usr/SAP?

If true, what is the path to these logs?

 

Can you post the output from: vgdisplay vg00?

 

This will show if there is any unused space that you add to /usr.




Highlighted
Regular Advisor

Re: /usr file system geting full

Thanks Bill sir ,once again ...yes the log location is on :-
/usr/sap/RPS/log & /usr/sap/trans/log.....& one more thing to add is that we are facing the same issue in all the location.....& all these are production boxes
Highlighted
Regular Advisor

Re: /usr file system geting full

Sir ,i am getting confuse about the /usr & the /usr/sap/trans/log ,/usr/sap/RPS ...cause i deleted the unwanted files like old logs & some old application binaries ...which were of the size 20 to 25 gigs from both the location i.e /usr/sap/trans/log & /usr/sap/RPS still the /usr is showing 98% ..please advice ....
Highlighted
Acclaimed Contributor

Re: /usr file system geting full

>I deleted the unwanted files like old logs ... still the /usr is showing 98%

 

If you deleted logs that were still open (modified recently), these files won't be freed until the program is finished.

You can use lsof to find files with "zero" links.

Highlighted
Regular Advisor

Re: /usr file system geting full

no manual entry for lsof

Highlighted
Acclaimed Contributor

Re: /usr file system geting full