informatica:linux:discos:monitorizar
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:discos:monitorizar [2014/07/16 08:22] – 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 | ||
| Line 42: | Line 46: | ||
| # smartctl -l selftest /dev/sda | # smartctl -l selftest /dev/sda | ||
| - | </code> | + | < |
| smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-26-pve] (local build) | 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:// | Copyright (C) 2002-11 by Bruce Allen, http:// | ||
| - | === START OF READ SMART DATA SECTION === | + | ===== START OF READ SMART DATA SECTION |
| SMART Self-test log structure revision number 1 | SMART Self-test log structure revision number 1 | ||
| Num Test_Description | Num Test_Description | ||
| # 1 Short offline | # 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.1405498960.txt.gz · Last modified: (external edit)
