« ESXi smart / smartctl » : différence entre les versions

De Linux Server Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 17 : Ligne 17 :
<pre>
<pre>
$# ar tv smartctl-6.6-4321.x86_64.vib
$# ar tv smartctl-6.6-4321.x86_64.vib
rw-r--r-- 0/0  1178 Jan  1 01:00 1970 descriptor.xml
rw-r--r-- 0/0  1099 Jan  1 01:00 1970 descriptor.xml
rw-r--r-- 0/0      0 Jan  1 01:00 1970 sig.pkcs7
rw-r--r-- 0/0      0 Jan  1 01:00 1970 sig.pkcs7
rw-r--r-- 0/0 750335 Jan  1 01:00 1970 smartctl
rw-r--r-- 0/0 1373386 Jan  1 01:00 1970 smartctl
</pre>
</pre>


Pour extraire les fichiers : <code>ar vx smartctl-6.6-4321.x86_64.vib</code>
Pour extraire les fichiers : <code>ar vx smartctl-6.6-4321.x86_64.vib</code>
Notez que le fichier <code>smartctl</code> est une archive tar compressé en gzip
Notez que le fichier <code>smartctl</code> est une archive tar compressé en gzip
Instruction de créations : [[ESXi : créer un vib manuellement sous linux]]

Dernière version du 12 août 2017 à 12:20

Installation sur ESXi

cd /vmfs/volumes/datastore1
wget http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib
esxcli software acceptance set --level=CommunitySupported
esxcli software vib install -v /vmfs/volumes/datastore1/smartctl-6.6-4433.x86_64.vib

Utilisation

/opt/smartmontools/smartctl -d sat -a /dev/disk/<disk>

Inspection de l'archive (sous linux)

$# ar tv smartctl-6.6-4321.x86_64.vib
rw-r--r-- 0/0   1099 Jan  1 01:00 1970 descriptor.xml
rw-r--r-- 0/0      0 Jan  1 01:00 1970 sig.pkcs7
rw-r--r-- 0/0 1373386 Jan  1 01:00 1970 smartctl

Pour extraire les fichiers : ar vx smartctl-6.6-4321.x86_64.vib Notez que le fichier smartctl est une archive tar compressé en gzip

Instruction de créations : ESXi : créer un vib manuellement sous linux