informatica:linux:discos:monitorizar
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| informatica:linux:discos:monitorizar [2014/07/07 15:52] – created jose | informatica:linux:discos:monitorizar [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Monitorizar discos ====== | ====== Monitorizar discos ====== | ||
| + | ===== Configurar ===== | ||
| + | |||
| + | Instalamos smartmontools | ||
| + | |||
| Mirar errores: | Mirar errores: | ||
| smartctl -l error /dev/sda | smartctl -l error /dev/sda | ||
| Hacer test rapido/ | Hacer test rapido/ | ||
| - | |||
| smartctl -t short /dev/sda | smartctl -t short /dev/sda | ||
| - | |||
| smartctl -t long /dev/sda | smartctl -t long /dev/sda | ||
| + | Test Corto: | ||
| + | # smartctl -t short /dev/sda | ||
| + | | ||
| + | < | ||
| + | smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-26-pve] (local build) | ||
| + | Copyright (C) 2002-11 by Bruce Allen, http:// | ||
| + | |||
| + | === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === | ||
| + | Sending command: " | ||
| + | Drive command " | ||
| + | Testing has begun. | ||
| + | Please wait 1 minutes for test to complete. | ||
| + | Test will complete after Mon Jul 7 17:44:35 2014 | ||
| + | |||
| + | Use smartctl -X to abort test. | ||
| + | </ | ||
| + | |||
| + | Comprobamos que no ha dado errores: | ||
| + | |||
| + | # smartctl -l error /dev/sda | ||
| + | < | ||
| + | smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-26-pve] (local build) | ||
| + | Copyright (C) 2002-11 by Bruce Allen, http:// | ||
| + | |||
| + | === START OF READ SMART DATA SECTION === | ||
| + | SMART Error Log Version: 1 | ||
| + | No Errors Logged | ||
| + | </ | ||
| + | |||
| + | El Test Largo indica que tardará unos 130 minutos | ||
| + | # smartctl -t long /dev/sda | ||
| + | |||
| + | Para ver si ha acabado. Vemos que solo ha acabado el corto: | ||
| + | # smartctl -l selftest /dev/sda | ||
| + | |||
| + | < | ||
| + | smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-26-pve] (local build) | ||
| + | Copyright (C) 2002-11 by Bruce Allen, http:// | ||
| + | |||
| + | ===== START OF READ SMART DATA SECTION ===== | ||
| + | SMART Self-test log structure revision number 1 | ||
| + | Num Test_Description | ||
| + | # 1 Short offline | ||
| + | </ | ||
| + | |||
| + | ===== Añadir Monitorización con correo ===== | ||
| + | |||
| + | Fuente: http:// | ||
| + | |||
| + | Cambiamos el fichero / | ||
| + | |||
| + | /dev/sda -d sat -s L/ | ||
| + | |||
| + | Añadimos también un test corto cada dia a las 2 de la mañana y el largo lunes a las 3: | ||
| + | | ||
| + | /dev/sda -d sat -s (S/ | ||
| + | | ||
| + | |||
| + | Para que se ejecute al arrancar el servidor, en el fichero / | ||
| + | start_smartd=yes | ||
| + | |||
| + | Arrancamos el servicio | ||
| + | < | ||
| + | # / | ||
| + | / | ||
| + | |||
| + | # / | ||
| + | Starting S.M.A.R.T. daemon: smartd. | ||
| + | </ | ||
informatica/linux/discos/monitorizar.1404748359.txt.gz · Last modified: (external edit)
