- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- du and bdf doesn't match, 70 gb space missing
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
Forums
Discussions
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
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-10-2004 10:05 AM
08-10-2004 10:05 AM
du and bdf doesn't match, 70 gb space missing
Anyone had this problem before?
# bdf /u26
Filesystem kbytes used avail %used Mounted on
/dev/vg18/lvol1 106020864 93894000 12090048 89% /u26
there are 2 directories under /u26,
/u26/oracle has 13 GB, /u26/patches has 1.6 GB, but bdf is showing 93GB used.
Response center said it is caused by deleting open files when the Oracle process is running, but this is Oracle home and only listeners are running from it, it has no open files to be deleted.
Any ideas anyone?
Thanks a lot in advance! points ganranteed!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 10:32 AM
08-10-2004 10:32 AM
Re: du and bdf doesn't match, 70 gb space missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 10:34 AM
08-10-2004 10:34 AM
Re: du and bdf doesn't match, 70 gb space missing
# lsof -p
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.71/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 10:39 AM
08-10-2004 10:39 AM
Re: du and bdf doesn't match, 70 gb space missing
differences between du and bdf are generaly caused by deleting files which were still in use. The free space will only be reclaimed when the process exits (normally or after a kill).
To find out who/what:
- fuser can show you which processes are active in that filesystem (might be many)
- lsof
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:18 PM
08-10-2004 02:18 PM
Re: du and bdf doesn't match, 70 gb space missing
lsof |grep '
It happened 'cause someone deleted a file which opened a process
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:36 PM
08-10-2004 02:36 PM
Re: du and bdf doesn't match, 70 gb space missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 02:04 AM
08-11-2004 02:04 AM
Re: du and bdf doesn't match, 70 gb space missing
One quick question, there are lot of Oracle trace logs which is deleted periodically, are those files "open files"?
I was told Oracle process opens it, write to it, and close it right away. It will not cause problem if we delete them. Is is true?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 06:50 AM
08-11-2004 06:50 AM
Re: du and bdf doesn't match, 70 gb space missing
Now you can recover space from a large file by replacing the contents with nothing (/dev/null). This is regardless of whether the file is open or not. Now what such a command will do to the program is unknown -- that must be defined by the program's author. There will indeed be open files if there are executables that are running from those directories, and it doesn't matter if the files are open for read-only.
So to recover the space, you need to download lsof (the fuser command is useless in this situation) from http://hpux.connect.org.uk/ This command will discover exactly what processes have open files on a given filesystem (or file).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 09:26 AM
08-11-2004 09:26 AM
Re: du and bdf doesn't match, 70 gb space missing
Pls see the output:
# lsof -p 13600
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
oracle 13600 oracle cwd DIR 64,0x180001 8192 110114 /u26/oracle/OraHome3/dbs
oracle 13600 oracle txt REG 64,0x180001 75751280 110177 /u26/oracle/OraHome3/bin/oracle
oracle 13600 oracle mem REG 64,0x8 532 2191 /var/spool/pwgr/status
oracle 13600 oracle mem REG 64,0x7 12794 1578 /usr/lib/tztab
oracle 13600 oracle mem REG 64,0x7 141016 8635 /usr/lib/pa20_64/libxti.2
oracle 13600 oracle mem REG 64,0x7 703232 7793 /usr/lib/pa20_64/libnsl.1
oracle 13600 oracle mem REG 64,0x7 1860512 4349 /usr/lib/pa20_64/libc.2
oracle 13600 oracle mem REG 64,0x7 227000 4373 /usr/lib/pa20_64/libm.2
oracle 13600 oracle mem REG 64,0x7 24032 4356 /usr/lib/pa20_64/libdl.1
oracle 13600 oracle mem REG 64,0x7 20472 7796 /usr/lib/pa20_64/libnss_dns.1
oracle 13600 oracle mem REG 64,0x7 168272 4379 /usr/lib/pa20_64/libpthread.1
oracle 13600 oracle mem REG 64,0x7 49056 4383 /usr/lib/pa20_64/librt.2
oracle 13600 oracle mem REG 64,0x7 1044464 4351 /usr/lib/pa20_64/libcl.2
oracle 13600 oracle mem REG 64,0x180001 7761240 113596 /u26/oracle/OraHome3/lib/libjox9.sl
oracle 13600 oracle mem REG 64,0x180001 10240 110109 /u26/oracle/OraHome3/lib/libskgxn9.sl
oracle 13600 oracle mem REG 64,0x180001 6144 99038 /u26/oracle/OraHome3/lib/libodmd9.sl
oracle 13600 oracle mem REG 64,0x7 294056 4340 /usr/lib/pa20_64/dld.sl
oracle 13600 oracle 0u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 1u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 2u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 3u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 4u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 5u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 6u REG 64,0x180001 38430 114240 /u26 (/dev/vg18/lvol1)
oracle 13600 oracle 7u REG 64,0x180001 38430 114240 /u26 (/dev/vg18/lvol1)
oracle 13600 oracle 8u CHR 3,0x2 0t0 66 /dev/null
oracle 13600 oracle 9u REG 64,0x180001 1038 73813 /u26 (/dev/vg18/lvol1)
oracle 13600 oracle 10u unix 64,0x8 0t0 3576 /var/spool/sockets/pwgr/client13600 (0x54d60340)
oracle 13600 oracle 11u REG 64,0x180001 24 114254 /u26/oracle/OraHome3/dbs/lkQA01
oracle 13600 oracle 12u REG 64,0x180001 667648 95386 /u26/oracle/OraHome3/rdbms/mesg/oraus.msb
oracle 13600 oracle 13u REG 64,0xe0002 1073750016 9 /ic01_13/qa01/undotbs01.dbf
oracle 13600 oracle 14u REG 64,0xe0002 536879104 8 /ic01_13/qa01/system01.dbf
oracle 13600 oracle 15u REG 64,0x500006 8589942784 6 /sb09_02/qa01/stard01.dbf
oracle 13600 oracle 16u REG 64,0x500005 4294975488 7 /sb09_05/qa01/starx01.dbf
oracle 13600 oracle 17u REG 64,0x500005 8589942784 6 /sb09_05/qa01/undotbs02.dbf
oracle 13600 oracle 18u REG 64,0x500005 8589942784 5 /sb09_05/qa01/starx02.dbf
oracle 13600 oracle 19u REG 64,0x500003 8589942784 5 /sb09_03/qa01/stard02.dbf
oracle 13600 oracle 20u REG 64,0x500004 8589942784 5 /sb09_04/qa01/stard03.dbf
oracle 13600 oracle 21u REG 64,0x500003 1073750016 8 /sb09_03 (/dev/vg50/lvol3)
oracle 13600 oracle 22u REG 64,0x500004 1073750016 6 /sb09_04 (/dev/vg50/lvol4)
oracle 13600 oracle 23u REG 64,0x500003 4294975488 7 /sb09_03/qa01/temp01.dbf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 07:25 PM
08-11-2004 07:25 PM
Re: du and bdf doesn't match, 70 gb space missing
fuser -c /u26 2>/dev/null | sed 's/ */ -p /g' | xargs ps -x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 10:42 PM
08-11-2004 10:42 PM
Re: du and bdf doesn't match, 70 gb space missing
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2004 08:39 AM
08-12-2004 08:39 AM
Re: du and bdf doesn't match, 70 gb space missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2004 09:33 AM
09-05-2004 09:33 AM
Re: du and bdf doesn't match, 70 gb space missing
fflush(stdout);
fflush(stderr);
rename(debug_filename,debug_oldfilename);
fd = open(debug_filename, O_RDWR|O_CREAT|O_TRUNC, PERM);
close(2);
dup(fd);
close(1);
dup(fd);
does this code can create this type of problem ??
If yes, what is the solutions ??
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2004 08:20 PM
09-05-2004 08:20 PM
Re: du and bdf doesn't match, 70 gb space missing
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=629399
For your question Smaran, it shouldn't cause problem. You close stdout and stderr and this won't waste any space.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 07:41 AM
09-07-2004 07:41 AM
Re: du and bdf doesn't match, 70 gb space missing
but my probelm is in my program i rename the current file AAA to say XXX.
and then other process is moving the file XXX
into some different file system.
Then I am not getting the space back, which i should get.
anyway if i terminate the process, then only
i am getting the space back.
How can I ensure that no process is using
the file XXX before moving it to diff. file system thru another process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 07:56 AM
09-07-2004 07:56 AM
Re: du and bdf doesn't match, 70 gb space missing
Thanks and regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:18 AM
09-07-2004 09:18 AM
Re: du and bdf doesn't match, 70 gb space missing
but, As i believe I am closing the file
descriptor with the close system call.
So, why this problem is still coming ?
how can i ensure that the file is not opened
by any of the process .
I am putting the code if it helps.
fflush(stdout);
fflush(stderr);
close(2);
close(1);
close(fd);
rename(debug_filename,debug_oldfilename);
fd = open(debug_filename, O_RDWR|O_CREAT|O_TRUNC, PERM);
close(2);
dup(fd);
close(1);
dup(fd);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:23 AM
09-07-2004 09:23 AM
Re: du and bdf doesn't match, 70 gb space missing
Rgdz
Prashant