|
| 1 | +README |
| 2 | +This script is intended to replicate vDisks/versions from a Store accessible by the "export" PVS server to other PVS servers in the same Farm/Site and another Farm/Store/Site. |
| 3 | +All parameters ("export"/"import" servers, source/destination site, source/destination store, and disks to export) are either passed in or selected via the GUI. |
| 4 | +All read-only vDisks/versions from a user-defined Store on the export PVS server are replicated to all other servers in a user-defined Site in the same Farm. |
| 5 | +The same vDisks/versions are also replicated to a user-defined Store/Site (and all servers in that Site) in the same Farm as the import PVS server. |
| 6 | +Script includes basic error handling, but assumes import and export PVS servers are unique. |
| 7 | +Errors and information are written to the PowerShell host as well as the event log (Robocopy logs are also generated). |
| 8 | +Must first run <Enable-WSManCredSSP -Role Server> on all PVS servers |
| 9 | +Must first run <Enable-WSManCredSSP -Role Client -DelegateComputer "*.FULL.DOMAIN.NAME" -Force> on the PVS server this script is run from |
| 10 | +Must first install PVS Console software on the PVS server this script is fun from |
| 11 | +Must use an account that is a local administrator on all PVS servers |
| 12 | + |
| 13 | +NEW IN THIS VERSION (2.0): |
| 14 | +Bug Fixes -- fixed several bugs reported by the user community |
| 15 | +Intra-site Replication -- Running the script with the -INTRASITE switch (and required parameters -- see example below) will copy the .PVP, .VHD/X, and .AVHD/X files |
| 16 | +(including maintenance versions!) for each vDisk specified (or all vDisks on the server if the IS_vDisksToExport parameter is not used) from the IS_srcServer to all other |
| 17 | +PVS servers in the same site. |
| 18 | + |
| 19 | +EXAMPLES |
| 20 | +This script should be run (as administrator) on a PVS server after any vDisk or vDisk version is promoted to production. |
| 21 | +.\vDisk_Replicator_<Version>.ps1 -GUI |
| 22 | +.\vDisk_Replicator_<Version>.ps1 -srcServer <FQDN> -srcSite <SITE> -srcStore <STORE> -dstServer <FQDN> -dstSite <SITE> -dstStore <STORE> [-vDisksToExport <ARRAY>] |
| 23 | +.\vDisk_Replicator_<Version>.ps1 -INTRASITE -IS_srcServer <FQDN> [-IS_vDisksToExport <ARRAY>] |
| 24 | + |
| 25 | +VERSION |
| 26 | +2.0 |
| 27 | + |
| 28 | +DATE MODIFIED |
| 29 | +6/19/2017 |
| 30 | + |
| 31 | +AUTHOR |
| 32 | +Sam Breslow, Citrix Consulting |
0 commit comments