Re: /usr is 100% full in HP-UX server. Which file can be deleted? (480 Views)
Reply
Occasional Visitor
kapil400001
Posts: 1
Registered: ‎01-14-2014
Message 1 of 6 (538 Views)

/usr is 100 % full in hp-ux server .which file can be deleted?

[ Edited ]

/usr is 100 % full in hp-ux server .which file can be deleted?

 

 

P.S. This thread has been moved from Your Questions Regarding Business Support Forums (Legacy BSC forum) to HP-UX > sysadmin. -HP Forum Moderator

Acclaimed Contributor
Dennis Handly
Posts: 25,210
Registered: ‎03-06-2006
Message 2 of 6 (510 Views)

Re: /usr is 100% full in HP-UX server. Which file can be deleted?

Is this a separate filesystem and how large is it?

Did it become full recently?  Did you install software recently?

 

Can you find any large directories?

HP Pro
pradeep m
Posts: 154
Registered: ‎12-08-2010
Message 3 of 6 (484 Views)

Re: /usr is 100 % full in hp-ux server .which file can be deleted?

Run the below command to find the 10 largest files under /usr

 

# find /usr -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10

 

If you have free PV's available in vg00, then you can extend the /usr lvol to get space. 

Regards,
Pradeep

I am an HP Employee
Acclaimed Contributor
Dennis Handly
Posts: 25,210
Registered: ‎03-06-2006
Message 4 of 6 (480 Views)

Re: /usr is 100% full in HP-UX server. Which file can be deleted?

[ Edited ]

You can speed up that find by using -exec ... +:

# find /usr -type f -xdev -exec ll -d {} + | sort -rn -k5 | head -n 10

 

Frequent Advisor
RJHall
Posts: 33
Registered: ‎05-30-2013
Message 5 of 6 (461 Views)

Re: /usr is 100 % full in hp-ux server .which file can be deleted?

In case it's a bunch of small files in a directory:

 

$ nice find /usr -type d -exec du -sk {} \; | sort -nr | more

 

and see if anything odd stands out.

Occasional Advisor
paul bednarsh
Posts: 8
Registered: ‎09-12-2010
Message 6 of 6 (445 Views)

Re: /usr is 100 % full in hp-ux server .which file can be deleted?

cd to /var

run: du -skx * | sort -n

 

this should give you an idea of whats taking up the most space

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.