I'm trying re-learn how to bring a new install up to -stable, and I've
been following the instructions on

http://www.openbsd.org/stable.html

and

http://www.openbsd.org/faq/faq5.html#Bld

and not doing a very good job of it. The recommended partition left me
with only 1.4G for /usr, and it was 90% full when I finished unpacking
the sys, src, ports, and xenocara tarballs.

(ancient IBM thinkpad with only 256M RAM and 20G (17 real gig) or hard
disk. 860 MHz or so CPU.)

I had saved 2.5G out of the suggested size for /home, so I cut a 1G
partition for /usr/ports and gave it the default newfs. mount on /mnt,
"cp -pR /usr/ports/ /mnt/" (I always mess that up -- "mv /mnt/ports/*
/mnt; mv /mnt/ports/.cvsignore /mnt".) Deleted the original contents
of /usr/ports, which I now see was a mistake, and mounted the new
partition on /usr/ports.

And then I did a cvs co on src, ports, and xenocara.

About an hour later, it tells me I have no inodes left on ports. "df
-ih" tells me I have 398 M used on /usr/ports, which is 42%, but
155,676 inodes in use, which is 100%. I forgot to write down what it
was trying to check out when it ran out.

/usr/src looks like its complete, with 111,613 inodes in use and
70,273 free, 1.2G partition with 313M free. I'm thinking that's room
enough to build the patches and a few other things I need.

What size partition should I cut for /usr/ports, and how many inodes
should I allocate it? Or should I just not try to bring /usr/ports up
to stable?

And what can I expect for /usr/xenocara? Just from unpacking the
tarball, it's using close to 700M on /usr, so I'm planning on cutting
it a partition, too.

My thinking is to use my remaining 1.5G for a new /usr/ports, give it
500,000 inodes and cp -pR again, to save bandwidth on the mirror, then
take the 1 G partition that would be freed, give it 300,000 inodes,
and use it for /usr/xenocara.

Can anyone tell me if that will be enough?

Or maybe I should just do it the other way, from the patch sets, I think it was.

-- 
Joel Rees

Be careful where you see conspiracy.
Look first in your own heart.

Reply via email to