From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David.Knight@clubcorp.com Newsgroups: gmane.os.tru64.managers Subject: (SUMMARY) Filesystem --- "ls -l" total reporting incorrect file sizes - ADVFS Date: Wed, 10 Mar 2004 08:21:11 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1078928747 24879 80.91.224.253 (10 Mar 2004 14:25:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2004 14:25:47 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Mar 10 15:25:38 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1B14eP-0008KL-00 for ; Wed, 10 Mar 2004 15:25:37 +0100 Original-Received: (qmail 9974 invoked by uid 5); 10 Mar 2004 14:25:28 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9959 invoked by uid 49493); 10 Mar 2004 14:25:28 -0000 Original-Received: from David.Knight@clubcorp.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-3.6/5.0):. Processed in 16.619053 secs); 10 Mar 2004 14:25:28 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 10 Mar 2004 14:25:11 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUD00E3M6PJPM@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 10 Mar 2004 09:25:10 -0500 (EST) Original-Received: from smtp2.clubcorp.com (fw2.clubcorp.com [204.146.199.6]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUD00BFN6PBBY@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 10 Mar 2004 09:24:47 -0500 (EST) Original-Received: from nshub1.clubcorp.com (Not Verified[10.10.7.10]) by smtp2.clubcorp.com) id ; Wed, 10 Mar 2004 08:24:36 -0600 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 X-MIMETrack: Serialize by Router on NSHUB1/CLUBCORP/US(5012HF429 | October 14, 2003) at 03/10/2004 08:19:07 AM, Serialize complete at 03/10/2004 08:19:07 AM Xref: main.gmane.org gmane.os.tru64.managers:6595 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6595 Managers Thanks to Steve VanDevender, Oisin McGuinness, Bob Harris, Dr. Alan=20 Rollow, James Fitzgerald, Bob Vickers and B=E5rd Tesaker for there help an= d=20 time on explaining the behavior of my file domain. It appears that there=20 isn't a problem at all. The behavior that I seeing from the /data5 filesystem is due to the way=20 that our version of oracle allocates space in it's temp files. "Thomas, Thomas" provided this nugget of knowledge from the Oracle=20 webpage: =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F fact: Oracle Server - Enterprise Edition 8.1=20 fact: tempfile=20 symptom: space for a tempfile not allocated in the filesystem=20 symptom: space not completely used in filesystem=20 cause: A temporary tablespace with a tempfile is added to the database:=20 create temporary tablespace test=5Ftemp TEMPFILE '/oracle/test=5Fte= mp.dbf'=20 size 400m reuse extent management local uniform size 1024k;=20 You see the correct filesize with a 'ls -l', but a df -k reports too much=20 free=20 space in that filesystem.=20 Tempfiles are not fully allocated and initialized during creation or=20 resize.=20 The description for this performance feature was omitted in Oracle8i.=20 fix:=20 The Oracle9i Database Concepts Release 1 guide has been updated to reflect = this=20 behaviour.=20 For example:=20 Locally managed temporary tablespaces have temporary datafiles (tempfiles) = which are similiar to ordinary datafiles except that:=20 When you create or resize tempfiles, they are not always guaranteed=20 allocation=20 of disk space for the filesize specified. On certain file systems (for=20 example=20 UNIX) disk blocks are allocated not at file creation or resizing, but=20 before the=20 blocks are accessed.=20 Caution: This enables fast tempfile creation and resizing;=20 however the disk could run out of space later when the tempfiles ar= e=20 accessed.=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F In essence our oracle temp files are "sparse" files as mentioned by=20 several people above. Sparse files are files that have a "hole" in them (a = range of empty bytes). So for example: # ls -ls TEMP01.dbf 197280 -rw-r----- 1 oracle system 209723392 Mar 10 06:51 TEMP01.dbf # du -kx ./* 197280 ./TEMP01.dbf 80 ./TEMP03.dbf 1 ./test.script 13896 ./test.test # ls -l total 211257 -rw-r----- 1 oracle system 209723392 Mar 10 06:51 TEMP01.dbf -rw-r----- 1 oracle system 209723392 Mar 5 10:46 TEMP03.dbf -rw-r--r-- 1 root system 69 Feb 23 08:09 test.script -rw-r--r-- 1 root system 14226971 Mar 9 10:19 test.test # pwd /data5/u002/oradata/prod The TEMP01.dbf file has 209723392 bytes allocated but only has 197280=20 bytes used. A few weeks ago when I was seeing my file domain grow but=20 could not see any files growing, well the df, vdf, and showfdmn commands=20 show the file system space that is used. the ls command was displaying the = space that we had allocated of which was not changing. The space was being = used by oracle filling in the holes in the temp files (extents). Thanks again for all of the quick responses and the time that I was given=20 from the people above. This case (for you HP folk: 3204932768) has been=20 worked by HP for about 3 weeks now and around six Technicians / Engineers=20 have tried to find the answer to my problem.=20 More info on sparse files can be found at: www.cs.wisc.edu/~thain/library/sparse.pdf=20 -David Knight =20 ----- Forwarded by David Knight/CLUBCORP/US on 03/10/2004 07:59 AM ----- David Knight 03/09/2004 01:01 PM =20 To: tru64-unix-managers@ornl.gov cc:=20 Subject: Filesystem --- "ls -l" total reporting incorrect fi= le sizes - ADVFS Hello Managers, Got an issue that HP has been trying to figure out for some time=20 now. Thought maybe I'd give you guys a shot at it. Problem=3D Filesystem has issue with files not showing the correct size.=20 there are only a few oracle .dbf files on the file system and when I=20 preform an ls -l on the directory: # pwd /data5/u002/oradata/prod # ls -l total 205553 -rw-r----- 1 oracle system 209723392 Mar 9 12:46 TEMP01.dbf -rw-r----- 1 oracle system 209723392 Mar 5 10:46 TEMP03.dbf -rw-r--r-- 1 root system 69 Feb 23 08:09 test.script -rw-r--r-- 1 root system 14226971 Mar 9 10:19 test.test the file sizes added up don't equal the "total" that ls is reporting for=20 the total size of the files in the current directory. a few weeks ago when = the problem was found I noticed that there was a .dbf file that was=20 growing in size yet the ls -l size for the file was not reporting any=20 change. the date was being updated for the file but the size was not=20 reporting any change. now don't get this confused with the df issue=20 showing the quota info... df, showfdmn, and vfd all show the correct info=20 for the file system/file domain. HP first had be shutdown my entire=20 cluster. just by chance we had a power outage at the same time as I was=20 shutting down the cluster and our UPS ran out of juice so the entire=20 cluster/memory channels/san was powerless to the point of the write back=20 cache batteries being drained. this showed no change in the file system=20 issue so HP had me run verify witch showed not issues then a fixfdmn witch = showed some messages: 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880000 | Modified log page 0=20 so the log is marked as empty. 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880016 | Modified log page 1=20 so the log is marked as empty. 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880032 | Modified log page 2=20 so the log is marked as empty. 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880048 | Modified log page 3=20 so the log is marked as empty. 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880064 | Modified log page 4=20 so the log is marked as empty. 21:18:26 | FIXED | LOG | /dev/disk/dsk83c:56880080 | Modified log page 5=20 so the log is marked as empty. this message repeats it's self in the fixfdmn log file up to page 511. So=20 HP then had me remove and recreate the file domain. after that fixfdmn=20 reports the same message. after talking with 4 people from HP I was told=20 not to worry about this message if it appears after the file domain was=20 recreated. Well a week later (Now) I have the problem still.. Not sure=20 what else to do on this one. any help would be grateful.. O,the version info is: Tru64 5.1 / TruCluster 5.1 - ADVFS file system Patch: - T64V51AS0003-20010521 OSF510 - T64V51AS0003-20010521 TCR510 - T64V51B19AS0005-20020411 OSF510 - T64V51B19AS0005-20020411 TCR510 Thanks in Advance, David Knight