- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root size discrepancy between bdf and backup
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
11-27-2001 07:30 AM
11-27-2001 07:30 AM
root size discrepancy between bdf and backup
/dev/vg00/lvol3 409600 330052 74663 82% /
Here is a bdf of our root filesystem. A discrepancy exists between a bdf and our backup statistics. Whenever running an Omniback backup of root, its statistics report backing up 129MB. As you can see, our bdf reports 330MB used in root. Can someone help point me in the right direction about this discrepancy?
We have rebooted the server thinking that a file was deleted that bdf thought still existed, but this was not the case. After the reboot, the filesystem still reported 82% (330MB used).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 07:34 AM
11-27-2001 07:34 AM
Re: root size discrepancy between bdf and backup
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 07:37 AM
11-27-2001 07:37 AM
Re: root size discrepancy between bdf and backup
300+ MB seems awfully large for /. My largest is 126 MB and it is on a system that still has / and /stand in the same LV.
Check for files that don't belong, like /dev/rmt/om (letter o instead of zero) and see if that makes a difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 07:40 AM
11-27-2001 07:40 AM
Re: root size discrepancy between bdf and backup
Look for a non character device in /dev
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 07:55 AM
11-27-2001 07:55 AM
Re: root size discrepancy between bdf and backup
The possible reasons could be:
It is an incremental backup
or
Some directories have been excluded from the backup in the datalist definition
or
The usage of root increased dramatically (!!?) after you took the backup.
The best way to check is, take the backup again, this time interactively and see what the size is. Since it is just a few hundred MB, it should zip through quickly.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 11:41 AM
11-28-2001 11:41 AM
Re: root size discrepancy between bdf and backup
Thus far I have...
1.) Compared the last several (full) backups of / and all report approx. 120MB backed up. This includes ALL files and directories under the root. The data is not compressed nor the backup incremental. The recent backups also report 120MB (while 'bdf' still reports 330MB).
2.)I have looked in /dev/rmt for non-character devices and have found none.
If there is anything else I might be missing please let me know. Is there a command out there similar to 'bdf' that I can run to compare the results? Any ideas are welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 11:51 AM
11-28-2001 11:51 AM
Re: root size discrepancy between bdf and backup
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 11:51 AM
11-28-2001 11:51 AM
Re: root size discrepancy between bdf and backup
Note that a part of total kbytes are used for the minfree area ( this area is reserved to mantain performance ) To see what is the total allocated space use:
df -kt /FS
the difference between the kbites you see from bdf /FS and the total allocated Kb is the minfree.
To calculate the percentage do:
used allocated space / total allocated space * 100
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 12:04 PM
11-28-2001 12:04 PM
Re: root size discrepancy between bdf and backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 12:14 PM
11-28-2001 12:14 PM
Re: root size discrepancy between bdf and backup
We found this as a problem between fbackup and cpio, when copying a dir with cpio it would be much larger than actual size. Of course this does not fit your situation but it could provide some insight. Just a thought.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 12:17 PM
11-28-2001 12:17 PM
Re: root size discrepancy between bdf and backup
Before we go any further, let's do a few things:
1) How big is the actual logical volume?
lvdisplay /dev/vg00/lvol3
I'm having a hard time understanding why anyone would create as big a root
filesystem as you have.
2) do - df -k / and see if it reports similar numbers to those of bdf
3) do a du -x / and see if you see enormous directories.
If indeed your filesystem is that large, I suspect two possible answers: a) enormous directories i.e. they once had many files in them but the files have been deleted. b) sparse files. Either one of these would appear large but would in fact not be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 12:22 PM
11-28-2001 12:22 PM
Re: root size discrepancy between bdf and backup
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 01:36 PM
11-28-2001 01:36 PM
Re: root size discrepancy between bdf and backup
Background information:
400MB - space allocated for root
337MB - reported space used (df -k /)
I ran a bdf and then a du -skx
/var - bdf: 965MB du -skx /var: 955MB
/usr - bdf: 620MB du -skx /usr: 613MB
/ - bdf: 337MB du -skx / : 120MB
These are approximately the same results reported when an Omniback backup reports its results. As you can see root is the only one that is not similar. Is this an accurate test? Does du -skx / capture all files/directories under root?
Any more ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 01:51 PM
11-28-2001 01:51 PM
Re: root size discrepancy between bdf and backup
When I run and compare 'bdf', 'df -k', and 'du -skx' they all come back the same. Root is about 100-120MB on all.
I have looked around for any database files that might have been dropped into root accidentally. I can find no files (or combination of files) that would make root so abnormally large. The serve has been rebooted and the same results are reported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 02:11 PM
11-28-2001 02:11 PM
Re: root size discrepancy between bdf and backup
I never meant to imply that a large root filesystem would not function perfectly; it's just that there is very little reason to ever have a root file system bigger than about 200GB (and that is very, very generous). The reason for that is that once the OS is loaded along with patches the size of the root filesystem should be all but static.
I really think your problem is sparse files. I just need to think of a way to find them.
Here is a very common way for a sparse file to get created:
1) Open a file, write 1K of data at block 0;
2) lseek to Block 1024
3) Write 1K of data.
4) Close the file.
You just wrote a 1MB file that really has 2K of data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 02:17 PM
11-28-2001 02:17 PM
Re: root size discrepancy between bdf and backup
Let's not overlook one of the most common sparse files - core files.
cd /
find . -xdev -name 'core'
A core file could do this very easily.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 04:47 PM
11-28-2001 04:47 PM
Re: root size discrepancy between bdf and backup
I'd just about bet you have a large file held open by a running process that was deleted by hand. Until that process "closes" the file, bdf will reflect the space used as if the file is there. du only looks at the space used by directories and files that it sees. Since your backup is reporting basically the same amount of space backed up as du shows, I believe your backup is fine.
Now you've just got to find the "open but deleted" file.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 04:53 PM
11-28-2001 04:53 PM
Re: root size discrepancy between bdf and backup
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x19248ffa98a2d5118ff10090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfecdf715edc6d5118ff10090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa89f0cb17a32d5118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc0621012aa92d5118ff10090279cd0f9,00.html
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 12:56 PM
11-29-2001 12:56 PM
Re: root size discrepancy between bdf and backup
Does anybody know of a way to find sparsed files if this is the case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 01:03 PM
11-29-2001 01:03 PM
Re: root size discrepancy between bdf and backup
If you suspect open files, (which I would not expect, since you rebooted.) do a du -r and find folders that look too big. Then use lsof to see if there are any open files...
How it helps.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 01:23 PM
11-29-2001 01:23 PM
Re: root size discrepancy between bdf and backup
Sorry for not reading more closely. I missed the part where you said you had rebooted.
John's theory is a good one.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 06:22 PM
11-29-2001 06:22 PM
Re: root size discrepancy between bdf and backup
Neither HP-UX nor the filesystem management code will change any file in a filesystem, so a sparse file remains unchanged during a reboot.
A not-so common, but annoying technique by some programmers is to create a temp file that occupies space (sometimes lots of space) but has no visible entry in the directory.
A similar situation can be seen when removing an open file. Unless steps are taken to lock the file, the file can be removed (as far as the directory is concerned) but the space remains until the process that owns the file is terminated--at which point the space comes back for du and bdf.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 10:42 AM
12-03-2001 10:42 AM
Re: root size discrepancy between bdf and backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 01:39 PM
12-03-2001 01:39 PM
Re: root size discrepancy between bdf and backup
One way would be to just go and start killing off processes that you think might be contributing. Since it always comes back after a reboot, it would be something that always starts back up and repeats itself. Look in /sbin/rc#.d (mine are in rc2.d, but might your's might not be) and see what programs have startup scripts in there. Anything in S9** should be fair game, since that is an open number. Just a thought. Good luck!
Mark