cn:ccr:storage:s_g_c2014_soluzione4
Differences
This shows you the differences between two versions of the page.
| cn:ccr:storage:s_g_c2014_soluzione4 [2014/11/27 10:46] – created brunengo@infn.it | cn:ccr:storage:s_g_c2014_soluzione4 [2014/11/27 10:47] (current) – brunengo@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Esercitazione 4 ====== | ||
| + | |||
| + | |||
| + | ==== Remote cluster ==== | ||
| + | |||
| + | Configurazione dell' | ||
| + | montatp dal cluster c15-serv.openlab.infn.it | ||
| + | |||
| + | |||
| + | **__Crea le chiavi SSL e configura il cipherlist per il cluster__** | ||
| + | |||
| + | Su C16: | ||
| + | |||
| + | < | ||
| + | # mmauth genkey new< | ||
| + | Generating RSA private key, 512 bit long modulus< | ||
| + | .......++++++++++++< | ||
| + | .....++++++++++++< | ||
| + | e is 65537 (0x10001)< | ||
| + | writing RSA key< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | # mmauth genkey new< | ||
| + | Generating RSA private key, 512 bit long modulus< | ||
| + | .......++++++++++++< | ||
| + | .....++++++++++++< | ||
| + | e is 65537 (0x10001)< | ||
| + | writing RSA key< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | [root@c16-serv1 ~]# mmauth genkey commit< | ||
| + | mmauth: The current authentication files are already committed.< | ||
| + | <br> | ||
| + | # mmauth update . -l AUTHONLY< | ||
| + | Verifying GPFS is stopped on all nodes ...< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | Su C15: | ||
| + | |||
| + | < | ||
| + | # mmauth genkey new< | ||
| + | Generating RSA private key, 512 bit long modulus< | ||
| + | ............++++++++++++< | ||
| + | ...++++++++++++< | ||
| + | e is 65537 (0x10001)< | ||
| + | writing RSA key< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | # mmauth genkey commit< | ||
| + | mmauth: The current authentication files are already committed.< | ||
| + | <br> | ||
| + | <br> | ||
| + | # mmauth update . -l AUTHONLY< | ||
| + | Verifying GPFS is stopped on all nodes ...< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Scambio delle chiavi__** | ||
| + | |||
| + | Su C16: | ||
| + | |||
| + | < | ||
| + | # scp / | ||
| + | id_rsa.pub | ||
| + | <br> | ||
| + | <br> | ||
| + | # scp c15-serv1:/ | ||
| + | id_rsa.pub | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Su C16: autorizza C15 a montare il file system da C16__** | ||
| + | |||
| + | Su C16: | ||
| + | |||
| + | < | ||
| + | # mmauth add c15-serv.openlab.infn.it -k c15_id_rsa.pub< | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | autorizza cluster15 a montare il file system c16fs< | ||
| + | <br> | ||
| + | # mmauth grant c15-serv.openlab.infn.it -f / | ||
| + | <br> | ||
| + | mmauth: Granting cluster c15-serv.openlab.infn.it access to file system c16fs:< | ||
| + | access type rw; root credentials will not be remapped.< | ||
| + | <br> | ||
| + | mmauth: Command successfully completed< | ||
| + | mmauth: Propagating the cluster configuration data to all affected nodes.< | ||
| + | <br> | ||
| + | <br> | ||
| + | # mmauth show< | ||
| + | Cluster name: c15-serv.openlab.infn.it< | ||
| + | Cipher list: | ||
| + | SHA digest: | ||
| + | File system access: | ||
| + | <br> | ||
| + | Cluster name: c16.openlab.infn.it (this cluster)< | ||
| + | Cipher list: | ||
| + | SHA digest: | ||
| + | File system access: | ||
| + | <br> | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Su C15: aggiungi C16 come cluster da cui montare remote file systems__** | ||
| + | |||
| + | Su C15: | ||
| + | |||
| + | < | ||
| + | # mmremotecluster add c16.openlab.infn.it -n c16-serv1, | ||
| + | mmremotecluster: | ||
| + | mmremotecluster: | ||
| + | affected nodes. | ||
| + | <br> | ||
| + | # mmremotecluster show< | ||
| + | Cluster name: c16.openlab.infn.it< | ||
| + | Contact nodes: | ||
| + | SHA digest: | ||
| + | File systems: | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Su C15: aggiungi il file system /dev/c16fs come remote file system da montare da C16__** | ||
| + | |||
| + | < | ||
| + | # mmremotefs add / | ||
| + | mmremotefs: Propagating the cluster configuration data to all< | ||
| + | affected nodes. | ||
| + | <br> | ||
| + | # mmremotefs show< | ||
| + | Local Name Remote Name Cluster name Mount Point Mount Options | ||
| + | remote_c16fs c16fs c16.openlab.infn.it / | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Su C15: monta il file system remoto__** | ||
| + | |||
| + | Su C15: | ||
| + | |||
| + | < | ||
| + | # mmmount / | ||
| + | Thu Nov 27 10:32:26 CET 2014: mmmount: Mounting file systems ...< | ||
| + | # cd / | ||
| + | # ls< | ||
| + | cloni fileset.quota | ||
| + | <br> | ||
| + | </ | ||
| + | |||
| + | **__Su C16: visualizza chi monta il file system__** | ||
| + | |||
| + | < | ||
| + | # mmlsmount /dev/c16fs -L< | ||
| + | <br> | ||
| + | File system c16fs is mounted on 4 nodes:< | ||
| + | 192.168.200.248 c16-serv3 | ||
| + | 192.168.200.247 c16-serv2 | ||
| + | 192.168.200.246 c16-serv1 | ||
| + | 192.168.200.243 c15-serv1 | ||
| + | <br> | ||
| + | </ | ||
