informatica:microservers:raid
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:microservers:raid [2020/12/12 22:34] – jose | informatica:microservers:raid [2020/12/16 00:05] (current) – jose | ||
---|---|---|---|
Line 36: | Line 36: | ||
< | < | ||
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D -> ../../sdf | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D -> ../../sdg |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part1 -> ../../sdf1 | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part1 -> ../../sdg1 |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part2 -> ../../sdf2 | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part2 -> ../../sdg2 |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part5 -> ../../sdf5 | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 ata-Samsung_SSD_850_EVO_120GB_S21UNSBG127800D-part5 -> ../../sdg5 |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT37KFE -> ../../sdb | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 ata-ST8000DM004-2CX188_WCT37KFE -> ../../sdb |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT37KFE-part1 -> ../ | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 ata-ST8000DM004-2CX188_WCT38QL5 -> ../../sdf |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT37KFE-part9 -> ../../sdb9 | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 ata-ST8000DM004-2CX188_WCT38Y6B -> ../../sdc |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38QL5 -> ../../sde | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 ata-ST8000DM004-2CX188_ZCT1KCM9 -> ../../sda |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38QL5-part1 -> ../ | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 usb-HP_iLO_Internal_SD-CARD_000002660A01-0: |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38QL5-part9 -> ../../sde9 | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 usb-HP_iLO_Internal_SD-CARD_000002660A01-0: |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38Y6B -> ../../sdc | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 usb-Verbatim_STORE_N_GO_07930DA70298-0:0 -> ../../sdd |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38Y6B-part1 -> ../ | + | lrwxrwxrwx 1 root root |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_WCT38Y6B-part9 -> ../../sdc9 | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 wwn-0x5000c500cf855885 -> ../../sdc |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 ata-ST8000DM004-2CX188_ZCT1KCM9 -> ../../sda | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 wwn-0x5000c500cf875876 -> ../../sdf |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_ZCT1KCM9-part1 -> ../ | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 wwn-0x5000c500cf8fda13 -> ../../sdb |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 ata-ST8000DM004-2CX188_ZCT1KCM9-part9 -> ../../sda9 | + | lrwxrwxrwx 1 root root 9 Dec 12 23:46 wwn-0x5002538da01151be -> ../../sdg |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 usb-HP_iLO_Internal_SD-CARD_000002660A01-0: | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 wwn-0x5002538da01151be-part1 -> ../../sdg1 |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 usb-HP_iLO_Internal_SD-CARD_000002660A01-0: | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 wwn-0x5002538da01151be-part2 -> ../../sdg2 |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 wwn-0x5000c500c520c2f7 | + | lrwxrwxrwx 1 root root 10 Dec 12 23:46 wwn-0x5002538da01151be-part5 -> ../../sdg5 |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500c520c2f7-part1 | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500c520c2f7-part9 | + | |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 wwn-0x5000c500cf855885 -> ../../sdc | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf855885-part1 -> ../ | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf855885-part9 -> ../../sdc9 | + | |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 wwn-0x5000c500cf875876 -> ../../sde | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf875876-part1 -> ../ | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf875876-part9 -> ../../sde9 | + | |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 wwn-0x5000c500cf8fda13 -> ../../sdb | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf8fda13-part1 -> ../ | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5000c500cf8fda13-part9 -> ../../sdb9 | + | |
- | lrwxrwxrwx 1 root root 9 Dec 12 20:18 wwn-0x5002538da01151be -> ../../sdf | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5002538da01151be-part1 -> ../../sdf1 | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5002538da01151be-part2 -> ../../sdf2 | + | |
- | lrwxrwxrwx 1 root root 10 Dec 12 20:18 wwn-0x5002538da01151be-part5 -> ../../sdf5 | + | |
</ | </ | ||
+ | |||
+ | Son los discos ata-ST8000DM004-XXXXX_XXXXX que corresponden a sdb, sdf, sdc y sda. Cogemos los wwx-XXXXXX que son: | ||
+ | wwn-0x5000c500c520c2f7 | ||
+ | wwn-0x5000c500cf855885 | ||
+ | wwn-0x5000c500cf875876 | ||
+ | wwn-0x5000c500cf8fda13 | ||
Cremos el pool en el directorio dades | Cremos el pool en el directorio dades | ||
Line 97: | Line 88: | ||
Voy a decir que la swap no salte al no ser que use el 90% porque zfs coge mucha memoria. Por defecto vienen al 40% | Voy a decir que la swap no salte al no ser que use el 90% porque zfs coge mucha memoria. Por defecto vienen al 40% | ||
sysctl vm.swappiness | sysctl vm.swappiness | ||
- | |||
vm.swappiness = 60 | vm.swappiness = 60 | ||
Añado al final de: | Añado al final de: | ||
/ | / | ||
- | |||
vm.swappiness=10 | vm.swappiness=10 | ||
Como tengo 16Gb de RAM, le digo que use 12gbs, Por defecto tiene 7.7Gb | Como tengo 16Gb de RAM, le digo que use 12gbs, Por defecto tiene 7.7Gb | ||
arc_summary | grep " | arc_summary | grep " | ||
- | |||
Target size (adaptive): | Target size (adaptive): | ||
Añadimos a la configuración de zfs 12Gb que son 12*1024*1024*1024=12884901888 | Añadimos a la configuración de zfs 12Gb que son 12*1024*1024*1024=12884901888 | ||
/ | / | ||
- | |||
options zfs zfs_arc_max=12884901888 zfs_prefetch_disable=1 | options zfs zfs_arc_max=12884901888 zfs_prefetch_disable=1 | ||
+ | |||
+ | Miramos la caché. Instalamos sdparm | ||
+ | apt-get install sdparm | ||
+ | Miramos un disco: | ||
+ | sdparm /dev/sda | ||
+ | < | ||
+ | /dev/sda: ATA | ||
+ | Read write error recovery mode page: | ||
+ | AWRE 1 [cha: n, def: 1] | ||
+ | ARRE 0 [cha: n, def: 0] | ||
+ | PER | ||
+ | Caching (SBC) mode page: | ||
+ | IC 0 [cha: n, def: 0] | ||
+ | WCE | ||
+ | RCD | ||
+ | Control mode page: | ||
+ | TST | ||
+ | SWP | ||
+ | </ | ||
+ | |||
+ | En caching, dentro de WCE tiene que tener def a 1 como lo tiene: | ||
+ | WCE | ||
Reiniciamos y comprobamos los valores: | Reiniciamos y comprobamos los valores: | ||
Line 206: | Line 215: | ||
</ | </ | ||
- | ====== Pruebas de velovidad | + | ====== NFS ====== |
+ | Instalamos NFS: | ||
+ | apt install nfs-kernel-server | ||
+ | Compartimos recurso: | ||
+ | zfs set sharenfs=no_subtree_check, | ||
+ | |||
+ | Lo comprobamos: | ||
+ | zfs get sharenfs dades | ||
+ | |||
+ | NAME | ||
+ | dades sharenfs | ||
+ | Desde otro servidor (tenemos que tener instalado nfs-common) | ||
+ | apt-get install nfs-common | ||
+ | |||
+ | showmount -e 192.168.1.76 | ||
+ | Export list for 192.168.1.76: | ||
+ | / | ||
+ | |||
+ | ====== Instalación FTP ====== | ||
+ | Lo haremos con docker. Primero instalamos docker: | ||
+ | sudo apt-get install \ | ||
+ | apt-transport-https \ | ||
+ | ca-certificates \ | ||
+ | curl \ | ||
+ | gnupg-agent \ | ||
+ | software-properties-common | ||
+ | |||
+ | curl -fsSL https:// | ||
+ | |||
+ | apt-key fingerprint 0EBFCD88 | ||
+ | |||
+ | add-apt-repository \ | ||
+ | " | ||
+ | | ||
+ | | ||
+ | |||
+ | apt-get update | ||
+ | apt-get install docker-ce docker-ce-cli containerd.io | ||
+ | |||
+ | Docker compose: | ||
+ | sudo curl -L " | ||
+ | sudo chmod +x / | ||
+ | |||
+ | |||
+ | docker run --rm --name ftp_server -d -p 21:21 -p 21000-21010: | ||
+ | |||
+ | ====== Pruebas de velocidad ====== | ||
+ | Las hacemos con la aplicación fio, la instalamos: | ||
+ | apt-get install fio | ||
+ | ===== Local ===== | ||
+ | Escritura 260 IOPS | ||
Creamos un fichero de 16gbs: | Creamos un fichero de 16gbs: | ||
cd /dades | cd /dades | ||
Line 243: | Line 303: | ||
</ | </ | ||
+ | Nos quedamos con la línea 7 que dice que son 260 IOPS | ||
+ | write: IOPS=260, BW=261MiB/s (273MB/ | ||
Provem 4 processos de lectura y escriptura: | Provem 4 processos de lectura y escriptura: | ||
- | Lectura: | + | Lectura |
fio --time_based --name=" | fio --time_based --name=" | ||
< | < | ||
Line 281: | Line 343: | ||
</ | </ | ||
- | Escriptura: | + | Escriptura |
fio --time_based --name=" | fio --time_based --name=" | ||
< | < | ||
Line 316: | Line 378: | ||
</ | </ | ||
+ | |||
+ | ===== Remoto ===== | ||
+ | SCP: | ||
+ | 5.6G 105.0MB/ | ||
+ | 16GB 104.2MB/ | ||
+ | | ||
+ | NFS: | ||
+ | Montamos el recurso: | ||
+ | mount 192.168.1.76:/ | ||
+ | Copiamos los ficheros: | ||
+ | time cp fitxer /mnt/nfs | ||
+ | |||
+ | 5.6G real 0m53.395s | ||
+ | 16GB real 2m33.965s | ||
+ | |||
+ | FTP: | ||
+ | |||
+ | Desde una conexión 100Mbps/ | ||
+ | 1.6Gb (1718558720 bytes) sent in 132.96 secs (12.3269 MB/s) | ||
+ | 5.5Gb (5864260625 bytes) sent in 453.54 secs (12.3311 MB/s) | ||
+ | |||
+ | Desde una conexión 552Mbps/ | ||
+ | 1Gb (1073741824 bytes) sent in 23.7 secs (45279.08 Kbytes/sec) | ||
+ | 5Gb (5368709120 bytes) sent in 110 secs (48596.40 Kbytes/sec) | ||
+ | |||
+ | |||
+ | |||
informatica/microservers/raid.1607812490.txt.gz · Last modified: 2020/12/12 22:34 by jose