strutture:lnf:dr:calcolo:sistemi:ceph:nfsgw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
strutture:lnf:dr:calcolo:sistemi:ceph:nfsgw [2024/03/08 08:03] – [Creazione export CephFS] rorru@infn.it | strutture:lnf:dr:calcolo:sistemi:ceph:nfsgw [2024/06/21 14:37] (current) – rorru@infn.it | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== NFS Gateway ====== | ||
+ | Il servizio permette di esportare un filesystem CephFS o un bucket RadosGW attraverso protocollo NFS 4. | ||
+ | |||
+ | L' | ||
+ | |||
+ | ===== Deploy ===== | ||
+ | Assumendo di disporre di un cluster CEPH operativo, per il deploy dei relativi daemon è possibile seguire i seguenti passi: | ||
+ | |||
+ | 1. Applicare una label (di seguito verrà utilizzata una label '' | ||
+ | | ||
+ | ceph orch host label add < | ||
+ | ... | ||
+ | ceph orch host label add < | ||
+ | | ||
+ | 2. Verificare la corretta associaziome deelle label con: | ||
+ | | ||
+ | ceph orch host ls | ||
+ | |||
+ | 3. Scatenare il deploy dei servizi utilizzando come regola di placement l' | ||
+ | | ||
+ | ceph nfs cluster create < | ||
+ | |||
+ | **ATTENZIONE!!!: | ||
+ | |||
+ | |||
+ | |||
+ | **Questo perchè di default gli ingress implementano istanze di keepalived aventi come '' | ||
+ | |||
+ | service_type: | ||
+ | service_id: nfsgw | ||
+ | service_name: | ||
+ | placement: | ||
+ | label: nfs | ||
+ | spec: | ||
+ | port: 12049 | ||
+ | --- | ||
+ | service_type: | ||
+ | service_id: nfs.nfsgw | ||
+ | service_name: | ||
+ | placement: | ||
+ | label: nfs | ||
+ | spec: | ||
+ | backend_service: | ||
+ | frontend_port: | ||
+ | monitor_port: | ||
+ | virtual_ip: < | ||
+ | first_virtual_router_id: | ||
+ | |||
+ | |||
+ | 4. Verificare i servizi effettivamente avviati con: | ||
+ | | ||
+ | ceph orch ls | ||
+ | |||
+ | ===== Creazione export CephFS ===== | ||
+ | La creazione di un export può avvenire con il seguente comando: | ||
+ | |||
+ | ceph nfs export create cephfs --cluster-id < | ||
+ | |||
+ | **ATTENZIONE: | ||
+ | | ||
+ | < | ||
+ | |||
+ | # ceph nfs export info nfsgw /dir1 > nfsgw_dir1_export.json | ||
+ | |||
+ | # cat nfsgw_dir1_export.json | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | 4 | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | |||
+ | # vi nfsgw_dir1_export.json # make changes... | ||
+ | |||
+ | # ceph nfs export apply nfsgw -i nfsgw_dir1_export.json | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||