Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-06 Thread RW
On Fri, 02 Jul 2010 16:28:29 +0100
Arthur Chance free...@qeng-ho.org wrote:

 I suspect whoever you were talking to probably has more of a clue
 than I do. As a quick data point, I just ran portsnap fetch update
 while another process did a df /var; sleep 1 loop and /var
 increased by about 30MB at its peak. That was a week after the last
 port update. I've no idea how much space a portsnap fetch extract
 would take and would rather not do one right now. 

The temporary space is likely used by the fetch stage for
downloaded patch files. I don't think update or extract use much
storage on /var.
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Is it time for me to start advocating one big partition again?

This may not be the consensus view, but I have found that for a quiet
life and general lack of botheration it helps to create *only two*
partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

Now, I've run this setup on literally hundreds of servers without
problems.  The usual argument against doing this is but a run-away
process might log so much that is fills your hard drive.  This is true.
 You might also be killed by a lightning strike the next time you leave
your house.  Run-away logfiles are actually pretty rare, and given that
80GB would be considered a pretty small hard drive nowadays, and you can
fit a standard FreeBSD install with quite a lot of extra software inside
10GB, you're likely to have sufficient empty space that you'ld get days
of warning before it caused real trouble.  In which case, newsyslog(8)
is your friend.  Cycling logs based on size and checking that every hour
will avoid almost all trouble.  You do monitor disk space usage on your
servers don't you?  Cacti is in ports and its pretty easy to set up, as
are several other alternatives.

Watch this list: you'll see people having trouble with too small root
partitions with great regularity.  I don't think I've /ever/ seen anyone
ask about dealing with a process generating huge amounts of log data.

Even if you do fill up the hard drive, it's not actually guaranteed
disaster.  FreeBSD itself will keep running just fine.  So will most web
applications -- although you won't get any logging.  Simply delete some
of the excess files, and the system will spring back to normal function.
 Filling the partition certainly will crash a database, but for serious
RDBMS setups, I generally make an exception and put the database working
files onto their own partition[*].

Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
which is allocated all of the space for the zdevs on the system.  This
is much the best of both worlds -- you get as many filesystems as you
can eat, but each of them can use as much of the total available space
as it needs to.

Cheers,

Matthew

[*] As this usually involves hardware RAID10 with plenty of cache and a
BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
separate partition in any case.

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
=T9JF
-END PGP SIGNATURE-
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Svein Skogen (Listmail Account)
On 02.07.2010 09:33, Matthew Seaman wrote:
 On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.
 
 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else
 

I usually (today) set up something similar. I sysinstall FreeBSD onto a
CF card with the one-big-root method, then create a zpool (on
spinning-metal-storage) where I create the usr, tmp, var fs'es, tar|tar
the originals over and fix the mountpoint info on the zfs'es. Then I add
swap on a zvol (since I don't know how to properly use a kernel dump, I
don't need swap to store it).

I use this method everywhere except on VMs inside VMWare ESXi. It's been
my painful experience that zfs inside vmware machines is a bad idea.

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread krad
On 2 July 2010 08:33, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2010 22:29:54, Ed Flecko wrote:
  Henrik,
  When I FIRST installed 8.0, I did create a separate /home partition.
  When I installed the kernel and starting running out of space in / , I
  thought O.K...I'll let FreeBSD make the partition sizes IT wants to
  and see if I have the same problem, and I did.
 
  Apparently, 512M is just, not, quite big enough so I think I'll try 1G
  to give me plenty of room.

 Is it time for me to start advocating one big partition again?

 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

 Now, I've run this setup on literally hundreds of servers without
 problems.  The usual argument against doing this is but a run-away
 process might log so much that is fills your hard drive.  This is true.
  You might also be killed by a lightning strike the next time you leave
 your house.  Run-away logfiles are actually pretty rare, and given that
 80GB would be considered a pretty small hard drive nowadays, and you can
 fit a standard FreeBSD install with quite a lot of extra software inside
 10GB, you're likely to have sufficient empty space that you'ld get days
 of warning before it caused real trouble.  In which case, newsyslog(8)
 is your friend.  Cycling logs based on size and checking that every hour
 will avoid almost all trouble.  You do monitor disk space usage on your
 servers don't you?  Cacti is in ports and its pretty easy to set up, as
 are several other alternatives.

 Watch this list: you'll see people having trouble with too small root
 partitions with great regularity.  I don't think I've /ever/ seen anyone
 ask about dealing with a process generating huge amounts of log data.

 Even if you do fill up the hard drive, it's not actually guaranteed
 disaster.  FreeBSD itself will keep running just fine.  So will most web
 applications -- although you won't get any logging.  Simply delete some
 of the excess files, and the system will spring back to normal function.
  Filling the partition certainly will crash a database, but for serious
 RDBMS setups, I generally make an exception and put the database working
 files onto their own partition[*].

 Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
 which is allocated all of the space for the zdevs on the system.  This
 is much the best of both worlds -- you get as many filesystems as you
 can eat, but each of them can use as much of the total available space
 as it needs to.

Cheers,

Matthew

 [*] As this usually involves hardware RAID10 with plenty of cache and a
 BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
 separate partition in any case.

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
 I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
 =T9JF
 -END PGP SIGNATURE-
 ___
 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




all i can say is your a brave boy 8) A 1 TB+ / slice would take ages to
fsck.

Of course all these issues go away with zfs
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
krad writes:

  all i can say is your a brave boy 8) A 1 TB+ / slice would take
  ages to fsck.

For ages being less than ten (fifteen ?) minutes on a modern
system with reasonable memory ...
... which should be necessary very rarely.  Even on my test
system, time between involuntary reboots is measured in weeks.


Robert Huff
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 08:33:45 +0100
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else

This is perfect bikeshed material: people believe FreeBSD's
partitioning scheme is superior to (for example) Linux, and that by
dumping everything in a single partition we'd be dumbing it down. I
still create separate partitions through paranoia, to avoid corrupting
the entire disk if for example /usr/obj is being written to when the
power goes out. I don't know if that would happen but I've had too many
problem over the years with various filesystems that I don't trust it.
With ZFS I've gone even further and created separate filesystems
for /usr/src, /usr/ports etc. The output of 'mount' looks somewhat like
a Solaris machine now :)

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.

-- 
Bruce Cran
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 02:29:54PM -0700, Ed Flecko wrote:

 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Apparently also 64 bit systems take more room.   I didn't notice
it was a 64 bit system when I responded yesterday.
You might want to jump to 768 MB for root.

jerry

 
 Ed
 ___
 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
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 13:13, Bruce Cran wrote:

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.


As a matter of idle curiosity with a bit of education thrown in, why 4GB 
for /var? The last time I installed a new machine I made / 1GB as I'd 
found out from a previous install that 512MB wasn't really enough, and 
then decided to make /var bigger than the Handbook said as well and made 
it 3GB. This has turned out to be total overkill:


art...@fileserver df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as large 
as other people's but a leap of 4-16 times what it currently suggests in 
the Handbook seems a bit excessive, especially if people are installing 
onto older kit. OTOH, playing devil's advocate with myself, disks are 
huge these days so why not?


___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
Arthur Chance writes:

  As a matter of idle curiosity with a bit of education thrown in,
  why 4GB for /var? The last time I installed a new machine I made
  / 1GB as I'd found out from a previous install that 512MB wasn't
  really enough, and then decided to make /var bigger than the
  Handbook said as well and made it 3GB. This has turned out to be
  total overkill:

It is my understanding space used on /var is, well, variable.
While a generic system might only use, say, 300 mbytes 99.99 per
cent of the time, the other .01 might use 5 or 10 or 20 gbytes if
available. 


Robert Huff



___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chance free...@qeng-ho.org wrote:

 As a matter of idle curiosity with a bit of education thrown in, why
 4GB for /var? The last time I installed a new machine I made / 1GB as
 I'd found out from a previous install that 512MB wasn't really
 enough, and then decided to make /var bigger than the Handbook said
 as well and made it 3GB. This has turned out to be total overkill:
 
 art...@fileserver df -h /var
 Filesystem  SizeUsed   Avail Capacity  Mounted on
 /dev/ad10s1d2.9G205M2.5G 8%/var
 
 I'm sure my use of this machine is very simple and nowhere near as
 large as other people's but a leap of 4-16 times what it currently
 suggests in the Handbook seems a bit excessive, especially if people
 are installing onto older kit. OTOH, playing devil's advocate with
 myself, disks are huge these days so why not?
 

I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.

-- 
Bruce Cran
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 15:38, Bruce Cran wrote:

On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chancefree...@qeng-ho.org  wrote:


As a matter of idle curiosity with a bit of education thrown in, why
4GB for /var? The last time I installed a new machine I made / 1GB as
I'd found out from a previous install that 512MB wasn't really
enough, and then decided to make /var bigger than the Handbook said
as well and made it 3GB. This has turned out to be total overkill:

art...@fileserver  df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as
large as other people's but a leap of 4-16 times what it currently
suggests in the Handbook seems a bit excessive, especially if people
are installing onto older kit. OTOH, playing devil's advocate with
myself, disks are huge these days so why not?



I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.


I suspect whoever you were talking to probably has more of a clue than I 
do. As a quick data point, I just ran portsnap fetch update while 
another process did a df /var; sleep 1 loop and /var increased by 
about 30MB at its peak. That was a week after the last port update. I've 
no idea how much space a portsnap fetch extract would take and would 
rather not do one right now. Similarly I've no idea how much 
freebsd-update might take.

___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 11:24, Ed Flecko wrote:
 Hi folks,
 I'm running FreeBSD 8.0, and I'm trying to simple stay current with
 all security patches. It's a clean install of FreeBSD 8.0 on a 50G
 drive, and I let sysinstall select the default partition configuration
 when I did the install.
 
 I've taken the following steps:
 
 
 # csup -4 /etc/stable-supfile
 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel
 
 After the make installkernel command, the / partition shows 106%
 capacity (and it started as 500M).
 
 Here's my before and after running make installkernel
 
 Before:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M253M203M55%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 After:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M485M-29M   106%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 # cd /
 # du -h -d2 | grep M
 
 2.0K  ./tmp/.XIM-unix
  33M  ./usr/bin
  18M  ./usr/include
  37M  ./usr/lib
  20M  ./usr/libexec
 267M ./usr/local
  20M  ./usr/sbin
  37M  ./usr/share
 511M ./usr/src
 450M ./usr/ports
  10M  ./var/db
  10M  ./var
 1.7M  ./etc
 1.1M  ./bin
 233M ./boot/kernel
 233M ./boot/kernel.old
 466M ./boot
 7.4M  ./lib
 4.3M  ./rescue
 4.4M  ./sbin
 
 It looks like the both kernels are eating up the entire /
 
 Right?
 
 What am I doing wrong? The isn't normal, is it?
 
 Thank you,
 Ed
 ___
 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

I've experienced the same thing on amd64 -- the default partition size
for root is too small.  Rather than going to the trouble of correcting
it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
installkernel', and all seems OK.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpj8YPHIDDdA.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Thanks guys.

:-)

Doesn't that seem odd that the default partition size for root
(512M) isn't quite big enough?

Should I make the partition size slightly larger (on future installs)
to eliminate this problem?

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 I've experienced the same thing on amd64 -- the default partition size
 for root is too small.  Rather than going to the trouble of correcting
 it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
 installkernel', and all seems OK.

That's a little dangerous, because you're deleting your last known-good
kernel.  I'd feel better about recommending just removing the
unnecessary kernel modules (which for a lot of people, is all of them).
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Chip,
That sounds like a smart thing to do; can you tell me more about how
to do that (or point me to a www resource; I'm happy to read more
about that).

:-)

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread James Bailie
Try rm -r /boot/kernel.old
I bet that's the problem.
--
James Bailie
http://www.mammothcheese.ca

-Original Message-
From: Ed Flecko edfle...@gmail.com
Sender: owner-freebsd-questi...@freebsd.org
Date: Thu, 1 Jul 2010 11:24:46 
To: freebsd-questions@freebsd.org
Subject: /boot is full after running make installkernel on FreeBSD 8.0

Hi folks,
I'm running FreeBSD 8.0, and I'm trying to simple stay current with
all security patches. It's a clean install of FreeBSD 8.0 on a 50G
drive, and I let sysinstall select the default partition configuration
when I did the install.

I've taken the following steps:


# csup -4 /etc/stable-supfile
# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel

After the make installkernel command, the / partition shows 106%
capacity (and it started as 500M).

Here's my before and after running make installkernel

Before:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M253M203M55%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

After:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M485M-29M   106%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

# cd /
# du -h -d2 | grep M

2.0K./tmp/.XIM-unix
 33M./usr/bin
 18M./usr/include
 37M./usr/lib
 20M./usr/libexec
267M ./usr/local
 20M./usr/sbin
 37M./usr/share
511M ./usr/src
450M ./usr/ports
 10M./var/db
 10M./var
1.7M./etc
1.1M./bin
233M ./boot/kernel
233M ./boot/kernel.old
466M ./boot
7.4M./lib
4.3M./rescue
4.4M./sbin

It looks like the both kernels are eating up the entire /

Right?

What am I doing wrong? The isn't normal, is it?

Thank you,
Ed
___
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
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 15:10, Lowell Gilbert wrote:
 Chip Camden sterl...@camdensoftware.com writes:
 
  I've experienced the same thing on amd64 -- the default partition size
  for root is too small.  Rather than going to the trouble of correcting
  it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
  installkernel', and all seems OK.
 
 That's a little dangerous, because you're deleting your last known-good
 kernel.  I'd feel better about recommending just removing the
 unnecessary kernel modules (which for a lot of people, is all of them).
 ___
 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

Could you expand on that?  I'd prefer a less risky option, especially
because I always get this paralyzing fear that I'll accidentally hit
Enter after I've typed 'rm -r /'

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpsdgVN3XSlj.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 12:07, Ed Flecko wrote:
 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?
 
 Ed
 ___
 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

I know *I* will.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpg29YkGipfM.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 On Jul 01 15:10, Lowell Gilbert wrote:
 Chip Camden sterl...@camdensoftware.com writes:
 
  I've experienced the same thing on amd64 -- the default partition size
  for root is too small.  Rather than going to the trouble of correcting
  it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
  installkernel', and all seems OK.
 
 That's a little dangerous, because you're deleting your last known-good
 kernel.  I'd feel better about recommending just removing the
 unnecessary kernel modules (which for a lot of people, is all of them).

 Could you expand on that?  I'd prefer a less risky option, especially
 because I always get this paralyzing fear that I'll accidentally hit
 Enter after I've typed 'rm -r /'

A healthy fear, indeed.

For one thing, I'd certainly rather have someone 
do rm /boot/kernel.old/*.ko than rm -r /boot/kernel.old.

Being even more selective is an obvious extension...
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 On Jul 01 12:07, Ed Flecko wrote:
 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?
 
 Ed

 I know *I* will.

*Considerably* larger, I would say.  The number of different kernel
 modules is growing all the time, and that's where the expansion is
 mostly coming from.

Or just make one large partition.  Not on a server, but I don't see much
reason for using multiple partitions on a laptop.

___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Anders Andersson

 A healthy fear, indeed.

 For one thing, I'd certainly rather have someone
 do rm /boot/kernel.old/*.ko than rm -r /boot/kernel.old.

 Being even more selective is an obvious extension...


Why not move the old useless kernel to another drive. Sure if the system
kernel fails and you need the old one, there is a little bit more work, but
nothing that I can't see be solved by:
1. booting from a livecd
2. mount the /boot and /theotherpartition
3. move the kernel back and move the faulty one away
4. reboot

That saves you from deleting the entire computer/world/Internet and save the
old kernel as well. However, I have never done this myself but the theory
sounds good.
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Since it would be smart to have at least one known, good kernel, why
not make the / partition maybe 1G?

I know the smaller the / partition, the better the performance (since
it's the first partition of the drive), but I can't imagine a slightly
larger / partition would impact performance that much, do you think?

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread krad
On 1 July 2010 21:12, Ed Flecko edfle...@gmail.com wrote:

 Since it would be smart to have at least one known, good kernel, why
 not make the / partition maybe 1G?

 I know the smaller the / partition, the better the performance (since
 it's the first partition of the drive), but I can't imagine a slightly
 larger / partition would impact performance that much, do you think?

 Ed
 ___
 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



On ufs installs I tend to have a single 8GB partition for /, I then hang
/tmp, /var, /home, and /usr/local off it along with any other fs i need.

When doing a zfs root install I obviously dont have to specify the size.
However I still tend to put on an 8GB reservation on it.
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Henrik Hudson
On Thu, 01 Jul 2010, Lowell Gilbert wrote:

 Chip Camden sterl...@camdensoftware.com writes:
 
  On Jul 01 12:07, Ed Flecko wrote:
  Thanks guys.
  
  :-)
  
  Doesn't that seem odd that the default partition size for root
  (512M) isn't quite big enough?
  
  Should I make the partition size slightly larger (on future installs)
  to eliminate this problem?
  
  Ed
 
  I know *I* will.
 
 *Considerably* larger, I would say.  The number of different kernel
  modules is growing all the time, and that's where the expansion is
  mostly coming from.
 
 Or just make one large partition.  Not on a server, but I don't see much
 reason for using multiple partitions on a laptop.

Multiple partitions still isn't a bad idea if you ever have to fsck
and even on a desktop / laptop I usually mount /tmp as noexec. (note:
installworld requires exec in /tmp, so you will have to remount /tmp
if you use that). Also, it's easier to recover if you can boot
single user mode and run a quick fsck on / when it's small. It
doesn't happen often, but when it does it's easier.

One thing I didn't see is a /home. Is your /home under /usr or /? I
have a 8-STABLE system with both kernel and kernel.old and they only
take up 520MB or so. I normally make my / 2-4GB and then mount a
separate /var (2-10GB depending), /tmp (2-10GB depending) and
/usr (15-50gb depending) and /home (the rest)  . A separate /home is very nice
if you're rebuilding or re-installing you can just not format that
partition and all your stuff will still be there. Of course, have
backups as well :)

Henrik
-- 
Henrik Hudson
li...@rhavenn.net
-
God, root, what is difference? Pitr; UF 

___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 11:24:46AM -0700, Ed Flecko wrote:

 Hi folks,
 I'm running FreeBSD 8.0, and I'm trying to simple stay current with
 all security patches. It's a clean install of FreeBSD 8.0 on a 50G
 drive, and I let sysinstall select the default partition configuration
 when I did the install.
 
 I've taken the following steps:
 
 
 # csup -4 /etc/stable-supfile
 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel
 
 After the make installkernel command, the / partition shows 106%
 capacity (and it started as 500M).

 
 Here's my before and after running make installkernel
 

 Before:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M253M203M55%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 After:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M485M-29M   106%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 # cd /
 # du -h -d2 | grep M
 
 2.0K  ./tmp/.XIM-unix
  33M  ./usr/bin
  18M  ./usr/include
  37M  ./usr/lib
  20M  ./usr/libexec
 267M ./usr/local
  20M  ./usr/sbin
  37M  ./usr/share
 511M ./usr/src
 450M ./usr/ports
  10M  ./var/db
  10M  ./var
 1.7M  ./etc
 1.1M  ./bin
 233M ./boot/kernel
 233M ./boot/kernel.old
 466M ./boot
 7.4M  ./lib
 4.3M  ./rescue
 4.4M  ./sbin
 
 It looks like the both kernels are eating up the entire /
 
 Right?

They are using up about twice the space that two kernels are
using on my machine here.

 
 What am I doing wrong? The isn't normal, is it?

Normal is probably not a very real concept.
I get along with with 384MB for my root partition and I have a couple of
kernels there.   It is running at 92% capacity so I could probably use 
some more, but shouldn't need over 512 MB,  (Tho that isn't 8.xx so
I might have to set my sights larger when I get to that).   

jerry

 
 Thank you,
 Ed
 ___
 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
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 12:07:50PM -0700, Ed Flecko wrote:

 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?

Many people find the default partitions inadequate for their 
needs.  It is OK to change them.   So, sure.

jerry


 
 Ed
 ___
 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
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Henrik,
When I FIRST installed 8.0, I did create a separate /home partition.
When I installed the kernel and starting running out of space in / , I
thought O.K...I'll let FreeBSD make the partition sizes IT wants to
and see if I have the same problem, and I did.

Apparently, 512M is just, not, quite big enough so I think I'll try 1G
to give me plenty of room.

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Robert Huff

Henrik Hudson writes:

   Or just make one large partition.  Not on a server, but I don't 
   see much reason for using multiple partitions on a laptop.
  
  Multiple partitions still isn't a bad idea if you ever have to
  fsck and even on a desktop / laptop I usually mount /tmp as
  noexec. (note: installworld requires exec in /tmp, so you will
  have to remount /tmp if you use that). Also, it's easier to
  recover if you can boot single user mode and run a quick fsck on
  / when it's small. It doesn't happen often, but when it does it's
  easier.

1) The preferred backup method uses dump.
2) dump works on entire partitions.
2a) It makes little sense to back up 500 gbytes when all you
need to preserve is 5 gbytes.
3) If you regularly need to dump more than a single partition,
quite a few people have scripts they will probably be willing to
share.


Robert Huff





___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 12:29, Chip Camden wrote:
 On Jul 01 12:07, Ed Flecko wrote:
  Thanks guys.
  
  :-)
  
  Doesn't that seem odd that the default partition size for root
  (512M) isn't quite big enough?
  
  Should I make the partition size slightly larger (on future installs)
  to eliminate this problem?
  
  Ed
  ___
  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
 
 I know *I* will.
 
 -- 
 Sterling (Chip) Camden
 http://camdensoftware.com | http://chipstips.com | http://chipsquips.com

I've found that if you just rm /boot/kernel.old/*.symbols, you'll have
more than enough space.  Is that safe enough?


-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgp8OM1K20onO.pgp
Description: PGP signature