- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Archived redo log size reported inconsistently...
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
тАО08-19-2003 02:36 PM
тАО08-19-2003 02:36 PM
I have an oracle RAC implementation on HPUX 11i and the file system seems to be reporting inconsistent file sizes for archived redo logs. If I use "ls -l" on the root directory of the volume (no significant sub directory data) I see file sizes that when added up are much larger than the volume used from bdf and the disk usage via du. (bdf and du agree as does lstat in an application)
Worst example reported 50MB when du is reporting 17MB.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2003 03:05 PM
тАО08-19-2003 03:05 PM
SolutionHere is an example of a 2 byte file that occupies 1,000,000 bytes.
char x = 'X';
int n = 0;
off_t offset = 0;
fdes = open("/tmp/myfile",O_CREAT,0666);
n = write(fdes,(void *) &x,sizeof(x));
offset = lseek(fdes,(off_t) 1000000,SEEK_SET);
n = write(fdes,(void *) &x,sizeof(x));
(void) close(fdes);
In the remote chance that you don't speak C, this is an example that writes 1 byte at offset 0; seeks to the 1,000,000th byte offset; and writes 1 more byte.
This would result in ls -l displaying 1000000 but the disk usage (as reported by du and bdf) would be but 2 blocks (not 2 bytes because of the large offset).
Surprisingly, a copy (cp) of this file would actually copy 1000000 bytes, filling in the sparse regions with NUL's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2003 03:20 PM
тАО08-19-2003 03:20 PM
Re: Archived redo log size reported inconsistently by HPUX
One other question :
In the example where ll says 50MB and du says 17MB would the 33MB that is not actually used be reserved for this file or is it available to any file on the O/S ? (i.e. is bdf/du reporting true free space on the file system or simply unused space which may actually be reserved ?)
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2003 03:32 PM
тАО08-19-2003 03:32 PM
Re: Archived redo log size reported inconsistently by HPUX
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2003 03:36 PM
тАО08-19-2003 03:36 PM