- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question about directories.
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
08-02-2005 03:21 AM
08-02-2005 03:21 AM
11.11
vxfs
patch bundle december 2004
Need a sanity check on what i see in a ls output;
drwxr-xrwx 2 psoft gpsoft 22945792 Aug 2 10:50 logsWaitingToRemove
# cd logsWaitingToRemove
# ll | wc -l
6324
# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvpsoft 94044160 80080196 13803424 85% /psoft
Cust reports that the 22945792 number rarely changes. even if he reduces the file count to 2k or less. Want to know what this number represents.... thats just a representation of pointers, right?
Just need to explain this to the cust so they dont flip out over nothing.
Regards,
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 03:27 AM
08-02-2005 03:27 AM
Re: Question about directories.
You will see that grow as needed as files get added to a directory. However, when you remove files from a directory, that size does *NOT* shrink.
The only way to shrink it is to remove it and recreate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 03:39 AM
08-02-2005 03:39 AM
Re: Question about directories.
I came across same issue (with log directory too !). If you can take it offline that should not take too long.
also check thread :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619233
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 03:43 AM
08-02-2005 03:43 AM
SolutionThis number isn't the size of the file space used in the directory, it's the size of the file structure. Directory structures just grow. If you remove most of the files in the directory, the structure would remain the same size, overly simplified as just full of null pointers (instead of pointers to inodes).
If they want to see that size of the CONTENTS of the directory is smaller - then do a du -sk logsWaitingToRemove. You'll see that the size of files used by the directory does reduce, just not the size of the directory structure, which is just a bunch of pointers.
If you want to reduce the size of the dir structure, then make another directory (sibling directory) and move everything into the new directory (wont take but a second), remove the logsWaitingToRemove directory, then rename the new directory to logsWaitingToRemove.
mkdir temp
mv logsWaitingtoRemove/* temp
rmdir logsWaitingtoRemove
mv temp logsWaitingtoRemove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 04:08 AM
08-02-2005 04:08 AM