- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mounted file system show 50% free but it is empty
Operating System - HP-UX
1753614
Members
6131
Online
108797
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-16-2004 08:27 AM
тАО12-16-2004 08:27 AM
mounted file system show 50% free but it is empty
I have a FS that showed 50% used but there is nothing in it. (HP-UX 11i) I tried to unmount it and it returned "busy". After fuser -cu, I found three processes and killed them. I could then umount the file system. I fsck'd it and then remounted it and it showed 100%. Can anyone explain what might have happened? This is rather urgent. Thank you.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 08:37 AM
тАО12-16-2004 08:37 AM
Re: mounted file system show 50% free but it is empty
Hi,
It is possible that a process was writing to a log file on this filesystem and the file was deleted. Since the process was still running the space was still occupied by the deleted file. When you killed the process, it released the space and doing an unmount/fsck/remount reclaimed the space. Though the umount/fsck/remount was not necessary.
You can use lsof to find any process that is holding a file open within a filesystem. To download and install lsof, if you don;t have it installed, try
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/
This link from itrc might be helpful,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072657091
The itrc doc id is KBRC00008039.
Hope this helps.
Regds
It is possible that a process was writing to a log file on this filesystem and the file was deleted. Since the process was still running the space was still occupied by the deleted file. When you killed the process, it released the space and doing an unmount/fsck/remount reclaimed the space. Though the umount/fsck/remount was not necessary.
You can use lsof to find any process that is holding a file open within a filesystem. To download and install lsof, if you don;t have it installed, try
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/
This link from itrc might be helpful,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072657091
The itrc doc id is KBRC00008039.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 08:38 AM
тАО12-16-2004 08:38 AM
Re: mounted file system show 50% free but it is empty
I assume that when you say it showed 100% that means 100% free. When a file is unlinked (rm'ed - more or less) the link count is reduced by 1. If that link count is now zero, the entry is removed from the directory. However, the space occupied is not actually freed until all process which had the file open either close the file or terminate. Man 2 unlink for more details.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP