User Tools

Site Tools


cn:ccr:storage:s_g_c2014_soluzione4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cn:ccr:storage:s_g_c2014_soluzione4 [2014/11/27 10:46] – created brunengo@infn.itcn: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'export del file system /dev/c16fs sil cluster c16.openlab.infn.it per essere
 +montatp dal cluster c15-serv.openlab.infn.it
 +
 +
 +**__Crea le chiavi SSL e configura il cipherlist per il cluster__**
 +
 +Su C16:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmauth genkey new<br>
 +Generating RSA private key, 512 bit long modulus<br>
 +.......++++++++++++<br>
 +.....++++++++++++<br>
 +e is 65537 (0x10001)<br>
 +writing RSA key<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +# mmauth genkey new<br>
 +Generating RSA private key, 512 bit long modulus<br>
 +.......++++++++++++<br>
 +.....++++++++++++<br>
 +e is 65537 (0x10001)<br>
 +writing RSA key<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +[root@c16-serv1 ~]# mmauth genkey commit<br>
 +mmauth: The current authentication files are already committed.<br>
 +<br>
 +# mmauth update . -l AUTHONLY<br>
 +Verifying GPFS is stopped on all nodes ...<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +</p></html>
 +
 +Su C15:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmauth genkey new<br>
 +Generating RSA private key, 512 bit long modulus<br>
 +............++++++++++++<br>
 +...++++++++++++<br>
 +e is 65537 (0x10001)<br>
 +writing RSA key<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +# mmauth genkey commit<br>
 +mmauth: The current authentication files are already committed.<br>
 +<br>
 +<br>
 +# mmauth update . -l AUTHONLY<br>
 +Verifying GPFS is stopped on all nodes ...<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +</p></html>
 +
 +**__Scambio delle chiavi__**
 +
 +Su C16:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# scp /var/mmfs/ssl/id_rsa.pub c15-serv1:/root/c16_id_rsa.pub<br>
 +id_rsa.pub                                                                                                               100%  852     0.8KB/  00:00<br>
 +<br>
 +<br>
 +# scp c15-serv1:/var/mmfs/ssl/id_rsa.pub /root/c15_id_rsa.pub<br>
 +id_rsa.pub                                                                                                               100%  870     0.9KB/  00:00<br>
 +<br>
 +</p></html>
 +
 +**__Su C16: autorizza C15 a montare il file system da C16__**
 +
 +Su C16:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmauth add c15-serv.openlab.infn.it -k c15_id_rsa.pub<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +autorizza cluster15 a montare il file system c16fs<br>
 +<br>
 +# mmauth grant c15-serv.openlab.infn.it -f /dev/c16fs<br>
 +<br>
 +mmauth: Granting cluster c15-serv.openlab.infn.it access to file system c16fs:<br>
 +access type rw; root credentials will not be remapped.<br>
 +<br>
 +mmauth: Command successfully completed<br>
 +mmauth: Propagating the cluster configuration data to all affected nodes.<br>
 +<br>
 +<br>
 +# mmauth show<br>
 +Cluster name:        c15-serv.openlab.infn.it<br>
 +Cipher list:         AUTHONLY<br>
 +SHA digest:          7ef9a05b8f00dee2fccaf11af060e536291e4844<br>
 +File system access:  c16fs     (rw, root allowed)<br>
 +<br>
 +Cluster name:        c16.openlab.infn.it (this cluster)<br>
 +Cipher list:         AUTHONLY<br>
 +SHA digest:          69b277862781be346ce7cf231e363b422458c3f8<br>
 +File system access:  (all rw)<br>
 +<br>
 +<br>
 +</p></html>
 +
 +**__Su C15: aggiungi C16 come cluster da cui montare remote file systems__**
 +
 +Su C15:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmremotecluster add c16.openlab.infn.it -n c16-serv1,c16-serv2 -k c16_id_rsa.pub<br>
 +mmremotecluster: Command successfully completed<br>
 +mmremotecluster: Propagating the cluster configuration data to all<br>
 +affected nodes.  This is an asynchronous process.<br>
 +<br>
 +# mmremotecluster show<br>
 +Cluster name:    c16.openlab.infn.it<br>
 +Contact nodes:   c16-serv1,c16-serv2<br>
 +SHA digest:      69b277862781be346ce7cf231e363b422458c3f8<br>
 +File systems:    remote_c16fs (c16fs)<br>
 +<br>
 +</p></html>
 +
 +**__Su C15: aggiungi il file system /dev/c16fs come remote file system da montare da C16__**
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmremotefs add /dev/remote_c16fs -f /dev/c16fs -T /gpfs/remote_c16fs -C c16.openlab.infn.it<br>
 +mmremotefs: Propagating the cluster configuration data to all<br>
 +affected nodes.  This is an asynchronous process.<br>
 +<br>
 +# mmremotefs show<br>
 +Local Name  Remote Name  Cluster name       Mount Point        Mount Options    Automount  Drive  Priority<br>
 +remote_c16fs c16fs        c16.openlab.infn.it /gpfs/remote_c16fs rw               no                  0<br>
 +<br>
 +</p></html>
 +
 +**__Su C15: monta il file system remoto__**
 +
 +Su C15:
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmmount /dev/remote_c16fs<br>
 +Thu Nov 27 10:32:26 CET 2014: mmmount: Mounting file systems ...<br>
 +# cd /gpfs/remote_c16fs/<br>
 +# ls<br>
 +cloni  fileset.quota  fset1  fset2  group.quota  testdir  user.quota<br>
 +<br>
 +</p></html>
 +
 +**__Su C16: visualizza chi monta il file system__**
 +
 +<html><p style="border:1px dashed; background-color:#D9D9D9;">
 +# mmlsmount /dev/c16fs -L<br>
 +<br>
 +File system c16fs is mounted on 4 nodes:<br>
 +192.168.200.248 c16-serv3                 c16.openlab.infn.it<br>
 +192.168.200.247 c16-serv2                 c16.openlab.infn.it<br>
 +192.168.200.246 c16-serv1                 c16.openlab.infn.it<br>
 +192.168.200.243 c15-serv1                 c15-serv.openlab.infn.it<br>
 +<br>
 +</p></html>
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki