Skip to main content

Fileserver OS

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:

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

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):

sudo mkdir /mnt/mycephfs
sudo 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==
sudo echo "192.168.154.51:6789,192.168.154.52:6789,192.168.154.53:6789:/ /mnt/mycephfs ceph name=admin,secret=AQDnz0VmRy8UFRAAJXEkgpfzOE4iu7NmIR9bzw== 0 2" >> /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.