Difference: InstallingAndConfiguringNova (23 vs. 24)

Revision 242012-10-18 - MatteoManzali

Line: 1 to 1
 
META TOPICPARENT name="GestioneOpenstack"

Installazione e configurazione del servizio Compute (Nova)

Line: 241 to 241
 
service iscsid force-start
Changed:
<
<
  • Per settare l'avvio automatico:
    • Creare uno script /etc/rc.d/init.d/force-iscsid che possa far partire il servizio iscsid in maniera forzata:
      #!/bin/bash
      
      # Source function library.
      . /etc/rc.d/init.d/functions
      
      case "$1" in
      start)
      service iscsid force-start
      ;;
      stop)
      service iscsid stop
      ;;
      restart)
      service iscsid stop
      service iscsid force-start
      ;;
      status)
      service iscsid status
      ;;
      *)
      echo "Usage: force-iscsid {start|stop|restart|status}"
      exit 1
      esac
      exit 0
      
    • Cambiare i diritti al file:
      chmod 755 /etc/rc.d/init.d/force-iscsid
      
    • Settare il default SELinux file context per lo script appena creato:
      # restorecon -R -v /etc/rc.d/init.d/force-iscsid
      
>
>
  • Nota bene: non è possibile usare il comando chkconfig per far partire il servizio iscsid in automatico all'avvio del server, quindi è necessario farlo partire manualmente ad ogni riavvio, utilizzando il comando service iscsid force-start .
 
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback