Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
df showing invalid output

df showing invalid output

2005-08-05       - By Anish Mathew

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi,
Thanks for all the response. Here is couple of outputs
from ls, du and df. I used mv to move the files out of
the directory.

Original Situation---(Previous thread)

I was having 1.4 GB free space in /opt.
This is the ouput of df -h

/dev/cciss/c0d0p3     9.8G  7.9G  1.4G  85% /opt

I moved around 7.5 GB of data from /opt
I used mv command for that.

But the df -h output is not giving the correct
available space.
it gives

/dev/cciss/c0d0p3     9.8G  5.7G  3.7G  61% /opt


Present Situation.---

Since this is a backup directory cron job copied 2 GB
file to /opt.


The  df -h /opt output shows

Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     9.8G  7.7G  1.7G  82% /opt

This output is wrong but ls and du gives the correct
space usage.

These are the files under /opt.

#ls -lah /opt

total 1.1G
-- ---- --
drwxr-xr-x    2 root     root         4.0k Aug  5
00:10 .
drwxr-xr-x    4 root     root         4.0k Feb 10
22:05 ..
drwxr-xr-x    2 root     root         4.0k Aug  5
00:10 cvs-repository-backup
-rw-r--r--    1 root     root         1.0G Feb 10
22:13 gb.tgz
drwx-- ---    2 root     root          16k Sep 21
2003 lost+found

#ls -lh /opt/cvs-repository-backup/
total 2.1G
-- ---- --
drwxr-xr-x    2 root     root         4.0k Aug  5
00:10 .
drwxr-xr-x    4 root     root         4.0k Feb 10
22:05 ..
-rw-r--r--    1 root     root         2.0G Aug  5
00:32 repository_050805.tgz
-rw-r--r--    1 root     root         1.3M Mar  1
01:30 Serversmb_Conf_Backup_010305.tgz
-rw-r--r--    1 root     root         1.3M Apr  1
01:30 Serversmb_Conf_Backup_010405.tgz
-rw-r--r--    1 root     root         1.3M May  1
01:30 Serversmb_Conf_Backup_010505.tgz
-rw-r--r--    1 root     root         1.3M Jun  1
01:30 Serversmb_Conf_Backup_010605.tgz
-rw-r--r--    1 root     root         1.3M Jul  1
01:30 Serversmb_Conf_Backup_010705.tgz
-rw-r--r--    1 root     root         2.5M Aug  1
01:30 Serversmb_Conf_Backup_010805.tgz
-rw-r--r--    1 root     root         1.3M Mar 15
01:30 Serversmb_Conf_Backup_150305.tgz
-rw-r--r--    1 root     root         1.3M Apr 15
01:30 Serversmb_Conf_Backup_150405.tgz
-rw-r--r--    1 root     root         1.3M May 15
01:30 Serversmb_Conf_Backup_150505.tgz
-rw-r--r--    1 root     root         1.3M Jun 15
01:30 Serversmb_Conf_Backup_150605.tgz
-rw-r--r--    1 root     root         2.5M Jul 15
01:30 Serversmb_Conf_Backup_150705.tgz
-rw-r--r--    1 root     root         1.3M Jun 24
20:58 Serversmb_Conf_Backup_240605.tgz


So ls shows 3.2 GB which is correct.

Now  du -sh /opt output

3.1G    /opt

This is also correct.




Since du output shows used space as 3.1 GB i tried to
copy again a file of size 2GB to /opt.. but failed
with no space left on device.

How can i solve this problem.

Regards
Anish
--- "Smith, Albert" <Albert.Smith@(protected)>
wrote:

>
>
> > -- --Original Message-- --
> > From: redhat-list-bounces@(protected)
> > [mailto:redhat-list-bounces@(protected)] On Behalf
> Of Shaw, Marco
> > Sent: Thursday, August 04, 2005 12:30 PM
> > To: General Red Hat Linux discussion list
> > Subject: RE: df showing invalid output
> >
> > > /dev/cciss/c0d0p3     9.8G  5.7G  3.7G  61% /opt
> > >
> > > The used space should be around 1.4.. why is
> this descrepancy...
> >
> > You may have files that are deleted, but still
> have open file
> > Handles (or something like that).
> >
> > Look at 'lsof' to help you find the appropriate
> files.  I
> > can't remember any of the arguments to use right
> now...
> >
> > Marco
> >
> > --
> > redhat-list mailing list
> > unsubscribe
>
mailto:redhat-list-request@(protected)?subject=unsubscribe
> >
> https://www.redhat.com/mailman/listinfo/redhat-list
> >
> >
>
> If a move was issued then an error would have
> occurred if the file was
> attached to a process that was running and it would
> not have moved the
> file.
>
>
>
> --
> redhat-list mailing list
> unsubscribe
>
mailto:redhat-list-request@(protected)?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



   
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.