====== 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:
# 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.
# 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.
# 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.
# 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.
# mmauth genkey commit
mmauth: The current authentication files are already committed.
# 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.
# scp /var/mmfs/ssl/id_rsa.pub c15-serv1:/root/c16_id_rsa.pub
id_rsa.pub 100% 852 0.8KB/s 00:00
# scp c15-serv1:/var/mmfs/ssl/id_rsa.pub /root/c15_id_rsa.pub
id_rsa.pub 100% 870 0.9KB/s 00:00
# 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.
autorizza cluster15 a montare il file system c16fs
# mmauth grant c15-serv.openlab.infn.it -f /dev/c16fs
mmauth: Granting cluster c15-serv.openlab.infn.it access to file system c16fs:
access type rw; root credentials will not be remapped.
mmauth: Command successfully completed
mmauth: Propagating the cluster configuration data to all affected nodes.
# mmauth show
Cluster name: c15-serv.openlab.infn.it
Cipher list: AUTHONLY
SHA digest: 7ef9a05b8f00dee2fccaf11af060e536291e4844
File system access: c16fs (rw, root allowed)
Cluster name: c16.openlab.infn.it (this cluster)
Cipher list: AUTHONLY
SHA digest: 69b277862781be346ce7cf231e363b422458c3f8
File system access: (all rw)
# mmremotecluster add c16.openlab.infn.it -n c16-serv1,c16-serv2 -k c16_id_rsa.pub
mmremotecluster: Command successfully completed
mmremotecluster: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
# mmremotecluster show
Cluster name: c16.openlab.infn.it
Contact nodes: c16-serv1,c16-serv2
SHA digest: 69b277862781be346ce7cf231e363b422458c3f8
File systems: remote_c16fs (c16fs)
# mmremotefs add /dev/remote_c16fs -f /dev/c16fs -T /gpfs/remote_c16fs -C c16.openlab.infn.it
mmremotefs: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
# mmremotefs show
Local Name Remote Name Cluster name Mount Point Mount Options Automount Drive Priority
remote_c16fs c16fs c16.openlab.infn.it /gpfs/remote_c16fs rw no - 0
# mmmount /dev/remote_c16fs
Thu Nov 27 10:32:26 CET 2014: mmmount: Mounting file systems ...
# cd /gpfs/remote_c16fs/
# ls
cloni fileset.quota fset1 fset2 group.quota testdir user.quota
# mmlsmount /dev/c16fs -L
File system c16fs is mounted on 4 nodes:
192.168.200.248 c16-serv3 c16.openlab.infn.it
192.168.200.247 c16-serv2 c16.openlab.infn.it
192.168.200.246 c16-serv1 c16.openlab.infn.it
192.168.200.243 c15-serv1 c15-serv.openlab.infn.it