Wednesday, 19 January 2011

Windows Server 2008 Hyper-V parent in 2008 R2 guest

Pri omenjeni konfiguraciji se v dnevniku pojavijo napake:

Description: A storage device in cannot load because it is incompatible with the server virtualization stack. Server version 2.0 Client version 4.2

Log Name: System
Source: VMSMP
Event ID: 26
Level: Error
Computer: 2008SRV.contoso.com
Description: NIC driver on '2008R2-Guest' cannot load because it is incompatible with the server virtualization stack. Server version 2 Client version 196610 (VMID 9A5FAAC3-1F7A-442D-9525-46B39ACE22DB).


O primeru govori članek http://support.microsoft.com/kb/972108.

Povzetek: sporočila lahko ignoriramo parent in chield se naknadno dogovorita za pravo verzija protokola.

Možen je tudi obraten primer. Hyper-V strežnik R2 in guest npr. 2008, primer sporočila:

A storage device in 'Demo_2003SRV' loaded but has a different version from the server.
Server version 4.2 Client version 2.0 (Virtual machine ID 9A5FAAC3-1F7A-442D-9525-46B39ACE22DB).
The device will work, but this is an unsupported configuration.
This means that technical support will not be provided until this problem is resolved.
To fix this problem, upgrade the integration services.
To upgrade, connect to the virtual machine and select Insert Integration Services Setup Disk from the Action menu.

Rešitev: Nadgradnja Integration komponente

Monday, 10 January 2011

Ukazna vrstica - kako pridobiti datum (command prompt date)

Prastaro orodje za samodejno administriranje "ukazne skripte" (batch fajli, command fajli), ki izhajajo še iz časa DOS-a.

Primer, kako pridobimo datum v spremenljivke in ga nato uporabimo npr. za sestavo imena log datoteke, ki nosi datum izvedbve:

@for /f "tokens=4 delims=. " %%c in ('date /T') do set YYYY=%%c
@for /f "tokens=3 delims=. " %%d in ('date /T') do set MM=%%d
@for /f "tokens=2 delims=. " %%e in ('date /T') do set DD=%%e
@ECHO %YYYY%-%MM%-%DD%
@Set LogFile=\Backup%YYYY%-%MM%-%DD%.TXT
robocopy .... >%LogFile%


Dnevnik bi v tem primeru pisali v datoteko z imenom "Backup2011-01-10.TXT".