Omconfig
Aller à la navigation
Aller à la recherche
| Fiche express | |
|---|---|
| Type | Outil CLI — configuration matérielle (écriture) |
| Fabricant | Dell |
| Composant | Suite Openmanage (srvadmin-all)
|
| Voir aussi | Omreport · Racadm |
omconfig est la commande d'écriture de la suite Dell Openmanage : elle permet de modifier la configuration matérielle du serveur (profil d'alimentation, contrôleurs RAID, disques virtuels/physiques, enceintes). Son pendant en lecture seule est Omreport.
Profil d'alimentation du châssis
omconfig chassis pwrmanagement profile=maxperformance
Contrôleur
# rescan
omconfig storage controller action=rescan controller=id
omconfig storage controller action=globalrescan controller=1
# alarme
omconfig storage controller action=enablealarm controller=1
omconfig storage controller action=disablealarm controller=id
omconfig storage controller action=quietalarm controller=id
omconfig storage controller action=testalarm controller=1 # uniquement sur contrôleur CERC SATA1.5/6ch
# réinitialisation complète (détruit toutes les données du contrôleur)
omconfig storage controller action=resetconfig controller=id
# taux de reconstruction RAID
omconfig storage controller action=setrebuildrate controller=1 rate=50
# export des logs
omconfig storage controller action=exportlog controller=id
Disques virtuels (vdisk)
Création
omconfig storage controller action=createvdisk controller=id raid=<c|r0|r1|r1c|r5|r10|r50> \
size=<nombre|max|min> adisk=<canal:targetID,canal:targetID,...> \
[stripesize=<2kb|4kb|8kb|16kb|32kb|64kb|128kb>] [cachepolicy=<d|c>] \
[readpolicy=<ra|nra|ara|rc|nrc>] [writepolicy=<wb|wt|wc|nwc>] [name=<nom>] [spanlength=<n>]
# exemple
omconfig storage controller action=createvdisk controller=1 raid=r5 size=500m \
adisk=0:0,0:1,0:2,0:3 stripesize=16kb cachepolicy=c readpolicy=ra writepolicy=wt
Paramètres requis : raid, size, adisk. Le reste est
optionnel.
Gestion
# blink / unblink
omconfig storage vdisk action=blink controller=id vdisk=id
omconfig storage vdisk action=unblink controller=id vdisk=id
# initialisation
omconfig storage vdisk action=initialize controller=id vdisk=id
omconfig storage vdisk action=cancelinitialize controller=id vdisk=id
omconfig storage vdisk action=cancelbginitialize controller=id vdisk=id # annule l'init en cours
# segments défectueux
omconfig storage vdisk action=restoresegments controller=id vdisk=id
# mirroring
omconfig storage vdisk action=splitmirror controller=id vdisk=id
omconfig storage vdisk action=unmirror controller=id vdisk=id
# hot spare dédié
omconfig storage vdisk action=assigndedicatedhotspare controller=id vdisk=id \
[adisk=canal:targetID,...] assign=yes
omconfig storage vdisk action=assigndedicatedhotspare controller=1 vdisk=4 adisk=0:3 assign=no
# vérification de cohérence
omconfig storage vdisk action=checkconsistency controller=id vdisk=id
omconfig storage vdisk action=cancelcheckconsistency controller=id vdisk=id
omconfig storage vdisk action=pausecheckconsistency controller=id vdisk=id
omconfig storage vdisk action=resumecheckconsistency controller=id vdisk=id
# suppression / formatage
omconfig storage vdisk action=deletevdisk controller=id vdisk=id
omconfig storage vdisk action=format controller=id vdisk=id
# reconfiguration (ex: agrandissement)
omconfig storage vdisk action=reconfigure controller=id vdisk=id \
raid=<c|r0|r1|r1c|r5|r10> size=<taille> adisk=<canal:targetID,...>
omconfig storage vdisk action=reconfigure controller=1 vdisk=4 raid=r5 size=800m adisk=0:0,0:1,0:2,0:3
# politique de cache/lecture/écriture
omconfig storage vdisk action=changepolicy controller=id vdisk=id \
[readpolicy=<ra|nra|ara|rc|nrc>] [writepolicy=<wb|wt|wc|nwc>] [cachepolicy=<d|c>]
omconfig storage vdisk action=changepolicy controller=1 vdisk=4 readpolicy=nra
# renommer
omconfig storage vdisk action=rename controller=1 vdisk=4 name=vd4
Disques physiques (array disk)
# blink / unblink
omconfig storage adisk action=blink controller=id adisk=<canal:targetID>
omconfig storage adisk action=blink controller=1 adisk=0:0,0:1,0:2
omconfig storage adisk action=unblink controller=id adisk=<canal:targetID>
omconfig storage adisk action=unblink controller=1 adisk=0:0,0:1,0:2
# préparer au retrait
omconfig storage adisk action=remove controller=id adisk=canal:targetID
omconfig storage adisk action=remove controller=1 adisk=0:3
# initialiser
omconfig storage adisk action=initialize controller=1 adisk=0:3
# mise hors ligne / en ligne
omconfig storage adisk action=offline controller=1 adisk=0:3
omconfig storage adisk action=online controller=1 adisk=0:3
# hot spare global
omconfig storage adisk action=assignglobalhotspare controller=1 adisk=0:3 assign=yes
omconfig storage adisk action=assignglobalhotspare controller=1 adisk=0:3 assign=no
# reconstruction
omconfig storage adisk action=rebuild controller=1 adisk=0:3
omconfig storage adisk action=cancelrebuild controller=1 adisk=0:3
# segments morts
omconfig storage adisk action=removedeadsegments controller=1 adisk=0:3
Correction : l'exemple de blink a été corrigé — la commande source contenait une syntaxe
dupliquée et incohérente avec l'action unblink.
Batterie et canal
omconfig storage battery action=recondition controller=1
omconfig storage channel action=rescan controller=1 channel=2
Enceintes (enclosure)
# alarme
omconfig storage enclosure action=enablealarm controller=1 enclosure=2
omconfig storage enclosure action=disablealarm controller=1 enclosure=2
# arrêt thermique intelligent
omconfig storage enclosure action=enablests
omconfig storage enclosure action=disablests
# identification
omconfig storage enclosure action=setassettag controller=1 enclosure=2 assettag=encl20
omconfig storage enclosure action=setassetname controller=1 enclosure=2 assetname=encl43
# seuils de sonde de température
omconfig storage enclosure action=settempprobes controller=1 enclosure=2 index=3 minwarn=10 maxwarn=40
omconfig storage enclosure action=reset controller=1 enclosure=2 index=3
Documentation
- Support Dell : https://www.dell.com/support/
Voir aussi
- Omreport — pendant en lecture seule
- Openmanage — suite Dell OpenManage
- Racadm — administration de la carte DRAC