niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
/var out of disk space, but not...
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
ckbcouture@gmail.com
*nix forums beginner


Joined: 31 May 2006
Posts: 2

PostPosted: Wed May 31, 2006 3:16 pm    Post subject: /var out of disk space, but not... Reply with quote

HI.

So I have a problem with my /var partition. I am unable to write to it
and get "/var: write failed, file system is full" and "close failed:
[Errno 28] No space left on device" when I do.

If I look at disk usage using df, I get:

Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ld0a 4585 2784 1571 63% /
/dev/ld0f 4851 4617 -8 100% /var
/dev/ld0e 9695 6129 3081 66% /usr
/dev/ld0g 9695 2872 6337 31% /home
/dev/ld0h 38788 9461 27386 25% /www
kernfs 0 0 0 100% /kern
procfs 0 0 0 100%
/usr/pkg/emul/linux/proc
elk:/www/staging 38788 10463 26384 28%
/www/staging
rhino:/www/production 268340 12743 241966 5%
/www/production

If I look at /var using du, I get:

srvrs01# du -sPm /var
1125 /var

Clearly there is a discrepancy here and I can't find anything to delete
to free up the disk space. Any ideas on what is wrong and what I can
do to fix it?

Thanks,
Cameron
Back to top
David Lord
*nix forums Guru Wannabe


Joined: 03 Mar 2005
Posts: 113

PostPosted: Wed May 31, 2006 4:43 pm    Post subject: Re: /var out of disk space, but not... Reply with quote

On 31 May, in article
<1149088579.917473.55490@c74g2000cwc.googlegroups.com>
ckbcouture@gmail.com wrote:

Quote:
HI.

So I have a problem with my /var partition. I am unable to write to it
and get "/var: write failed, file system is full" and "close failed:
[Errno 28] No space left on device" when I do.

If I look at disk usage using df, I get:

Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ld0a 4585 2784 1571 63% /
/dev/ld0f 4851 4617 -8 100% /var
/dev/ld0e 9695 6129 3081 66% /usr
/dev/ld0g 9695 2872 6337 31% /home
/dev/ld0h 38788 9461 27386 25% /www
kernfs 0 0 0 100% /kern
procfs 0 0 0 100%
/usr/pkg/emul/linux/proc
elk:/www/staging 38788 10463 26384 28%
/www/staging
rhino:/www/production 268340 12743 241966 5%
/www/production

If I look at /var using du, I get:

srvrs01# du -sPm /var
1125 /var

Clearly there is a discrepancy here and I can't find anything to delete
to free up the disk space. Any ideas on what is wrong and what I can
do to fix it?

Usually this might be where you have files in an existing /var
and have then mounted another partition on top so hiding the
original files.

(1) What does mount show?

(2) and if any device is mounted on var do 'umount' /var
then check with ls and du again before remounting.

David

--
The Reply-To: is valid for at least 30 days after posting date
David Lord - david@lordynet.demon.co.uk
Back to top
ckbcouture@gmail.com
*nix forums beginner


Joined: 31 May 2006
Posts: 2

PostPosted: Wed May 31, 2006 7:40 pm    Post subject: Re: /var out of disk space, but not... Reply with quote

Actually, it turns out that I had deleted an open file. Restarting the
process (in this case named) released the open file and returned the
disk space to me.

Thanks,
Cameron



David Lord wrote:
Quote:
On 31 May, in article
1149088579.917473.55490@c74g2000cwc.googlegroups.com
ckbcouture@gmail.com wrote:

HI.

So I have a problem with my /var partition. I am unable to write to it
and get "/var: write failed, file system is full" and "close failed:
[Errno 28] No space left on device" when I do.

If I look at disk usage using df, I get:

Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ld0a 4585 2784 1571 63% /
/dev/ld0f 4851 4617 -8 100% /var
/dev/ld0e 9695 6129 3081 66% /usr
/dev/ld0g 9695 2872 6337 31% /home
/dev/ld0h 38788 9461 27386 25% /www
kernfs 0 0 0 100% /kern
procfs 0 0 0 100%
/usr/pkg/emul/linux/proc
elk:/www/staging 38788 10463 26384 28%
/www/staging
rhino:/www/production 268340 12743 241966 5%
/www/production

If I look at /var using du, I get:

srvrs01# du -sPm /var
1125 /var

Clearly there is a discrepancy here and I can't find anything to delete
to free up the disk space. Any ideas on what is wrong and what I can
do to fix it?

Usually this might be where you have files in an existing /var
and have then mounted another partition on top so hiding the
original files.

(1) What does mount show?

(2) and if any device is mounted on var do 'umount' /var
then check with ls and du again before remounting.

David

--
The Reply-To: is valid for at least 30 days after posting date
David Lord - david@lordynet.demon.co.uk
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Wed Dec 03, 2008 11:47 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts FAQ 4.32 How do I strip blank space from the beginning/en... PerlFAQ Server Perl 0 Fri Jul 21, 2006 1:03 pm
No new posts Is there a boot loader that can load a file a start up an... christopher.mcrorie@gmail Setup 1 Thu Jul 20, 2006 2:57 am
No new posts strange user-space hangs Dan Miller system 2 Thu Jul 20, 2006 12:07 am
No new posts Make an updates disk? Cameron L. Spitzer Debian 1 Wed Jul 19, 2006 6:40 pm
No new posts Is there any standard way to sort a disk file? Peter Olcott C++ 5 Wed Jul 19, 2006 4:42 pm

Company Reports | Personal Loans | Secured Loans | Mortgage | SMS-Sprüche
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1564s ][ Queries: 16 (0.0718s) ][ GZIP on - Debug on ]