[iscsi] On évite les conflits entre les fichiers de mapping des 2 baies
Ignore-this: 7a14d9e365b2b0a5299ee5015bad02d0 darcs-hash:20120807222443-108b1-d23b778fbb79a32b079d7bad34480df9ccf3e938.gz
This commit is contained in:
parent
7bf024e825
commit
668ba63330
4 changed files with 68 additions and 3 deletions
|
@ -13,7 +13,7 @@ stockage'''
|
|||
import nolslib, re, sys
|
||||
|
||||
sys.path.append("/usr/scripts/gestion")
|
||||
from config import ISCSI_MAP_FILE
|
||||
from config import ISCSI_NEW_MAP_FILE
|
||||
import affich_tools
|
||||
|
||||
print u"Connexion à la baie de stockage..."
|
||||
|
@ -31,7 +31,7 @@ nols.logout()
|
|||
|
||||
print u"Enregistrement des informations..."
|
||||
|
||||
f = open(ISCSI_MAP_FILE, "w")
|
||||
f = open(ISCSI_NEW_MAP_FILE, "w")
|
||||
f.write((u"""\
|
||||
# -*- coding: utf-8 -*-
|
||||
# Fichier de mapping lun -> nom de volume
|
||||
|
@ -48,7 +48,7 @@ f.write("}\n")
|
|||
|
||||
f.close()
|
||||
|
||||
print u"Terminé, mapping enregistré dans %s" % ISCSI_MAP_FILE
|
||||
print u"Terminé, mapping enregistré dans %s" % ISCSI_NEW_MAP_FILE
|
||||
|
||||
print u"Le mapping actuel est:"
|
||||
print affich_tools.tableau(titre = ["lun", "nom"], data = map, alignement = ["g", "c"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue