When you add any file to a library server on SCVMM 2008 R2, you might wait for maximum one hour if you are unlucky. Because refreshing time for library server is one hour, you cannot set below one hour.
Library Setting: This is the window of setting refreshing time for the library on SCVMM console.
Users may need to add files, for example, a user can add unattend.xml to the library server for the purpose of intending to set more detail options for a VM.
However, SCVMM realizes the existence of the file when the file is in the library server during VM deployment.
The solution of this problem is that we can use a powershell cmdlet. That cmdlet is Refresh-LibraryShare.
In conclusion, Refreshing the library server works fine via powershell.
First step, list up libraries
PS C:\> Get-LibraryShare
--------------------------------------------------
Name : MSSCVMMLibrary
Description :
LibraryServer : CDEVSCVMM
Path : \\CDEVSCVMM\MSSCVMMLibrary
ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.Serve
rConnection
ID : 16ccc5f6-d14b-4c1c-9d6d-944a7e556793
MarkedForDeletion : False
IsFullyCached : True
Name : Library
Description :
LibraryServer : CDEVSCVMM
Path : \\CDEVSCVMM\Library
ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.Serve
rConnection
ID : 02b631b2-4975-4a23-8604-c0e49914cbc0
MarkedForDeletion : False
IsFullyCached : True
Second step: Specify the library share in which you have added the file. (If you run more than one library share.) I ran two library share and added the file in \\CDEVSCVMM\Library.
PS C:\> $lib = Get-LibraryShare
PS C:\> $lib01 = $lib[1]
Third step: Refresh the library
PS C:\> Refresh-LibraryShare $lib01
---------------------------------------------
Name : Library
Description :
LibraryServer : CDEVSCVMM
Path : \\CDEVSCVMM\Library
ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.Serve
rConnection
ID : 02b631b2-4975-4a23-8604-c0e49914cbc0
MarkedForDeletion : False
IsFullyCached : True
After successful execution of the third step, you can see that file on the library server.
댓글 없음:
댓글 쓰기