tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY : df is not reporting a sybase file....
@ 1999-03-22 13:56 Cristian Ramirez
  0 siblings, 0 replies; only message in thread
From: Cristian Ramirez @ 1999-03-22 13:56 UTC (permalink / raw)
  To: tru64-unix-managers


Hello Alphas :

My original post was :
> I've got the following situation :
> A Sybase file was crated on a file sytem named /us1/tmpdb. Tha Sybase
> aplication is reporting that file with 150 MB.
> The ls command is reporting it too, like a file of 150 MB. But, if a "df
> -k"
> is executed, the information is 146000 blocks free, and only 33750 blocks
> used.
> And a command "du -k /us1/tmpdb/tmpdb" reports 23664 blocks.
> The partition where the file system was mounted has a size of 200 MB
> (aprox.)
> The O.S. is DU 4.0D + patch kit # 2.
> The Sybase Server is reporting an error on phisics page, pointing to that
> base.
> 
Thanks to all who responded, Alan, Joe, Laurent, Oisin, Ray and Rye.
Alan Nabeth pointed me at the most complete way. He wrote :

It sounds like the file was created with one or more holes; a
sparse file.  This is a feature of most UNIX systems where
space needn't be allocated to all the blocks of a file.  The
hole reads as NULs and has space allocated when written.  One
way to verify is to use the -ls option on ls, which will print
both the byte size and allocated block size.  If the two
disagree by a significant amount, you have a sparse file.

Some database systems don't like sparse files.  If Sybase is
one of those, you'll want to fill in the wholes.  Simply
making a copy (where you have space) will be sufficient.

Thanks to all again.

Best regards
CRV.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-22 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-22 13:56 SUMMARY : df is not reporting a sybase file Cristian Ramirez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox