Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

disk running out of space

1 view
Skip to first unread message

torv...@addr.com

unread,
Oct 10, 2002, 5:49:30 AM10/10/02
to
Hai,

I am facing a problem in disk space, when I say df -h on my server, it
is giving the following results:-

Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s2a 9.6G 8.5G 337M 96% /
/dev/ad2s1e 55G 39G 11G 77% /data
/dev/ad0s1e 9.6G 2.0K 8.8G 0% /data2
/dev/ad0s3e 26G 1.0G 23G 4% /data3
/dev/ad0s2e 9.6G 1.9G 6.9G 22% /usr
procfs 4.0K 4.0K 0B 100% /proc

I went into / and measured all the folders it is coming around 2GB as usable
space.

What might be the problem???

Plz give me solution as early as possible.

Suresh


To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message

freebs...@lister.dnsalias.net

unread,
Oct 10, 2002, 6:05:59 AM10/10/02
to
On Thu, 10 Oct 2002, Naga Suresh B wrote:
>I went into / and measured all the folders it is coming around 2GB as usable
>space.
>
>What might be the problem???

This would probably be better on questions@ but it is possible that you
have files on the root partition under /usr that are being hidden by the
/usr partition (or any of your other partitions). Check there's nothing
`under' your mounts.

Jamie's comment about the reserved margin is also correct, but it doesn't
account for 2GB.

Ian

torv...@addr.com

unread,
Oct 10, 2002, 6:09:23 AM10/10/02
to
Thank you for your suggestion I restarted apache on my server my df -h is
giving

Filesystem Size Used Avail Capacity Mounted on

/dev/ad0s2a 9.6G 1.0G 7.8G 12% /


/dev/ad2s1e 55G 39G 11G 77% /data
/dev/ad0s1e 9.6G 2.0K 8.8G 0% /data2
/dev/ad0s3e 26G 1.0G 23G 4% /data3
/dev/ad0s2e 9.6G 1.9G 6.9G 22% /usr
procfs 4.0K 4.0K 0B 100% /proc

What might be the problem??? In future how can I overcome this type of
problems without restarting the service.

Suresh
----- Original Message -----
From: "Maxim Konovalov" <ma...@FreeBSD.org>
To: "Naga Suresh B" <torv...@addr.com>
Sent: Thursday, October 10, 2002 3:21 PM
Subject: Re: disk running out of space


>
> Try killall -HUP syslogd


>
> On 13:49+0400, Oct 10, 2002, Naga Suresh B wrote:
>
> > Hai,
> >
> > I am facing a problem in disk space, when I say df -h on my
server, it
> > is giving the following results:-
> >
> > Filesystem Size Used Avail Capacity Mounted on
> > /dev/ad0s2a 9.6G 8.5G 337M 96% /
> > /dev/ad2s1e 55G 39G 11G 77% /data
> > /dev/ad0s1e 9.6G 2.0K 8.8G 0% /data2
> > /dev/ad0s3e 26G 1.0G 23G 4% /data3
> > /dev/ad0s2e 9.6G 1.9G 6.9G 22% /usr
> > procfs 4.0K 4.0K 0B 100% /proc
> >

> > I went into / and measured all the folders it is coming around 2GB as
usable
> > space.
> >
> > What might be the problem???
> >

> > Plz give me solution as early as possible.
> >
> > Suresh
> >
> >

> > To Unsubscribe: send mail to majo...@FreeBSD.org
> > with "unsubscribe freebsd-current" in the body of the message
> >
> >
>

> --
> Maxim Konovalov, ma...@FreeBSD.org
>


To Unsubscribe: send mail to majo...@FreeBSD.org

with "unsubscribe freebsd-stable" in the body of the message

freebs...@lister.dnsalias.net

unread,
Oct 10, 2002, 6:21:32 AM10/10/02
to
On Thu, 10 Oct 2002, Naga Suresh B wrote:
>What might be the problem??? In future how can I overcome this type of
>problems without restarting the service.

Sounds like you moved/rotated/deleted your Apache log file but Apache
still had it open and continued logging to it. The space on disk will not
be freed until everything has closed the file. Check out the rotatelogs(8)
man page that comes with Apache for information about how to properly
rotate its logs.

Ian

ma...@freebsd.org

unread,
Oct 10, 2002, 6:23:16 AM10/10/02
to

http://www.freebsd.org/doc/faq/disks.html#DU-VS-DF

"When a program is using a file, and you delete the file, the file is
not really removed from the filesystem until the program stops using
it."

SIGHUP tells syslogd to reopen logfiles, apachectl restart does the
same for apache.

It's really belongs to -questions.

On 14:12+0400, Oct 10, 2002, Jamie Heckford wrote:

> hmmmm - could possibly be your log files if there going into /var
> ..... could only be explained if apache is cleaning the logs on a
> restart somehow.
>
> btw, why would sending syslogd a SIGHUP help just out or curiosity?


>
> ----- Original Message -----
> From: "Naga Suresh B" <torv...@addr.com>
> To: "Maxim Konovalov" <ma...@FreeBSD.ORG>
> Cc: <freebsd...@FreeBSD.ORG>; <freebsd...@FreeBSD.ORG>
> Sent: Thursday, October 10, 2002 11:04 AM
> Subject: Re: disk running out of space
>
>

> > Thank you for your suggestion I restarted apache on my server my df -h is
> > giving
> >
> > Filesystem Size Used Avail Capacity Mounted on
> > /dev/ad0s2a 9.6G 1.0G 7.8G 12% /
> > /dev/ad2s1e 55G 39G 11G 77% /data
> > /dev/ad0s1e 9.6G 2.0K 8.8G 0% /data2
> > /dev/ad0s3e 26G 1.0G 23G 4% /data3
> > /dev/ad0s2e 9.6G 1.9G 6.9G 22% /usr
> > procfs 4.0K 4.0K 0B 100% /proc
> >

> > What might be the problem??? In future how can I overcome this type of
> > problems without restarting the service.
> >

> > Suresh
[...]

--
Maxim Konovalov, ma...@FreeBSD.org

To Unsubscribe: send mail to majo...@FreeBSD.org

with "unsubscribe freebsd-stable" in the body of the message

da...@busy-bee.net

unread,
Oct 10, 2002, 5:14:37 PM10/10/02
to
> That's what newsyslog is for, and you don't have to stop apache:
> /path/to/httpd-access.log 640 7 * $W0D0 B /var/run/httpd.pid 30

Yep, and there's also the rotatelogs(8) utility that comes with apache,
e.g. to rotate once a week:

CustomLog "| rotatelogs /path/to/log/fileprefix 604800" combined

David

> Guezou Philippe(fi...@infinit.com)@2002.10.10 10:05:10 +0000:
>> [Charset iso-8859-1 unsupported, filtering to ASCII...]


>>> Thank you for your suggestion I restarted apache on my server my df
>>> -h is
>>> giving
>>>
>>> Filesystem Size Used Avail Capacity Mounted on
>>> /dev/ad0s2a 9.6G 1.0G 7.8G 12% /
>>> /dev/ad2s1e 55G 39G 11G 77% /data
>>> /dev/ad0s1e 9.6G 2.0K 8.8G 0% /data2
>>> /dev/ad0s3e 26G 1.0G 23G 4% /data3
>>> /dev/ad0s2e 9.6G 1.9G 6.9G 22% /usr
>>> procfs 4.0K 4.0K 0B 100% /proc
>>>
>>> What might be the problem??? In future how can I overcome this type
>>> of
>>> problems without restarting the service.
>>

>> oh well, here, we stop all apache around 23h45, then rotate the logs
>> (moving them into
>> an other directory log/cold/<IP>/) before restarting.. It take
>> approximately 3 seconds
>> to stop, move and restart.. Your users shouldn't notice the
>> stop/start..
>>
>> hope this helps..
>> fifi..
>>
>>>
>>> Suresh
>>
>> --
>> Guezou Philippe philipp...@videotron.net
>> FreeBSD, The power to serve.
>>
>> Buying an operating system without source is like buying
>> a self-assembly Space Shuttle with no instructions.


>>
>>
>>
>> To Unsubscribe: send mail to majo...@FreeBSD.org
>> with "unsubscribe freebsd-stable" in the body of the message
>

> --
> Scott Nolde
> GPG Key 0xD869AB48


>
> To Unsubscribe: send mail to majo...@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>
>


To Unsubscribe: send mail to majo...@FreeBSD.org

with "unsubscribe freebsd-current" in the body of the message

0 new messages