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

De Linux Server Wiki
Aller à la navigation Aller à la recherche
(Page créée avec « http://www.virten.net/2016/05/determine-tbw-from-ssds-with-s-m-a-r-t-values-in-esxi-smartctl/ <pre> cd /vmfs/volumes/datastore1 wget http://www.virten.net/files/smartctl-... »)
 
Aucun résumé des modifications
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
http://www.virten.net/2016/05/determine-tbw-from-ssds-with-s-m-a-r-t-values-in-esxi-smartctl/
[[category:virtualisation]]
=Installation sur ESXi=


<pre>
<pre>
cd /vmfs/volumes/datastore1
cd /vmfs/volumes/datastore1
wget http://www.virten.net/files/smartctl-6.6-4321.x86_64.vib
wget http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib
esxcli software acceptance set --level=CommunitySupported
esxcli software acceptance set --level=CommunitySupported
esxcli software vib install -v /vmfs/volumes/datastore1/smartctl-6.6-4321.x86_64.vib
esxcli software vib install -v /vmfs/volumes/datastore1/smartctl-6.6-4433.x86_64.vib
</pre>
</pre>
=Utilisation=
<pre>/opt/smartmontools/smartctl -d sat -a /dev/disk/<disk></pre>
=Inspection de l'archive (sous linux)=
<pre>
$# 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
</pre>
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
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