[CentOS] RAID help

Tue Dec 14 22:27:45 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 12/14/2010 4:16 PM, Markus Falb wrote:
> On 14.12.2010 22:49, Jason T. Slack-Moehrle wrote:
>> Hi,
>>
>>> If you dont know in advance how your storage is allocated the best way,
>>> use lvm. The space you dont need today is in the pool and be it
>>> /var/www/html or swap or whatever assign it as needed in the future.
>>>
>>> Note that its maybe better to not put /boot into lvm.
>>>
>>> I would suggest
>>>
>>> /dev/md0 ->  /boot
>>> /dev/md1 ->  lvm with all other partitions including swap
>>
>> OK, I have done this, I need to create mount points and I am not sure how to initially size.
>
> My idea was to assign minimum at now. It could go like this:
>
> lvm volume group ->  1000GB
>
> for the system:
> lvm logical volume for / ->  1GB
> lvm logical volume for /var ->  1GB
> lvm logical volume for /usr ->  1GB
>
> lvm logical volume for /var/www/html ->  50GB
>
> Now you have assigned 53GB out of the 1000 and the other 947GB remains
> dynamically assignable from the lvm volume group.
>
> If you need more space in one of the partitions, just grow it, out of
> the pool of 947GB. Logical Volumes can be resized online and many
> filesystems can be grown online (mounted) too. If the initial 1GB for
> some partition proves to be to low, e.g. it has to be increased on every
> server you have than adjust it to initial 2GB or whatever size is
> adequat for you. I am not after numbers at all. My point is: If you dont
> know how to partition, assign at minimum, allowing for future flexibility.

But this only helps if you don't know where you will need to grow.  If 
you know it is going to be under /var, just give it all the space you 
have in the first place and avoid the overhead of lvm.

-- 
   Les Mikesell
     lesmikesell at gmail.com