Re: [gentoo-user] FIXED!! Re: Can't emerge xfce4 with installed lprng. But ran out of inodes. :-(

2008-07-29 Thread Matthias Bethke
Hi Dale,
on Fri, Jul 25, 2008 at 03:44:54PM -0500, you wrote:
 How do you run out of inodes anyway?  I use reiserfs for most partitions 
 except /boot and portage.  My /data partition has 75,000 files and 3,600 
 directories.  No problems so far but not near as many files as you have.

You can adjust the number of inodes to create at mkfs using -i, -N or -T
which are just different ways of doing the same thing. Lowering the
number of inodes wastes less disk space if you know you're not going to
write many files anyway. This feature bit me once when I set up a
-Tlargefile4 partition (i.e. one inode per 4 MiB of disk) for videos. As
it happens, I had to misuse it for backups at some point and was very
puzzled when df showed 3% used space but even touch gave me a no space
left on device error. tarring the stuff I had planned to just copy
solved it and would prolly have been faster in the first place :)

cheers,
Matthias
-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665


pgpvA54BVEYxS.pgp
Description: PGP signature


[gentoo-user] FIXED!! Re: Can't emerge xfce4 with installed lprng. But ran out of inodes. :-(

2008-07-25 Thread Alan Mackenzie
Hi, Dale and everybody else!

On Fri, Jul 25, 2008 at 05:23:59AM -0500, Dale wrote:
 Alan Mackenzie wrote:

 Just in case you are talking about editing the files in profiles, that
 won't work long term.  Keep in mind that each time you run emerge
 --sync those files will be overwritten.  It is not a good idea to edit
 anything in /usr/portage since it will update when you sync again.

 If you want to enable/disable features in the profiles, do that in 
 make.conf instead.

DONE.  It worked too, after fixing another problem (see below).

 That is where you put in your final wishes.  Example:  cups is enabled
 as a USE flag in the profile and you do not want cups enabled.  Put
 -cups in your make.conf and it should be disabled.  The reverse is also
 true.  If you want cups but it is disabled in the profile, you can add
 cups to your USE line in make.conf and it will be enabled.

 Hope that helps.

It helped a great deal, thanks!

With about 9 packages to go, I started getting disk full messages, even
though my (sole) partition had well over 1Gb free.  It turns out I'd ran
out of inodes.  Curious.  But the only application which has any data
at all yet is portage.  ;-)

I haven't looked in detail where all these little files are - I suspect
they're largely under /var - but dumpe2fs /dev/hdh5 gave:

Inode count:  250976 ===
Block count:  1002046
Reserved block count: 50102
Free blocks:  354807
Free inodes:  58 ===
First block:  0
Block size:   4096
Fragment size:4096

It seems I have 250,918 files in ~650,000 blocks.  That's a _lot_ of
files, most of them flea sized.

So I formatted another ext3 partitions, with 2048 byte blocks and
~1,000,000 inodes, copied all the files across, rebooted into Gentoo and
I was able to finish intalling xfce4.  It's nice!  I need to get firefox
now, and I'll probably let that run overnight.  ;-)

Comparing the two partions with df immediately after the bulk copy, I got
this:

Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/hdh5  3945128   2525880   1218840  68% /mnt/hdh5   == Old
/dev/hdh10 3882172   2069020   1612744  57% /mnt/hdh10  == New

Maybe 1024 byte blocks would have been even better.  Or would it be a
good idea to format the partition-with-all-the-little-files with Reiser.
Does Reiserfs have static limits on numbers of files?  It's supposed to
be very good at handling lots of midget files.

 Dale

 :-)  :-) 

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] FIXED!! Re: Can't emerge xfce4 with installed lprng. But ran out of inodes. :-(

2008-07-25 Thread Dale

Alan Mackenzie wrote:

Hi, Dale and everybody else!

On Fri, Jul 25, 2008 at 05:23:59AM -0500, Dale wrote:
  

Alan Mackenzie wrote:



  

Just in case you are talking about editing the files in profiles, that
won't work long term.  Keep in mind that each time you run emerge
--sync those files will be overwritten.  It is not a good idea to edit
anything in /usr/portage since it will update when you sync again.



  
If you want to enable/disable features in the profiles, do that in 
make.conf instead.



DONE.  It worked too, after fixing another problem (see below).

  

That is where you put in your final wishes.  Example:  cups is enabled
as a USE flag in the profile and you do not want cups enabled.  Put
-cups in your make.conf and it should be disabled.  The reverse is also
true.  If you want cups but it is disabled in the profile, you can add
cups to your USE line in make.conf and it will be enabled.



  

Hope that helps.



It helped a great deal, thanks!

With about 9 packages to go, I started getting disk full messages, even
though my (sole) partition had well over 1Gb free.  It turns out I'd ran
out of inodes.  Curious.  But the only application which has any data
at all yet is portage.  ;-)

I haven't looked in detail where all these little files are - I suspect
they're largely under /var - but dumpe2fs /dev/hdh5 gave:

Inode count:  250976 ===
Block count:  1002046
Reserved block count: 50102
Free blocks:  354807
Free inodes:  58 ===
First block:  0
Block size:   4096
Fragment size:4096

It seems I have 250,918 files in ~650,000 blocks.  That's a _lot_ of
files, most of them flea sized.

So I formatted another ext3 partitions, with 2048 byte blocks and
~1,000,000 inodes, copied all the files across, rebooted into Gentoo and
I was able to finish intalling xfce4.  It's nice!  I need to get firefox
now, and I'll probably let that run overnight.  ;-)

Comparing the two partions with df immediately after the bulk copy, I got
this:

Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/hdh5  3945128   2525880   1218840  68% /mnt/hdh5   == Old
/dev/hdh10 3882172   2069020   1612744  57% /mnt/hdh10  == New

Maybe 1024 byte blocks would have been even better.  Or would it be a
good idea to format the partition-with-all-the-little-files with Reiser.
Does Reiserfs have static limits on numbers of files?  It's supposed to
be very good at handling lots of midget files.

  

Dale



  
:-)  :-) 



  


I'm glad I finally opened my mouth and helped someone.  O_O  Miracles 
still happen.


How do you run out of inodes anyway?  I use reiserfs for most partitions 
except /boot and portage.  My /data partition has 75,000 files and 3,600 
directories.  No problems so far but not near as many files as you have.


Maybe a file system guru will come along.

Dale

:-)  :-)