From b86093512c3e42c6d1e5d71631f69c347df12926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20L=C3=B6nnemark?= <tobbez@ryara.net> Date: Fri, 10 May 2024 22:18:12 +0200 Subject: [PATCH] Mount /home from diskus using NFS --- files/hosts | 3 ++- manifests/storage.pp | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/files/hosts b/files/hosts index 0aaff95..cca5bee 100644 --- a/files/hosts +++ b/files/hosts @@ -1,5 +1,6 @@ # Connect to home via infiniband -10.44.1.220 home +# home has been migrated to diskus (and is now mounted via nfs) +#10.44.1.220 home 10.44.4.1 analysator-system.lysator.liu.se analysator-system 10.41.0.1 analysator-system-eth diff --git a/manifests/storage.pp b/manifests/storage.pp index 028eac9..94c8260 100644 --- a/manifests/storage.pp +++ b/manifests/storage.pp @@ -17,8 +17,12 @@ class analysator::storage { path => '/etc/fstab', line => '10.44.1.99:6789:/users /storage ceph name=analysator,mds_namespace=storage,secretfile=/etc/ceph/client.analysator.secret,noatime,_netdev 0 2', } - file_line { 'ceph_home_mount': + #file_line { 'ceph_home_mount': + # path => '/etc/fstab', + # line => '10.44.1.99:6789:/users /home ceph name=analysator,mds_namespace=home,secretfile=/etc/ceph/client.analysator.secret,noatime,_netdev 0 2', + #} + file_line { 'nfs_home_mount': path => '/etc/fstab', - line => '10.44.1.99:6789:/users /home ceph name=analysator,mds_namespace=home,secretfile=/etc/ceph/client.analysator.secret,noatime,_netdev 0 2', + line => '130.236.254.9:/tank/users /home nfs vers=4,minorversion=2,nosuid,rw,sec=sys 0 0', } } -- GitLab