informatica:microservers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:microservers [2019/10/25 07:00] – [Wake on lan (wakeonlan)] jose | informatica:microservers [2020/11/08 15:49] – jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Especificaciones ====== | ||
+ | |||
+ | https:// | ||
+ | |||
====== Xarxa ====== | ====== Xarxa ====== | ||
LACP | LACP | ||
Line 26: | Line 30: | ||
| RAM | 10GB (8+2) | 4Gb (2+2) | 16Gb (8+8) | 10Gb (8+2) | | | RAM | 10GB (8+2) | 4Gb (2+2) | 16Gb (8+8) | 10Gb (8+2) | | ||
| DISCO | 480Gb + 480Gb | 4x8TB | 480Gb + 480Gb | 1,8Tb + 3Gb | | | DISCO | 480Gb + 480Gb | 4x8TB | 480Gb + 480Gb | 1,8Tb + 3Gb | | ||
- | | IP | 192.168.1.31 | 192.168.1.250 | 192.168.1.32 | 192.168.1.33 | | + | | IP | 192.168.1.200 | 192.168.1.250 | 192.168.1.32 | 192.168.1.33 | |
Line 80: | Line 84: | ||
====== NAS ====== | ====== NAS ====== | ||
- | nas4free | + | Para que arranque del SSD puesto en el CDROM hay que cambiar en la BIOS: |
+ | |||
+ | Pulsar F9 para etrar en BIOS | ||
+ | |||
+ | Cambiar a modo Legacy y el controller el 2, que es el CDROM en vez de los 4 discos | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Configuración del RAID ===== | ||
+ | blkid | ||
+ | |||
+ | < | ||
+ | /dev/md0: UUID=" | ||
+ | /dev/sda1: UUID=" | ||
+ | /dev/sdb1: UUID=" | ||
+ | /dev/sdc1: UUID=" | ||
+ | /dev/sde1: UUID=" | ||
+ | /dev/sde5: UUID=" | ||
+ | /dev/sdd1: UUID=" | ||
+ | /dev/sdf1: PARTUUID=" | ||
+ | /dev/sdf2: LABEL=" | ||
+ | </ | ||
+ | |||
+ | Ponemos en / | ||
+ | UUID=955edf36-f785-441e-95e6-ff7cd77fc510 / | ||
+ | |||
+ | |||
+ | Desde 192.168.1.32 | ||
+ | |||
+ | showmount -e 192.168.1.250 | ||
+ | |||
+ | Export list for 192.168.1.250: | ||
+ | / | ||
+ | |||
+ | Montamos el recurso: | ||
+ | mkdir /nfs | ||
+ | mount 192.168.1.250:/ | ||
+ | root@nas:/ | ||
+ | |||
+ | root@nas:/ | ||
+ | / | ||
+ | |||
+ | |||
+ | |||
+ | Reiniciamos el servicio | ||
+ | root@nas:/ | ||
+ | exporting 192.168.1.0/ | ||
+ | |||
+ | |||
+ | En el cliente instalamos nfs: | ||
+ | apt-get install nfs-common | ||
+ | |||
+ | Mostramos si lo ve | ||
+ | root@avtp239: | ||
+ | Export list for 192.168.1.250: | ||
+ | / | ||
+ | |||
+ | Lo montamos | ||
+ | root@avtp239:/ | ||
+ | |||
+ | |||
+ | ===== Pruebas de recuperación ===== | ||
+ | El disco de arranque es un disco sólido de 120Gb | ||
+ | |||
+ | El disco de recuperación es una microsd de 32Gb colocada internamente. | ||
+ | |||
+ | Formateamos la microsd con el LABEL: REAR-0000. Buscamos que disco es: | ||
+ | fdisk -l | ||
+ | < | ||
+ | Disk /dev/sda: 29.3 GiB, 31444697088 bytes, 61415424 sectors | ||
+ | Disk model: Internal SD-CARD | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disklabel type: dos | ||
+ | Disk identifier: 0xffbcc21c | ||
+ | |||
+ | Device | ||
+ | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | Lo formateamos: | ||
+ | rear format /dev/sda | ||
+ | |||
+ | USB device /dev/sda is not formatted with ext2/3/4 or btrfs filesystem | ||
+ | Type exactly ' | ||
+ | (default ' | ||
+ | |||
+ | Yes | ||
+ | |||
+ | Vemos que lo ha creado correctamente: | ||
+ | blkid | ||
+ | /dev/sda1: LABEL=" | ||
+ | |||
+ | Vemos que está vacia | ||
+ | mount /dev/sda1 / | ||
+ | ls / | ||
+ | |||
+ | lost+found | ||
+ | |||
+ | Instalamos rear | ||
+ | apt-get install rear | ||
+ | Configuramos y excluimos la particion de / | ||
+ | / | ||
+ | |||
+ | < | ||
+ | ### write the rescue initramfs to USB and update the USB bootloader | ||
+ | OUTPUT=USB | ||
+ | ### create a backup using the internal NETFS method, using ' | ||
+ | BACKUP=NETFS | ||
+ | ### write both rescue image and backup to the device labeled REAR-000 | ||
+ | BACKUP_URL=usb:/// | ||
+ | </ | ||
+ | |||
+ | |||
+ | Creamos backup que tarda unos 4 minutos. Si hemos montado la tarjeta, hay que desmontarla, | ||
+ | rear -v mkbackup | ||
+ | < | ||
+ | Relax-and-Recover 2.4 / Git | ||
+ | Using log file: / | ||
+ | Using backup archive '/ | ||
+ | Creating disk layout | ||
+ | Using guessed bootloader ' | ||
+ | Creating root filesystem layout | ||
+ | Cannot include keyboard mappings (no keymaps default directory '' | ||
+ | Copying logfile / | ||
+ | Copying files and directories | ||
+ | Copying binaries and libraries | ||
+ | Copying kernel modules | ||
+ | Copying all files in / | ||
+ | Creating recovery/ | ||
+ | Created initrd.cgz with gzip default compression (67642238 bytes) in 17 seconds | ||
+ | Saved / | ||
+ | Copying resulting files to usb location | ||
+ | Saving / | ||
+ | Creating tar archive '/ | ||
+ | Archived 529 MiB [avg 5263 KiB/sec] OK | ||
+ | Archived 529 MiB in 104 seconds [avg 5212 KiB/sec] | ||
+ | Exiting rear mkbackup (PID 1753) and its descendant processes | ||
+ | Running exit tasks | ||
+ | </ | ||
- | Virtual Device / Single Party RAID-Z | + | Vemos que ha escrito en la tarjeta: |
- | https://support.hpe.com/hpsc/doc/public/display? | + | lost+found |
+ | boot | ||
+ | boot/syslinux | ||
+ | boot/syslinux/ | ||
+ | boot/ | ||
+ | boot/syslinux/cat.c32 | ||
+ | boot/syslinux/libgpl.c32 | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | boot/ | ||
+ | rear | ||
+ | rear/ | ||
+ | rear/nas | ||
+ | rear/ | ||
+ | rear/ | ||
+ | rear/ | ||
+ | rear/ | ||
+ | rear/ | ||
+ | rear/ | ||
+ | rear/ | ||
+ | nas | ||
+ | nas/ | ||
+ | nas/ | ||
+ | nas/ | ||
+ | nas/README | ||
Line 96: | Line 295: | ||
server 3 | server 3 | ||
- | Para levantar un servidor, instalar el paquete wakeonlan y ejecutar: | + | Para levantar un servidor, instalar el paquete wakeonlan y ejecutar |
wakeonlan <MAC> | wakeonlan <MAC> | ||
Por ekemplo: | Por ekemplo: |
informatica/microservers.txt · Last modified: 2020/12/16 00:15 by jose