Install an Internet services platform built with low-tech elements and / or recycled. We will start installing Debian GNU / Linux and RAID1 with LVM on a modest PC
A PC that hold 24 / 7 without burning as long as possible and can boot from CD or USB.
2 IDE hard disks of the same size (in my case 40GB)
1-CD or USB HD with Debian
We started the computer with the boot of debian-installer. If we like the graphical environment, we write "installgui" in the initial screen. If we do well with the text mode (options are the same), or writing which initiated this "expert" to set the advanced options.
Configure your system as you want until you reach the option "Disk Partitioning". Choose "Manually edit partition table."
The following shows you the summary of the current configuration of your hard drives.
IDE1 (hda)
IDE2 (hdb)
You should see them unless you have a problem with your hardware or the BIOS.
We turn to create the physical volumes for RAID1.
Select the disk IDE1.
Create a new empty partition table on this device = (Si)
Select the free space and create the boot partition.
Create new partition = 128 MB (in my case)
Type = Primary partition
Location of the new partition = Principle
The Partition settings: Use as a physical volume for RAID
Done setting up the partition.
Select the free space remaining and still
Create a new partition size = all available space, or to partition the points system we want, repeating this process for each (/ home, / root, / var ...)
Type = Primary partition
Partitioning Setup = physical volume for RAID
Done setting up partition
We repeat the steps taken to IDE2, taking care that the sizes of the partitions are identical in the 2 units.
In my case the disk IDE1 was almost more than the 1 GB IDE2, which allowed me to configure LVM in that room to spare, leaving the size of the 2 discs set. Could also be assigned as a whole area of trade and move from topic LVM. To taste the colors.
Configure the software RAID1
From "Partitioning disks"
Select Configure software RAID
Want to write changes in storage devices and configure RAID? = Yes
The following is
Create MD device
Multi-device type = disk RAID1
Number of active devices for the RAID1 array = 2
Number of spare devices for the RAID1 array = 0
"Active devices for the device, multi-disk RAID1"
We select the first partition both disks
[*] / dev/hda1
[] / Dev/hda2
[*] / dev/hdb1
[] / Dev/hdb2
Continue
We repeat the process and this time select the second partition
[] / dev/hda1
[*] / Dev/hda2
[] / dev/hdb1
[*] / Dev/hdb2
Continue
We have configured RAID1.
In partitioning disks should show in Table 2 Disk RAID devices (or partitions as many have done to your disc).
Now touch assign mount points to each.
The Table of discs
Select RAID1 device # 1 # 0
Use = as Reiserfs filesystem transaction (could easily put any other type as ext2 or ext3)
Mount point = / boot
Done setting up partition
We perform the same process in RAID device # 1 # 1 but this time as being the root mount point of the system (/).
The next step is to configure LVM
Select space on hda
Create volume group = vol00
Select / dev/md1 and continue
Create logical volumes
Select the group of volumes vol00
Name = swap logical volume
Logical volume size = 512MB (or your RAM x2)
Repeat the process of creating logical volumes until we have distributed to our taste the free space.
Write changes to disk and continue installing Debian. On this point there is enough material on the network not to dwell on it.
TO-DO:
Add some screenshots to illustrate the process
...........................................................................
Instalacion de una plataforma de servicios de Internet construida con elementos low-tech y/o reciclados. Empezaremos instalando Debian GNU/Linux con LVM y RAID1 en un modesto PC
Un PC que aguante 24/7 sin arder el maximo de tiempo posible y pueda arrancar desde CD o USB.
2 discos duros IDE del mismo tamaño (en mi caso 40 GB)
1 CD o HD-USB con Debian
Iniciamos el ordenador con el arranque del Debian-installer. Si nos gusta el entorno grafico, escribimos “installgui” en la pantalla inicial. Si nos va bien con el modo de texto (las opciones son las mismas), inciamos tal cual o escribiendo “expert” para establecer las opciones avanzadas.
Configura tu sistema como quieras hasta que llegues a la opcion de “Particionado de Discos“. Elige “Editar manualmente la tabla de particiones“.
Lo siguiente que te muestra es el resumen de la configuracion actual de tus discos duros.
IDE1 (hda)
IDE2 (hdb)
Deberias verlos a menos que tengas algun problema en tu hardware o en la BIOS.
Pasamos a crear los volumenes fisicos para el RAID1.
Seleccionamos el disco IDE1.
Crear una nueva tabla de particiones vacia para este dispositivo= (Si)
Seleccionamos el ESPACIO LIBRE y creamos la particion de arranque.
Crear nueva particion = 128 MB (en mi caso)
Tipo de particion=Primaria
Ubicacion de la nueva particion=Principio
Configuracion de la particion: Utilizar como=volumen fisico para RAID
Se ha terminado de definir la particion.
Seleccionamos el ESPACIO LIBRE restante y seguimos
Crear una nueva particion de tamaño = todo el espacio disponible, o bien realizar particiones para los puntos del sistema que queramos, repitiendo este proceso para cada una (/home, /root, /var…)
Tipo de particion=Primaria
Configuracion de la particion=volumen fisico para RAID
Se ha terminado de definir la particion
Repetimos los pasos realizados con el IDE2, teniendo cuidado de que los tamaños de las particiones sean identicos en las 2 unidades.
En mi caso el disco IDE1 tenia casi 1 GB mas que el IDE2, lo que me permitio configurar LVM en ese espacio de sobra, y dejar los tamaños de los 2 discos ajustados. Tambien se podria asignar entera como area de intercambio y pasar del tema LVM. Para gustos, los colores.
Configurar el RAID1 software
Desde “Particionado de discos”
Seleccionamos Configurar RAID software
¿Desea escribir los cambios en los dispositivos de almacenamiento y configurar RAID?= Si
Lo siguiente es
Crear un dispositivo MD
Tipo de dispositivo multi-disco=RAID1
Numero de dispositivos activos para el array RAID1=2
Numero de dispositivos libres para el array RAID1=0
“Dispositivos activos para el dispositivo multi-disco RAID1”
Seleccionamos las primeras particiones de ambos discos
[*]/dev/hda1
[] /dev/hda2
[*]/dev/hdb1
[] /dev/hdb2
Continuar
Repetimos el proceso y seleccionamos esta vez las segundas particiones
[]/dev/hda1
[*] /dev/hda2
[]/dev/hdb1
[*] /dev/hdb2
Continuar
Ya tenemos configurado el RAID1.
En Particionado de discos se deberian mostrar la Tabla de Discos con 2 dispositivos RAID (o tantos como particionas hayas hecho a tus discos).
Ahora tocaria asignarles los puntos de montaje a cada uno de ellos.
En la Tabla de discos
Seleccionamos #1 RAID1 dispositivo #0
Usar como=Reiserfs sistema de ficheros transaccional (podrias perfectamente ponerle cualquier otro tipo como ext2 o ext3)
Punto de montaje=/boot
Se ha terminado de definir la particion
Realizamos el mismo proceso en #1 RAID dispositivo #1 pero esta vez poniendo como punto de montaje la raiz del sistema (/).
El siguiente paso seria configurar LVM
Seleccionamos ESPACIO LIBRE en hda
Crear grupo de volumenes=vol00
Seleccionamos /dev/md1 y continuar
Crear volumenes logicos
Seleccionamos el grupo de volumenes vol00
Nombre del volumen logico=swap
Tamaño del volumen logico=512MB (o tu RAM x2)
Repetimos el proceso de crear volumenes logicos hasta que tengamos distribuido a nuestro gusto el espacio libre.
Escribimos los cambios en los discos y continuamos con la instalacion de Debian. Sobre este punto hay suficiente material en la red como para no detenerme en ello.
TO-DO:
Agregar algunas capturas de pantalla para ilustrar el proceso

No hay comentarios:
Publicar un comentario