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 [2020/08/14 14:07] – jose | informatica:microservers [2020/11/08 13:04] – jose | ||
---|---|---|---|
Line 84: | Line 84: | ||
====== NAS ====== | ====== NAS ====== | ||
- | nas4free | + | Para que arranque del SSD puesto en el CDROM hay que cambiar en la BIOS: |
- | Virtual Device / Single Party RAID-Z | + | 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 / | ||
- | https:// | ||
Desde 192.168.1.32 | Desde 192.168.1.32 | ||
Line 100: | Line 133: | ||
mkdir /nfs | mkdir /nfs | ||
mount 192.168.1.250:/ | 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 | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | Instalamos rear | ||
+ | apt-get install rear | ||
+ | Configuramos: | ||
+ | / | ||
+ | < | ||
+ | ### 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 | ||
+ | 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 | ||
+ | </ | ||
====== Wake on lan (wakeonlan) ====== | ====== Wake on lan (wakeonlan) ====== | ||
F9 | F9 |
informatica/microservers.txt · Last modified: 2020/12/16 00:15 by jose