Re: [gentoo-user] Suggestions on partitioning HD

2005-10-14 Thread Matthias Bethke
Hi Dave,
on Thursday, 2005-10-13 at 13:50:53, you wrote:
 The root partition is your key to accessing your box.  You basically want to 
 have only static files on the root partition, not files that are in a general 
 state of flux.

ACK. This will also keep fragmentation down and thus performance up.
For Gentoo, it may be a good idea to put portage stuff on a separate
partition because it uses tens of thousands of small files that provoke
fragmentation. On my laptop I have one partition with two directories
usr-portage and var-cache-edb that are symlinked to the respective
places in the root FS.

regards
Matthias

-- 
I prefer encrypted and signed messages. KeyID: 90CF8389
Fingerprint: 8E1F 1081 A466 2946  B98A B9E2 099F 3B91


pgpHjkoP7Ngaz.pgp
Description: PGP signature


[gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Alexey Asprov
Hi again,

I have 10G HD which I would like to use for my new LVM2 install
following this guide:
http://www.gentoo.org/doc/en/lvm2.xml

I've decided to go with this doc using my physical partitions for /boot
/swap and / and give the rest to LVM.

So partitions /usr /home /opt /var /tmp will be using LVM
I will also use JFS filesystems on all of them, except /swap offcourse.

What is your suggestions regarding how much space to give to each?

Your replies are appreciated as always.

And yes, I know that my drive is small and old and I can shrink and expand
those in the future, but, theoretically, this is developement laptop and 
I want to use it.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Neil Bothwick
On Thu, 13 Oct 2005 19:50:55 +, Alexey Asprov wrote:

 I've decided to go with this doc using my physical partitions for /boot
 /swap and / and give the rest to LVM.
 
 So partitions /usr /home /opt /var /tmp will be using LVM

With only 10GB in total, running so many partitions is bound to result in
one filling up while the is free space on others. I would (and do)
put /usr, /var and /opt on the same partition.

/usr is mounted directly on the partition, /var and /opt are mounted
on /usr/var and /usr/opt using the bind option.


-- 
Neil Bothwick

Adolescence, n.: The stage between puberty and adultery.


pgpGBCUbEW2uV.pgp
Description: PGP signature


Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Dave Nebinger
1. Boot should be at most ext3, but ext2 is just fine (the only thing on this 
partition is kernel images and grub stages).  Keeping to this will mean less 
problems at boot time (grub users can tell you nightmares about 
reiserfs /boot partitions, and I'd guess that jfs would be in the same 
category).  50 meg is a nice round number although you can do with half that 
(I personally use 100mb but I've got a number of kernels installed there).

2. /opt does not need to be a separate partition.  Few gentoo things go there, 
so it is not worth maintaining a separate partition for (and wasting the 
possible space).

3. /home should be a separate partition, sized to your needs.

4.  I'm from the old school where we believe /var/tmp and /tmp should be 
separate partitions.  This is primarily before they were made partitions as a 
norm and were on the root partition; filling them meant filling / and also 
meant you would lose access to your box.

5. For gentoo I recommend using a separate partition for /usr/portage.  It's 
hard to nail down a size for this as portage tree keeps growing and the 
number of distfiles you might have is in flux.  Isolating it ensures that any 
growth issues are isolated to that branch.

6. /var is your choice whether to parrtition separately or not, but is 
probably a good idea.  /var/logs will grow over time, /var/spool is in 
constant flux, but the rest will typically remain kinda static (note this 
depends upon the apps you use; mysql houses it's databases under /var by 
default, and apache/tomcat use /var/www so that can chane also.

Sizing each of the areas is really personal preference; if you ask 10 
different gentooers you'll probably get 11 different responses at least.

Dave
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Michael Crute
On 10/13/05, Alexey Asprov [EMAIL PROTECTED] wrote: 
Hi again,I have 10G HD which I would like to use for my new LVM2 installfollowing this guide:
http://www.gentoo.org/doc/en/lvm2.xmlI've decided to go with this doc using my physical partitions for /boot/swap and / and give the rest to LVM.So partitions /usr /home /opt /var /tmp will be using LVM 
I will also use JFS filesystems on all of them, except /swap offcourse.What is your suggestions regarding how much space to give to each?Your replies are appreciated as always.And yes, I know that my drive is small and old and I can shrink and expand 
those in the future, but, theoretically, this is developement laptop andI want to use it.
I have a 120GB drive with a32M /boot a /10 GB / and the rest of the disk dedicated to /home. The setup works wonderfully for me. I have about 5 kernels in /boot and I'm not really pressing the limits of the space. 


-Mike-- Michael E. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware.In a world without walls and fences, who needs windows and gates? 



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Alexey Asprov
Thanks for your reply. So, if that were your system, how much space you
would give to /boot /swap / ( eliminating /opt) /home /var /tmp and  /usr?
I just need rough numbers, so that my fresh install wouldn't get in trouble.
I have 256 RAM and this is 10GIGs. Thanks again.

On Thu, 13 Oct 2005 12:14:30 -0400
Dave Nebinger [EMAIL PROTECTED] wrote:

 1. Boot should be at most ext3, but ext2 is just fine (the only thing on this 
 partition is kernel images and grub stages).  Keeping to this will mean less 
 problems at boot time (grub users can tell you nightmares about 
 reiserfs /boot partitions, and I'd guess that jfs would be in the same 
 category).  50 meg is a nice round number although you can do with half that 
 (I personally use 100mb but I've got a number of kernels installed there).
 
 2. /opt does not need to be a separate partition.  Few gentoo things go 
 there, 
 so it is not worth maintaining a separate partition for (and wasting the 
 possible space).
 
 3. /home should be a separate partition, sized to your needs.
 
 4.  I'm from the old school where we believe /var/tmp and /tmp should be 
 separate partitions.  This is primarily before they were made partitions as a 
 norm and were on the root partition; filling them meant filling / and also 
 meant you would lose access to your box.
 
 5. For gentoo I recommend using a separate partition for /usr/portage.  It's 
 hard to nail down a size for this as portage tree keeps growing and the 
 number of distfiles you might have is in flux.  Isolating it ensures that any 
 growth issues are isolated to that branch.
 
 6. /var is your choice whether to parrtition separately or not, but is 
 probably a good idea.  /var/logs will grow over time, /var/spool is in 
 constant flux, but the rest will typically remain kinda static (note this 
 depends upon the apps you use; mysql houses it's databases under /var by 
 default, and apache/tomcat use /var/www so that can chane also.
 
 Sizing each of the areas is really personal preference; if you ask 10 
 different gentooers you'll probably get 11 different responses at least.
 
 Dave
 -- 
 gentoo-user@gentoo.org mailing list
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Dave Nebinger
On Thursday 13 October 2005 12:52 pm, Michael Crute wrote:
 I have a 120GB drive with a 32M /boot a /10 GB / and the rest of the disk
 dedicated to /home. The setup works wonderfully for me.

Ah, but it is a disaster waiting to happen.  If you fill your root partition 
you'll have difficulty getting back into the box (you'll need your live cd to 
chroot into your system and clean out the disk).

How can something like this happen?  Syslog filling up /var/log.  An influx of 
spam filling /var/spool/mail.  Never cleaning /usr/portage/distfiles but 
continually downloading package updates.

The root partition is your key to accessing your box.  You basically want to 
have only static files on the root partition, not files that are in a general 
state of flux.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Dave Nebinger
On Thursday 13 October 2005 05:15 pm, Alexey Asprov wrote:
 Thanks for your reply. So, if that were your system, how much space you
 would give to /boot /swap / ( eliminating /opt) /home /var /tmp and  /usr?
 I just need rough numbers, so that my fresh install wouldn't get in
 trouble. I have 256 RAM and this is 10GIGs. Thanks again.

General rule of thumb is swap = 2 x ram, so 512mb swap.

That will leave about 9.25 gb left (must account for partitioning overhead).

I would probably do as follows:

/home - 2gb
/var - 1gb, rebind a section as /tmp to keep it all under this partition.  
Assumes you are not using the PORT_LOGDIR option, if you are add another 1gb.
/usr/portage - 1gb but you'll need to clean out distfiles regularly.
Whatever is left goes to /

Note that regardless of your partitioning, you're going to want to be very 
selective over what is installed on the system.  For example, choose gnome or 
kde, but not both (and set appropriate disabling use flags), or better yet a 
thinner window manager like icewm or something without the bulk/overhead of 
gnome/kde (which will struggle anyway due to low memory).

My system is allocated as:

cornholio src # df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/hda2  13G  7.6G  5.2G  60% /
/dev/hda1  99M   46M   49M  49% /boot
/dev/sda3 2.8G  356M  2.4G  13% /tmp
/dev/hdb1 3.9G  2.2G  1.7G  57% /var
/dev/sda2 3.9G  1.3G  2.6G  33% /var/tmp
/dev/hdc1  29G   23G  6.6G  78% /var/spool/news
/dev/hdb4 4.9G  3.3G  1.7G  67% /home
/dev/hdb2 3.9G  742M  3.1G  19% /usr/portage
/dev/sdb1 8.5G  463M  8.1G   6% /backup


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Rob

Alexey Asprov wrote:


Thanks for your reply. So, if that were your system, how much space you
would give to /boot /swap / ( eliminating /opt) /home /var /tmp and  /usr?
I just need rough numbers, so that my fresh install wouldn't get in trouble.
I have 256 RAM and this is 10GIGs. Thanks again.

On Thu, 13 Oct 2005 12:14:30 -0400
Dave Nebinger [EMAIL PROTECTED] wrote:

 

1. Boot should be at most ext3, but ext2 is just fine (the only thing on this 
partition is kernel images and grub stages).  Keeping to this will mean less 
problems at boot time (grub users can tell you nightmares about 
reiserfs /boot partitions, and I'd guess that jfs would be in the same 
category).  50 meg is a nice round number although you can do with half that 
(I personally use 100mb but I've got a number of kernels installed there).


2. /opt does not need to be a separate partition.  Few gentoo things go there, 
so it is not worth maintaining a separate partition for (and wasting the 
possible space).


3. /home should be a separate partition, sized to your needs.

4.  I'm from the old school where we believe /var/tmp and /tmp should be 
separate partitions.  This is primarily before they were made partitions as a 
norm and were on the root partition; filling them meant filling / and also 
meant you would lose access to your box.


5. For gentoo I recommend using a separate partition for /usr/portage.  It's 
hard to nail down a size for this as portage tree keeps growing and the 
number of distfiles you might have is in flux.  Isolating it ensures that any 
growth issues are isolated to that branch.


6. /var is your choice whether to parrtition separately or not, but is 
probably a good idea.  /var/logs will grow over time, /var/spool is in 
constant flux, but the rest will typically remain kinda static (note this 
depends upon the apps you use; mysql houses it's databases under /var by 
default, and apache/tomcat use /var/www so that can chane also.


Sizing each of the areas is really personal preference; if you ask 10 
different gentooers you'll probably get 11 different responses at least.


Dave
--
gentoo-user@gentoo.org mailing list
   



I know that there isn't much of a reason for a Reiser boot partition, 
but I ended up doing that anyway, but no problems at all with grub.  
Maybe problems were with older versions of the bootloader.


Rob.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suggestions on partitioning HD

2005-10-13 Thread Neil Bothwick
On Thu, 13 Oct 2005 11:51:46 -0700, Rob wrote:

 I know that there isn't much of a reason for a Reiser boot partition, 
 but I ended up doing that anyway, but no problems at all with grub.  
 Maybe problems were with older versions of the bootloader.

The problem is reiserfs itself. It needs a minimum of around 35MB for the
journal, not a good thing when space is at a premium and you want a small
partition.

Under the circumstances, I wouldn't have a separate /boot at all. Just /
(including /boot) swap and everything else on LVM.


-- 
Neil Bothwick

Windows Error #02: Multitasking attempted. System confused.


pgp9LGBarEuab.pgp
Description: PGP signature