Skip to main content

Fileserver OS

Si configurano due OS (dfs1 e dfs2), in questo caso Debian 12, per poi essere messi in cluster.

Rendere statico l'IP.

Nel fine /etc/network/interface:

allow-hotplug <interface_name>
iface <interface_name> inet static
        address <IP> / XX
        gateway <IPgateway>

allow-hotplug <interface_name>
iface <interface_name> inet static
        address <IP> / XX

In questo esempio, in dfs1:

iface enp6s18 inet static
        address 192.168.154.31/24
        gateway 192.168.154.1

allow-hotplug enp6s19
iface enp6s19 inet static
        address 172.16.16.11/24

e, in dfs2:

iface enp6s18 inet static
        address 192.168.154.32/24
        gateway 192.168.154.1

allow-hotplug enp6s19
iface enp6s19 inet static
        address 172.16.16.12/24

Montare il ceph nel sistema (Source1, Source2):

mkdir /mnt/mycephfs
mount -t ceph 172.16.16.1:6789,172.16.16.2:6789,172.16.16.3:6789:/ /mnt/mycephfs -o name=admin,secret=AQDnz0VmRy8UFRAAJXEkgpfzOE4iu7NmIR9bzw==,mds_namespace=cephfs
echo "172.16.16.1:6789,172.16.16.2:6789,172.16.16.3:6789:/ /mnt/mycephfs ceph name=admin,secret=AQDnz0VmRy8UFRAAJXEkgpfzOE4iu7NmIR9bzw== 0 2,mds_namespace=cephfs" >> /etc/fstab

Dove:

  • /mnt/mycephfs è la path dove viene montato ceph.
  • Gli IP sono quelli dei tre Meta Data Servers.
  • La porta 6789 è quella di default.
  • admin è l'utente di default messo da proxmox.
  • AQDnz0VmRy8UFRAAJXEkgpfzOE4iu7NmIR9bzw== è la secret recuperata precedentemente.
  • mds_namespace=cephfs qui si specifica quale CephFS montare