/ partition full

2009-03-13 Thread Warren Liddell
I've looked as much as i can, but with only 5meg free on / .. its making 
things in terms of building world  kernel a lil difficult .. what's the 
command so i can see exactly what dir on / is using up all the space so 
i can free it up ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Neal Hogan
just to clarify (it's early)

man du(1)


On Fri, Mar 13, 2009 at 6:33 AM, Warren Liddell shin...@maydias.com wrote:

 I've looked as much as i can, but with only 5meg free on / .. its making
 things in terms of building world  kernel a lil difficult .. what's the
 command so i can see exactly what dir on / is using up all the space so i
 can free it up ?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org




-- 
www.nealhogan.net  www.lambdaserver.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Mehul Ved
On Fri, Mar 13, 2009 at 5:03 PM, Warren Liddell shin...@maydias.com wrote:
 I've looked as much as i can, but with only 5meg free on / .. its making
 things in terms of building world  kernel a lil difficult .. what's the
 command so i can see exactly what dir on / is using up all the space so i
 can free it up ?

Are you looking for du --max-depth=1 / ?


-- 

Heard that the next Space Shuttle is supposed to carry several
Guernsey cows? It's gonna be t...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Wojciech Puchar
I've looked as much as i can, but with only 5meg free on / .. its making 
things in terms of building world  kernel a lil difficult .. what's the 
command so i can see exactly what dir on / is using up all the space so i can 
free it up ?


du -s directory


good lesson to NOT make multiple partitions :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Warren Liddell

Neal Hogan wrote:

man du


Thanks that gave me what i needed .. now i goto figure out what i can 
del an what not to .. never had a prob with / filling up before *g*


enterprise# du -h -d 1 /
2.0K/.snap
2.0K/dev
34K/tmp
537G/usr
740M/var
1.7M/etc
2.0K/cdrom
2.0K/cdrom1
2.0K/dist
1.1M/bin
396M/boot
6.6M/lib
786K/libexec
2.0K/media
2.0K/mnt
2.0K/proc
4.0M/rescue
80K/root
5.0M/sbin
538G/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Mehul Ved
On Fri, Mar 13, 2009 at 6:06 PM, Warren Liddell shin...@maydias.com wrote:
 Thanks that gave me what i needed .. now i goto figure out what i can del an
 what not to .. never had a prob with / filling up before *g*

 enterprise# du -h -d 1 /
 537G    /usr
 538G    /

Pretty easy to figure out where the problem is. I guess I'd check
/usr/home next.


-- 

Dirksen's Three Laws of Politics: (1) Get elected. (2) Get re-elected.
(3) Don't get mad, get...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Olivier Nicole
 396M/boot

I'd say this /boot is pretty big, you may have several versions of
older kernel that you can remove.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Bill Moran
In response to Warren Liddell shin...@maydias.com:

 Neal Hogan wrote:
  man du
 
 
 Thanks that gave me what i needed .. now i goto figure out what i can 
 del an what not to .. never had a prob with / filling up before *g*
 
 enterprise# du -h -d 1 /

Try du -hxd1 /

It'll save you from having to figure out when it's looking at different
partitions.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Bill Moran
In response to Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
 
 good lesson to NOT make multiple partitions :)

And when a rogue app fills up /var and kills 4 other apps that could
have kept going ... are we then learning conflicting lessons?

Enterprise-class servers should have many partitions to separate different
functions and protect apps from each other.  If you're arguing differently,
then your experience is insufficient to make an intelligent argument.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Ian Smith
On Fri, 13 Mar 2009 21:33:53 +1000 Warren Liddell shin...@maydias.com wrote:

  I've looked as much as i can, but with only 5meg free on / .. its making 
  things in terms of building world  kernel a lil difficult .. what's the 
  command so i can see exactly what dir on / is using up all the space so 
  i can free it up ?

# du -xd1 / | sort -rn | head -7
167521  /
81728   /root
56918   /boot
7630/rescue
4354/sbin
3550/lib
3058/etc
sola# du -xd1 /root | sort -rn | head -7
81728   /root
30526   /root/build
23400   /root/mail
7020/root/p45
4402/root/bin
842 /root/from_4_5
552 /root/.kde
sola# du -xd1 /boot | sort -rn | head -7
56918   /boot
20048   /boot/kernel
17974   /boot/kernel.old
17968   /boot/kernel.55S_2
18  /boot/defaults
2   /boot/modules

You want -x to not descend into mounts such as /usr or /var.  Replace 
-d1 with --max-depth=1 if you like extra typing, or are using linux :)

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Jacques Manukyan
Definitely take a look at the /usr/home directory like Mehul stated. Try 
something like this to get a list of large files in that file system:


find /usr -type f -size +50M -exec ls -la {} \;

or

find /usr/home -type f -size +50M -exec ls -la {} \;

The above commands will print out a list of files above 50 Megs.

Also, you might have large log files lying around the file system taking 
up space.


-- Jacques Manukyan


Mehul Ved wrote:

On Fri, Mar 13, 2009 at 6:06 PM, Warren Liddell shin...@maydias.com wrote:
  

Thanks that gave me what i needed .. now i goto figure out what i can del an
what not to .. never had a prob with / filling up before *g*

enterprise# du -h -d 1 /
537G/usr
538G/



Pretty easy to figure out where the problem is. I guess I'd check
/usr/home next.


  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread John Almberg

On Mar 13, 2009, at 8:46 AM, Bill Moran wrote:


In response to Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:


good lesson to NOT make multiple partitions :)


And when a rogue app fills up /var and kills 4 other apps that could
have kept going ... are we then learning conflicting lessons?

Enterprise-class servers should have many partitions to separate  
different

functions and protect apps from each other.


This newbie admin agrees with this. Having a separate /var partition,  
in particular, has saved my bacon several times, at least until I  
figured out how to turn mysql-bin files off. The /var partition was  
at 100%, but the server kept going so I could diagnose and find the  
problem. Whew!


-- John

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Warren Liddell

Mehul Ved wrote:

On Fri, Mar 13, 2009 at 6:06 PM, Warren Liddell shin...@maydias.com wrote:
  

Thanks that gave me what i needed .. now i goto figure out what i can del an
what not to .. never had a prob with / filling up before *g*

enterprise# du -h -d 1 /
537G/usr
538G/



Pretty easy to figure out where the problem is. I guess I'd check
/usr/home next.
  

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a496M416M 41M91%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad0s1e496M 50K456M 0%/tmp
/dev/ad0s1f281G126G133G49%/usr
/dev/ad0s1d2.8G747M1.8G29%/var
/dev/ad1s1 180G136G 30G82%/usr/home/shinjii/WINDOWS
/dev/ad4s1 451G275G140G66%/usr/home/shinjii/downloads
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Warren Liddell

Olivier Nicole wrote:

396M/boot



I'd say this /boot is pretty big, you may have several versions of
older kernel that you can remove.

Olivier
  


with thanks to the added du command not looking into mounts, it seemd 
/boot was it, there was a kernel.old file in there rather large, removed 
it an an old loader file which has freed up quite a bit of space ..


Thanks to all for assistance.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Jos Chrispijn


Warren Liddell wrote:
with thanks to the added du command not looking into mounts, it seemd 
/boot was it, there was a kernel.old file in there rather large, 
removed it an an old loader file which has freed up quite a bit of 
space ..

How much space did you get rid of?
Jos Chrispijn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: / partition full

2009-03-13 Thread Kaspars Bankovskis
On Fri, Mar 13, 2009 at 1:42 PM, Mehul Ved mehul.n@gmail.com wrote:
 On Fri, Mar 13, 2009 at 5:03 PM, Warren Liddell shin...@maydias.com wrote:
 I've looked as much as i can, but with only 5meg free on / .. its making
 things in terms of building world  kernel a lil difficult .. what's the
 command so i can see exactly what dir on / is using up all the space so i
 can free it up ?

 Are you looking for du --max-depth=1 / ?



--max-depth is not an option of BSD's du, but of the one from Linux.
-d is the option on BSD.

 --

 Heard that the next Space Shuttle is supposed to carry several
 Guernsey cows? It's gonna be t...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




-- 
Kaspars Bankovskis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


partition full, recreating a tape device

2004-11-24 Thread David Newman
Greetings. This is regarding a FSBD 4.10-RELEASE system.
df -h shows the root file system is 109 percent utilized:
Filesystem  Size   Used  Avail Capacity  Mounted on
/dev/aacd0s1a   126M   126M  -9.9M   109%/
The culprit is a rewindable tape drive in /dev. It shows up as an ordinary 
file, not as a device (like the nonrewindable device, /dev/nsa1):

-rw-r--r--  1 root  wheel  83046400 Nov 20 01:02 /dev/nsa1
crw-r-  1 root  wheel   14,  16 Nov 24 05:50 /dev/rsa1
Question: How do I correct this so that:
1. /dev/nsa1 shows up as a regular device; and
2. /dev/nsa1 doesn't fill up the filesystem
Many thanks.
Regards,
David Newman
Network Test

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: partition full, recreating a tape device

2004-11-24 Thread Dan Nelson
In the last episode (Nov 24), David Newman said:
 Greetings. This is regarding a FSBD 4.10-RELEASE system.
 
 df -h shows the root file system is 109 percent utilized:
 
 Filesystem  Size   Used  Avail Capacity  Mounted on
 /dev/aacd0s1a   126M   126M  -9.9M   109%/
 
 The culprit is a rewindable tape drive in /dev. It shows up as an ordinary 
 file, not as a device (like the nonrewindable device, /dev/nsa1):
 
 -rw-r--r--  1 root  wheel  83046400 Nov 20 01:02 /dev/nsa1
 crw-r-  1 root  wheel   14,  16 Nov 24 05:50 /dev/rsa1
 
 Question: How do I correct this so that:
 
 1. /dev/nsa1 shows up as a regular device; and
 2. /dev/nsa1 doesn't fill up the filesystem

Remove /dev/nsa1, and run ./MAKEDEV sa1, which will recreate all the
device nodes for sa1, including nsa1.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: partition full, recreating a tape device

2004-11-24 Thread David Newman
On Wed, 24 Nov 2004, Dan Nelson wrote:
1. /dev/nsa1 shows up as a regular device; and
2. /dev/nsa1 doesn't fill up the filesystem
Remove /dev/nsa1, and run ./MAKEDEV sa1, which will recreate all the
device nodes for sa1, including nsa1.
Worked like a charm. Thanks for your speedy reply!
dn
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HELP! root partition full!

2003-01-30 Thread Jason Morgan
I got a strange error from my server this morning - root partition full.
I then looked at my email and had this in my inbox (of course I get
this every day):

Disk status:
Filesystem1K-blocksUsedAvail Capacity  Mounted on
/dev/ad0s1a  516062  505036   -30258   106%/
/dev/ad2s1a  516062  117638   35714025%/rootbackup
procfs4   40   100%/proc
/dev/vinum/usr 19850256 1112316 17149920 6%/usr
/dev/vinum/var 235792039623 21683244 0%/var
/dev/vinum/public  29776085 116 27393883 0%/public

This was yesterday:

Disk status:
Filesystem1K-blocksUsedAvail Capacity  Mounted on
/dev/ad0s1a  516062  135492   33928629%/
/dev/ad2s1a  516062  117638   35714025%/rootbackup
procfs4   40   100%/proc
/dev/vinum/usr 19850256 1108980 17153256 6%/usr
/dev/vinum/var 235792039323 21683544 0%/var
/dev/vinum/public  29776085 116 27393883 0%/public

How do I determine what's going on? This is really strange.

Thanks,

Jason

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: HELP! root partition full!

2003-01-30 Thread Jeff Jirsa
On Thu, 30 Jan 2003, Jason Morgan wrote:

 I got a strange error from my server this morning - root partition full.
 I then looked at my email and had this in my inbox (of course I get
 this every day):

 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  505036   -30258   106%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup
 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1112316 17149920 6%/usr
 /dev/vinum/var 235792039623 21683244 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public

 This was yesterday:

 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  135492   33928629%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup
 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1108980 17153256 6%/usr
 /dev/vinum/var 235792039323 21683544 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public

 How do I determine what's going on? This is really strange.



You can use `du` to find out which directories in the / partition are
using the diskspace. Specifically, /etc, /root, /bin, /sbin, and /tmp are
worth checking.

Have you done anything as root in the last day or two? Specifically,
installing Perl modules creates temp directories and a lot of temporary
files used to build the modules, and has been the source of this kind of
problem for other people for quite some time.

- Jeff Jirsa


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: HELP! root partition full!

2003-01-30 Thread Jim Trigg
On Thu, Jan 30, 2003 at 12:05:50PM -0500, Jason Morgan wrote:
 I got a strange error from my server this morning - root partition full.
 I then looked at my email and had this in my inbox (of course I get
 this every day):
 
 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  505036   -30258   106%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup
 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1112316 17149920 6%/usr
 /dev/vinum/var 235792039623 21683244 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public
 
 How do I determine what's going on? This is really strange.

First guess is that something large was put into /tmp by a root-owned
process.  Clean out /tmp and see what df looks like then.

Jim
-- 
Jim Trigg, Lord High Everything Else  O-  /\
  \ /  ASCII RIBBON CAMPAIGN
Hostmaster, Huie Kin family websiteXHELP CURE HTML MAIL
Verger, All Saints Church - Sharon Chapel / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: HELP! root partition full!

2003-01-30 Thread Beech Rintoul
- Original Message - 
From: Jason Morgan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 8:05 AM
Subject: HELP! root partition full!


 I got a strange error from my server this morning - root partition full.
 I then looked at my email and had this in my inbox (of course I get
 this every day):
 
 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  505036   -30258   106%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup
 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1112316 17149920 6%/usr
 /dev/vinum/var 235792039623 21683244 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public
 
 This was yesterday:
 
 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  135492   33928629%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup

 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1108980 17153256 6%/usr
 /dev/vinum/var 235792039323 21683544 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public
 
 How do I determine what's going on? This is really strange.
 
 Thanks,
 
 Jason
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 


Use df to find the file thats filling your root:

 du -a -x /usr | sort -rn | tee /tmp/root-space

Beech
---
Beech Rintoul - Network Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 
 X  - NO Word docs in e-mail | Anchorage, AK 99518-1841 
  No More Spam! http://www.knockmail.com/default.asp?AID=B0R00073
/ \ -
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re[2]: HELP! root partition full!

2003-01-30 Thread Ben Williams
Thursday, January 30, 2003, 3:56:58 PM, you wrote:

BR - Original Message - 
BR From: Jason Morgan [EMAIL PROTECTED]
BR To: [EMAIL PROTECTED]
BR Sent: Thursday, January 30, 2003 8:05 AM
BR Subject: HELP! root partition full!


 I got a strange error from my server this morning - root partition full.
 I then looked at my email and had this in my inbox (of course I get
 this every day):
 
 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  505036   -30258   106%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup
 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1112316 17149920 6%/usr
 /dev/vinum/var 235792039623 21683244 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public
 
 This was yesterday:
 
 Disk status:
 Filesystem1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a  516062  135492   33928629%/
 /dev/ad2s1a  516062  117638   35714025%/rootbackup

 procfs4   40   100%/proc
 /dev/vinum/usr 19850256 1108980 17153256 6%/usr
 /dev/vinum/var 235792039323 21683544 0%/var
 /dev/vinum/public  29776085 116 27393883 0%/public
 
 How do I determine what's going on? This is really strange.
 
 Thanks,
 
 Jason
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 


BR Use df to find the file thats filling your root:

BR  du -a -x /usr | sort -rn | tee /tmp/root-space

   Wont the tee will cause this to fail because:
 /dev/ad0s1a  516062  505036   -30258   106%/
?

-- 
Benmailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message