[CentOS] CentOS 6.5 install

Mauricio Tavares raubvogel at gmail.com
Thu Feb 27 04:10:22 UTC 2014


On Wed, Feb 26, 2014 at 4:21 PM, Les Mikesell <lesmikesell at gmail.com> wrote:
> On Wed, Feb 26, 2014 at 3:12 PM,  <m.roth at 5-cent.us> wrote:
>>>>
>>> Is there a way to get /home, /var, and /opt installed as directories
>>> on that other "one big partition"?   /var in particular has an odd mix
>>> of OS and 'your' data and logs that may turn out to be big.  And you
>>> may not know ahead of time what to allocate for it as a separate mount
>>> point.
>>>
>> Here at work, /home is *always* NFS-mounted. Even so, I'd think 250G is
>> easily big enough for / to include /var, even with a moderately large d/b
>> there.
>
       I think 250G is overkill unless you have need for all that
space. A lot of my installs are

512MB-1GB : /boot
2GB            : /
2-4GB         : /usr, lvm
2-4GB         : /var, lvm

--- optional ---
XGB            : /usr/local, lvm
XGB            : /var/something for apache or mysql or storing penguins, lvm

/boot is never in a lvm and I usually do not put / in a lvm either;
the rest are always in lvm so I can move and resize them as needed.
And even that might be way too much:

My kvm-based vm host (centos 6.4):

[root at vmhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             1.9G  638M  1.2G  35% /
tmpfs                 7.7G     0  7.7G   0% /dev/shm
/dev/sda1             472M  149M  299M  34% /boot
/dev/mapper/vmhost_vg0-usr
                      4.0G  1.5G  2.4G  38% /usr
/dev/mapper/vmhost_vg0-var
                      4.0G  1.2G  2.7G  30% /var
fileserver:/home/raub
                      197G  163G   35G  83% /home/raub
[root at vmhost ~]#

My nagios/rsyslog thingie:

[raub at scan ~]$ df -h
Filesystem                  Size  Used Avail Use% Mounted on
/dev/vda2                   2.0G  675M  1.3G  36% /
tmpfs                       246M     0  246M   0% /dev/shm
/dev/vda1                   504M  106M  373M  23% /boot
/dev/mapper/nagios_vg0-usr  2.0G  584M  1.3G  31% /usr
/dev/mapper/nagios_vg0-var  2.0G  440M  1.5G  23% /var
fileserver:/logs             20G  651M   19G   4% /var/log/syslog
[raub at scan ~]$

As you can see, even 2GB is overkill for my root partition. Remember:
if you are using lvm you can move the other partitions to another
drive or raid without rebooting. And, you can set all that during the
install without losing your sleep.

> But as a generic question: is there a way to get the installer to put
> some top-level directories into subdirectories on a different volume
> so they share space but aren't part of the root volume?  You can do
> each as a separate mount point, but sometimes I want the effect you
> get with symlinks - which involves some awkward juggling for
> system-installed directories that already have contents.
>
> --
>    Les Mikesell
>      lesmikesell at gmail.com
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos



More information about the CentOS mailing list