strutture:lnf:dr:calcolo:sistemi:ceph:cephfs
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:cephfs [2025/02/25 10:08] – rorru@infn.it | strutture:lnf:dr:calcolo:sistemi:ceph:cephfs [2025/03/06 15:19] (current) – [Aggiunta filesystem] rorru@infn.it | ||
---|---|---|---|
Line 5: | Line 5: | ||
- Creare il filesystem:< | - Creare il filesystem:< | ||
ceph fs volume create < | ceph fs volume create < | ||
+ | </ | ||
+ | - (Opzionale) Assegnare una CRUSH rule diversa dal default per i pool relativi al filesystem appena creato:< | ||
+ | ceph osd pool set cephfs.< | ||
+ | ceph osd pool set cephfs.< | ||
</ | </ | ||
- Creare un nuovo client e assegnare i permessi corretti su un path del filesystem corrispondente:< | - Creare un nuovo client e assegnare i permessi corretti su un path del filesystem corrispondente:< | ||
ceph fs authorize < | ceph fs authorize < | ||
- | </ | + | </ |
- | All’esecuzione del comando verrà restituito il keyring corrispondente al client creato (che andrà salvato in '' | + | |
ceph fs authorize bench_test client.bench_test /fio rw | ceph fs authorize bench_test client.bench_test /fio rw | ||
</ | </ | ||
- Ottenere una versione minimale della configurazione del cluster:< | - Ottenere una versione minimale della configurazione del cluster:< | ||
ceph config generate-minimal-conf | ceph config generate-minimal-conf | ||
+ | </ | ||
+ | - (Opzionale) Impostare quota sul pool dati:< | ||
+ | ceph osd pool set-quota cephfs.< | ||
</ | </ | ||
- | L’output del comando andrà salvato in '' | ||
===== Mount filesystem (kernel module) ===== | ===== Mount filesystem (kernel module) ===== | ||
Line 21: | Line 26: | ||
Sulla macchina client: | Sulla macchina client: | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
stat / | stat / | ||
</ | </ | ||
- | < | + | - Creare la directory di configurazione di Ceph:< |
- | < | + | |
- | < | + | |
mkdir -p -m 755 /etc/ceph | mkdir -p -m 755 /etc/ceph | ||
</ | </ | ||
- | < | + | - Creare il file '' |
- | < | + | |
- | < | + | |
- | < | + | |
chmod 600 / | chmod 600 / | ||
</ | </ | ||
- | < | + | - Creare il mountpoint, ad esempio:< |
- | < | + | |
- | < | + | |
mkdir / | mkdir / | ||
</ | </ | ||
- | < | + | - Effettuare il mount da shell:< |
- | < | + | |
- | < | + | |
mount -t ceph < | mount -t ceph < | ||
+ | </ | ||
+ | < | ||
</ | </ | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | < | ||
strutture/lnf/dr/calcolo/sistemi/ceph/cephfs.1740478127.txt.gz · Last modified: 2025/02/25 10:08 by rorru@infn.it