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
Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Restant à faire (heures):
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
Révisions associées
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
Historique
#1 Mis à jour par Laurent Flori il y a environ 7 ans
- Statut changé de Nouveau à En cours
#2 Mis à jour par Laurent Flori il y a environ 7 ans
- Restant à faire (heures) changé de 2.0 à 0.25
#3 Mis à jour par Scrum Master il y a environ 7 ans
- Statut changé de En cours à Résolu
#4 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
É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 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
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 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
- % réalisé changé de 0 à 100
- Restant à faire (heures) changé de 0.25 à 0.0
#7 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
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 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
- Statut changé de Résolu à En cours
- Restant à faire (heures) changé de 0.0 à 2.0
#9 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
- Restant à faire (heures) changé de 2.0 à 0.0
#10 Mis à jour par Gérald Schwartzmann il y a environ 7 ans
- Statut changé de En cours à Fermé