Tâche #18947
Scénario #17484: Pouvoir créer des images embarquées différentes pendant et après instance
Deplacer le swap nbd de /tmp vers /opt/nbd-swap
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Remaining (hours):
0.0
Description
Le swap nbd est actif par défaut et les fichiers de swap sont stockés dans /tmp sur le serveur. Avec bcp de clients simultanés, /tmp peut se remplir vite
Associated revisions
Deplacement du swap nbd de /tmp vers /opt/nbd-swap
ref: #18947 @1h30
Prise en compte du fichier swap.conf de nbd-server
ref: #18947
Création du répertoire /opt/nbd-swap avec les bonnes permissions
ref: #18947
History
#1 Updated by Laurent Flori over 6 years ago
- Status changed from Nouveau to En cours
#2 Updated by Laurent Flori over 6 years ago
- Remaining (hours) changed from 2.0 to 0.25
#3 Updated by Scrum Master over 6 years ago
- Status changed from En cours to Résolu
#4 Updated by Gérald Schwartzmann over 6 years ago
Édition de /etc/nbd-server/conf.d/swap.conf [swap] exportname = /tmp/nbd-swap/%s prerun = nbdswapd %s postrun = rm -f %s authfile = /etc/ltsp/nbd-server.allow root@eclair:~# apt-cache policy eole-ltsp-server eole-ltsp-server: Installé : 2.6.1-22
#5 Updated by Gérald Schwartzmann over 6 years ago
root@eclair:~# Query-Auto -D Mise à jour le vendredi 03 février 2017 10:47:52
eole-ltsp-server (2.6.1-26) (root) eole-ltsp-server-pkg (2.6.1-26) (root)
#6 Updated by Gérald Schwartzmann over 6 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 0.25 to 0.0
#7 Updated by Gérald Schwartzmann over 6 years ago
Le fichier swap n'est dans /opt/nbd-swap/ qu'après avoir redémarré le service nbd-server
root@eclair:~# ll /opt/nbd-swap/ total 12 drwxr-xr-x 2 nbd nbd 4096 févr. 3 11:01 ./ drwxr-xr-x 5 root root 4096 févr. 3 10:49 ../ root@eclair:~#
root@eclair:~# service nbd-server restart
root@eclair:~# ll /opt/nbd-swap/ total 12 drwxr-xr-x 2 nbd nbd 4096 févr. 3 11:01 ./ drwxr-xr-x 5 root root 4096 févr. 3 10:49 ../ -rw------- 1 nbd nbd 536870912 févr. 3 11:01 10.1.2.55 root@eclair:~#C'est fonctionnel en l'état nbd-server mais gênant pour un utilisateur qui passerait de la version 2.6.0 à la version 2.6.1.
Il faut soit :
- redémarrer systématiquement le service après reconfigure
- documenter le contournement
#8 Updated by Gérald Schwartzmann over 6 years ago
- Status changed from Résolu to En cours
- Remaining (hours) changed from 0.0 to 2.0
#9 Updated by Gérald Schwartzmann over 6 years ago
- Remaining (hours) changed from 2.0 to 0.0
#10 Updated by Gérald Schwartzmann over 6 years ago
- Status changed from En cours to Fermé