vCenter

 View Only
  • 1.  How can migrate content library from Datasttore1 to Datastore2

    Posted Oct 04, 2020 06:38 PM

    Is that possible content library from one datastore to other ?

    My content library hs been resided on datastore1 that contain more than 10 iso file and more than 50 template now I had to remove his datastore How can migrate content library from datastore1 to datastore2 ?

    BR



  • 2.  RE: How can migrate content library from Datasttore1 to Datastore2

    Posted Oct 04, 2020 06:45 PM

    Please see whether lamw07's reply at https://www.reddit.com/r/vmware/comments/5z23gb/move_content_library/ works for you.

    André



  • 3.  RE: How can migrate content library from Datasttore1 to Datastore2

    Posted Oct 04, 2020 07:10 PM

    Thanks. This is a good solution , just after replication between two CL finished and I will delete first CL and Is that possible change the role of second CL from subscribe to Local ?

    BR



  • 4.  RE: How can migrate content library from Datasttore1 to Datastore2

    Posted Oct 05, 2020 10:02 AM

    After sync between two CL we had to remove CL1 and change CL2 role from subscribe to local and this change is not possible.



  • 5.  RE: How can migrate content library from Datasttore1 to Datastore2
    Best Answer

    Posted Oct 05, 2020 11:39 AM

    You can create another local Content Library and use PowerCLI cmdlet "Copy-ContentLibraryItem" in order to copy items.

    For example:

    $item = Get-ContentLibraryItem -Name 'CentOS-7-x86_64-Minimal-1908' -ContentLibrary 'FirtstContentLibrary'

    $library = Get-ContentLibrary -Name 'SecondContentLibray' -Local

    Copy-ContentLibraryItem -ContentLibraryItem $item -Destination $library