- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using rm, space not freed up when bdf
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
Forums
Discussions
Discussions
Discussions
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
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
06-25-2003 06:27 AM
06-25-2003 06:27 AM
I'm using 11i. I needed to clear some space to uncompress a large file. I used the rm command on another large file to get the needed space. When I used the bdf command it showed that the space available had not changed. I thought maybe it is just a bdf error in reporting. I started to uncompress the file and it bombed because it ran out of space. This mount point is on an emc disk array.
Any ideas?
Thanks,
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:31 AM
06-25-2003 06:31 AM
Re: using rm, space not freed up when bdf
fuser -cu on the filesystem to see if there are any open processes.
fuser -cuk /fsname will kill all processes on the filesystem. Don't do that on /var unless you like users to be kicked out.
lsof command will if installed let you track down and kill the offending processes.
If you reboot your box, the space will show free.
If the space is not critical, wait for the processes to fail or a maintenance window to boot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:31 AM
06-25-2003 06:31 AM
Re: using rm, space not freed up when bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:31 AM
06-25-2003 06:31 AM
Re: using rm, space not freed up when bdf
Until the last process using a file terminates, merely removing a file leaves the space in-use.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:32 AM
06-25-2003 06:32 AM
Re: using rm, space not freed up when bdf
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:32 AM
06-25-2003 06:32 AM
Re: using rm, space not freed up when bdf
Even though the rm command completed normally & the file "disappears" from ls listings, something still has it open so the space cannot be freed.
Use fuser or better yet lsof to determine the process that is still accessing it & stop or kill it, then the space will be truly freed.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:32 AM
06-25-2003 06:32 AM
Re: using rm, space not freed up when bdf
You can check it as follows.
fuser -u file_name.
or use lsof(list open files.)
Once process frees the file you will be able to reclaim the space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:32 AM
06-25-2003 06:32 AM
Re: using rm, space not freed up when bdf
YOu have deleted a file that has been opened by a process. You will need to user 'lsof' to find the opened files on the filesystem. Unless you restart the processes that are accessing that file, the space won't get freed.
Search for lsof in these forums and you should get a site from where you can download it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 06:36 AM
06-25-2003 06:36 AM
Re: using rm, space not freed up when bdf
before delete a file you need:
fuser -fu
to see if the file is used and
fuser -ku
I think you need reboot your server.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 07:26 AM
06-25-2003 07:26 AM
Re: using rm, space not freed up when bdf
It cannot see the blocks "occupied" by a still active process, for example an open log file is deleted but the process remains. the space will not been released.
bdf will see the change until the process terminates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 07:35 AM
06-25-2003 07:35 AM
Re: using rm, space not freed up when bdf
is there also another solution if:
1. dir isn't mounted
2. workstation is rebooted
3. space still isn't free:
kbytes used avial
4103198 3454239 238639
What's wrong?
Volkmar