Project

General

Profile

Tâche #29261

Scénario #29136: Expérimenter Lizardfs sur Hâpy

Monter un Hâpy simple avec Lizardfs

Added by Daniel Dehennin 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/14/2019
Due date:
% Done:

100%

Remaining (hours):
0.0

igor.txt View (3.92 KB) Daniel Dehennin, 11/25/2019 02:43 PM

igor-lizardfs.sh View (4.15 KB) Daniel Dehennin, 11/25/2019 03:37 PM

History

#1 Updated by Daniel Dehennin 10 months ago

  • Status changed from Nouveau to En cours

#2 Updated by Daniel Dehennin 10 months ago

  • File igor.txt View added
  • Assigned To set to Daniel Dehennin
  • Un Hâpy installé sur Igor avec la configuration igor.txt
  • Préparation du serveur avec un script salt-ssh igor-lizardfs.sh
  • Configuration d’OpenNebula afin de supporter lizardfs
    • Créer le fichier patch /usr/share/eole/creole/patch/oned.conf.patch
      --- distrib/oned.conf    2019-11-25 14:59:09.393556419 +0100
      +++ modif/oned.conf    2019-11-25 14:58:11.553205807 +0100
      @@ -649,7 +649,7 @@
      
       TM_MAD = [
           EXECUTABLE = "one_tm",
      -    ARGUMENTS = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,ceph,dev,vcenter,iscsi_libvirt" 
      +    ARGUMENTS = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,ceph,dev,vcenter,iscsi_libvirt,lizardfs" 
       ]
      
       #*******************************************************************************
      @@ -669,7 +669,7 @@
      
       DATASTORE_MAD = [
           EXECUTABLE = "one_datastore",
      -    ARGUMENTS  = "-t 15 -d dummy,fs,lvm,ceph,dev,iscsi_libvirt,vcenter -s shared,ssh,ceph,fs_lvm,qcow2,vcenter" 
      +    ARGUMENTS  = "-t 15 -d dummy,fs,lvm,ceph,dev,iscsi_libvirt,vcenter,lizardfs -s shared,ssh,ceph,fs_lvm,qcow2,vcenter,lizardfs" 
       ]
      
       #*******************************************************************************
      @@ -1490,3 +1490,24 @@
           DRIVER_MANAGED_GROUPS = "NO",
           MAX_TOKEN_TIME = "-1" 
       ]
      +
      +TM_MAD_CONF = [
      +    NAME = "lizardfs",
      +    LN_TARGET = "NONE",
      +    CLONE_TARGET = "SYSTEM",
      +    SHARED = "YES",
      +    DS_MIGRATE = "YES",
      +    ALLOW_ORPHANS = "NO",
      +
      +    TM_MAD_SYSTEM = "shared",
      +    LN_TARGET_SHARED = "NONE",
      +    CLONE_TARGET_SHARED = "SYSTEM",
      +    DISK_TYPE_SHARED = "FILE"    
      +]
      +
      +DS_MAD_CONF = [
      +    NAME = "lizardfs",
      +    REQUIRED_ATTRS = "",
      +    PERSISTENT_ONLY = "NO",
      +    MARKETPLACE_ACTIONS = "export" 
      +]
      
      
  • Préparer un script pour patcher automatiquement les datastores au reconfigure
    cat > /usr/share/eole/postservice/90-one-datastores-lizardfs <<'EOF'
    #!/bin/bash
    
    export EDITOR='sed -i -e "s,^\(TM\|DS\)_MAD=.*,\1_MAD=lizardfs,"'
    for ds in system-default images-disques iso-images
    do
        onedatastore update "${ds}" 
    done
    EOF
    chmod +x /usr/share/eole/postservice/90-one-datastores-lizardfs
    
  • Reconfigurer le serveur

#3 Updated by Daniel Dehennin 10 months ago

#4 Updated by Daniel Dehennin 10 months ago

  • % Done changed from 0 to 100

#5 Updated by Daniel Dehennin 10 months ago

  • Status changed from En cours to Résolu

#6 Updated by Gilles Grandgérard 9 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF