ESXi – Créer des partitions VMFS manuellement

Objectif : créer deux partitions sur un disque pour avoir deux DataStore VMFS
LUN: 1.6 To

Identifier le disque

ls -l /vmfs/devices/disks

Créer les partitions avec partedUtil

partedUtil setptbl "/vmfs/devices/disks/mpx.vmhba1:C0:T1:L0" gpt "1 2048 1677716144 AA31E02A400F11DB9590000C2911D1B8 0" "2 1677716145 3515230207 AA31E02A400F11DB9590000C2911D1B8 0"

Lister les partitions créées

ls -l /vmfs/devices/disks/
lrwxrwxrwx 1 root root 19 Apr 20 13:58 vml.0000000000766d686261313a313a30 -> mpx.vmhba1:C0:T1:L0
lrwxrwxrwx 1 root root 21 Apr 20 13:58 vml.0000000000766d686261313a313a30:1 -> mpx.vmhba1:C0:T1:L0:1
lrwxrwxrwx 1 root root 21 Apr 20 13:58 vml.0000000000766d686261313a313a30:2 -> mpx.vmhba1:C0:T1:L0:2

Création des Datastores VMFS

vmkfstools -C vmfs5 -b 1m -S DS1 /vmfs/devices/disks/vml.0000000000766d686261313a313a30:1
vmkfstools -C vmfs5 -b 1m -S DS2 /vmfs/devices/disks/vml.0000000000766d686261313a313a30:2

Source
KB 1009829: Manually creating a VMFS volume using vmkfstools -C
KB 1036609: Using the partedUtil command line utility on ESXi and ESX

ESXi simulate local SSD

vmhba1:C0:T0:L0
vmhba1:C0:T1:L0 – 5 Go
vmhba1:C0:T2:L0 – 20 Go => à modifier pour l’utiliser comme disque SSD
vmhba1:C0:T3:L0 – 40 Go

esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T2:L0 --option "enable_local enable_ssd"
esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T3:L0 --option "enable_local"
esxcli storage core claiming reclaim -d mpx.vmhba1:C0:T2:L0
esxcli storage core claiming reclaim -d mpx.vmhba1:C0:T3:L0

Language Pack FR Windows 7 / 8

Windows 7 SP1 32bit – Pack FR – windows6.1-kb2483139-x86-fr
Windows 7 SP1 64bit – Pack FR – windows6.1-kb2483139-x64-fr
Windows 8.1 32bit – Pack FR – lp_6588a26cdd1f53395b8f3e6ae0f256fc080df570.cab
Windows 8.1 64bit – Pack FR – lp_57ba398b9875a01656ae6bd9fee53b4717f7612e.cab
Windows 8 32bit – Pack FR – windows8-kb2607607-x86
Windows 8 64bit – Pack FR – windows8-kb2607607-x64

CentOS – chercher un fichier dans un package

Sur CentOS

Exemple, si on recherche quel paquet contient la commande SCP

yum provides */scp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mir01.syntis.net
 * extras: mir01.syntis.net
 * updates: centos.mirror.fr.planethoster.net
openssh-clients-5.3p1-94.el6.x86_64 : An open source SSH client applications
Repo : base
Matched from:
Filename : /usr/bin/scp

Script export Utilisateurs Office 365 au format CSV compatible pour l’import dans Office 365…

#Connexion
Connect-MsolService
#Domaine
$domain = "pH4.fr"
#Chemin fichier csv
$Csvpath = "c:\temp\users.csv"
Get-MsolUser -DomainName $domain | Select UserPrincipalname,FirstName,LastName,DisplayName,Title,Department,Office,PhoneNumber,MobilePhone,fax,StreetAddress,city,state,PostalCode,country | Export-Csv $Csvpath