- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Space not being returned to /tmp after file de...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 12:58 AM
тАО04-19-2002 12:58 AM
1. Why hasn't the space been returned even though the file has disappeared.
2. Is there any way of associating a user to a temporary file prior to deleting it.
Any advice will be very much appreciated. Bob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:02 AM
тАО04-19-2002 01:02 AM
SolutionThe space is no returned because the process that had the file open still runs. When the proces stops, you'll see that the space is freed.
To check which proces has a file open, use "fuser".
HtH,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:03 AM
тАО04-19-2002 01:03 AM
Re: Space not being returned to /tmp after file detetion
bdf needs some time to 'see' the free space. It checks on inode number, with du -sk you'll see that there should be free space.
try the search option, there where threads about this very recently.
Good luck, Emiel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:04 AM
тАО04-19-2002 01:04 AM
Re: Space not being returned to /tmp after file detetion
Mark is right.
Probably the oracle users process is holding the space unavailable.
If this user logs out, or you stop and start oracle db the space will be returned.
Regards,
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:24 AM
тАО04-19-2002 01:24 AM
Re: Space not being returned to /tmp after file detetion
reboot the server once , the space statistics
will be correct.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:27 AM
тАО04-19-2002 01:27 AM
Re: Space not being returned to /tmp after file detetion
See this similar issue:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdec879bffde7d4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:29 AM
тАО04-19-2002 01:29 AM
Re: Space not being returned to /tmp after file detetion
As suggested, it is the problem of file handles being active with some processes. You can find the process that is still using it using lsof.
You can download it from
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 01:32 AM
тАО04-19-2002 01:32 AM
Re: Space not being returned to /tmp after file detetion
Once the process has terminated, the space
will be returned as the file will have also been released from memory. You can also use a
handy tool called 'lsof' to assist you
with this type of situation. Here is a link
to where you can download a binary copy
ready to install for your version.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2002 04:04 AM
тАО04-19-2002 04:04 AM
Re: Space not being returned to /tmp after file detetion
When you choose a file to delete, you have to check if there is a user process over the file, using fuser.
If you want to delete the file anyway, first you have to " empty " the file them delete it:
>
rm
On your situation, it is necesary reboot the system, and the real free space will be returned.
That is because, while a file is being used by a user there is semaphores and memory segments used, if you delete it, the semaphores and memory segments are still in use until you reboot the machine.
I hope this help you.