dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

problem with disk usage - solaris

This is a discussion on problem with disk usage - solaris ; Hi, I have strange result from du and df on my Solaris 10. -bash-3.2$ pwd /xpart -bash-3.2$ du -hs . 13G . -bash-3.2$ df -h . Filesystem size used avail capacity Mounted on /dev/md/dsk/d50 18G 16G 2.4G 87% /xpart As ...


Home > Database Forum > Operating Systems > solaris > problem with disk usage

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-10-2008, 10:43 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default problem with disk usage

Hi,

I have strange result from du and df on my Solaris 10.

-bash-3.2$ pwd
/xpart
-bash-3.2$ du -hs .
13G .
-bash-3.2$ df -h .
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d50 18G 16G 2.4G 87% /xpart


As you can see du tells that I'm using 13G and df tells that I'm using 16G. I don't know a reason. Any hint?


Thanks in advance,
kawu.
Reply With Quote
  #2  
Old 11-10-2008, 12:54 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: problem with disk usage

odbiorca@spamu.pl wrote:
> -bash-3.2$ du -hs .
> 13G .
> -bash-3.2$ df -h .
> Filesystem size used avail capacity Mounted on
> /dev/md/dsk/d50 18G 16G 2.4G 87% /xpart
>
> As you can see du tells that I'm using 13G and df tells that I'm using 16G. I don't know a reason. Any hint?
>


#1 open (in-use) files were deleted. This removes them from the
directory so that 'du' cannot find them, but they remain on the disk
and are properly accounted for by 'df'. Resolution: have the
application close the files (or kill the application).

#2 Filesystem corruption is unlikely, but possible. Any number of
symptoms may be present if corruption occurs.

#3 Hidden mount point. If there is data in a directory, it can be
hidden by mounting another filesystem on top. Again, 'du' can't get
to the area underneath because of the mount point, but the data is
still there and visible to 'df'.

I'll bet one of those three...

--
Darren
Reply With Quote
  #3  
Old 11-12-2008, 07:27 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: problem with disk usage

Darren Dunham pisze:

>
> #1 open (in-use) files were deleted. This removes them from the
> directory so that 'du' cannot find them, but they remain on the disk
> and are properly accounted for by 'df'. Resolution: have the
> application close the files (or kill the application).

I'll check that.

>
> #2 Filesystem corruption is unlikely, but possible. Any number of
> symptoms may be present if corruption occurs.

Probably, it isn't that.

>
> #3 Hidden mount point. If there is data in a directory, it can be
> hidden by mounting another filesystem on top. Again, 'du' can't get
> to the area underneath because of the mount point, but the data is
> still there and visible to 'df'.


I check in /etc/mnttab and /etc/vfstab and there aren't hidden mount point.

Reply With Quote
  #4  
Old 11-13-2008, 06:21 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: problem with disk usage

odbiorca@spamu.pl pisze:
> Darren Dunham pisze:
>
>>
>> #1 open (in-use) files were deleted. This removes them from the
>> directory so that 'du' cannot find them, but they remain on the disk
>> and are properly accounted for by 'df'. Resolution: have the
>> application close the files (or kill the application).

> I'll check that.


I have used lsof to see open files on /xpart. I don't see any suspect files. How deleted files will looks like?.

Or maybe it is other way to find that files?
Reply With Quote
  #5  
Old 11-13-2008, 01:13 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: problem with disk usage

odbiorca@spamu.pl wrote:
> I have used lsof to see open files on /xpart. I don't see any suspect files. How deleted files will looks like?.
>
> Or maybe it is other way to find that files?


lsof is one of the best ways. An alternative is to do...

find /proc -type f -links 0 -ls

Look for "big" files. But this shows unlinked files on the whole
system, not necessarily on the filesystem of interest.

--
Darren
Reply With Quote
  #6  
Old 02-23-2010, 02:58 AM
Database Expert
 
Join Date: Feb 2010
Posts: 42
HENARRY JAYA is on a distinguished road
Default Re: problem with disk usage

You have at least a one yr. warranty so just use it and enjoy, no body checks the usage of the cpu/disc/memory. The numbers fluctuate wildly on all lap tops and computers and if it is working forget about monitoring it unless you do have a problem.
If you have set up and or Installed a very good Internet Security software then you will not have any problems with virus/malware/Trojans/spy ware.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 08:28 PM.