PowerCLI

 View Only
  • 1.  Migrating Virtual Servers from SAN to NAS Storage

    Posted Nov 30, 2009 02:57 PM

    Planning to migrate my virtual server estate from SAN to NAS..

    Currently the Virtual Servers (mixture of W2k3 and Linux RH5.2) reside on SAN and are optimised / aligned for block based storage, now if we are to migrate to NAS storage (levergaing PowerShell) how do we optimise the disks for NAS during the migration..? is it possible to align the disks via Powershell in mass..?

    Has anyone done this leveraging PowerShell

    - Migrate Virtual Machines from SAN to NAS (either cold / hot migrations)

    - Amend Disk Alignment for optimisation from SAN to NAS.

    Thanks



  • 2.  RE: Migrating Virtual Servers from SAN to NAS Storage

    Broadcom Employee
    Posted Nov 30, 2009 03:09 PM

    Migrating from one storage device to another (sVmotion) is easy enough using get-vm MyVM | Move-Datatstore (get-datastore MyDatastore)

    On the allignemnt, how do you do this manually at the moment ?

    If you found this information useful, please consider awarding points for Correct or Helpful.

    Alan Renouf



  • 3.  RE: Migrating Virtual Servers from SAN to NAS Storage

    Posted Nov 30, 2009 03:19 PM

    on windows its diskpart.. the provisioning system we have in house does this for any new virtual machines deployed on SAN.



  • 4.  RE: Migrating Virtual Servers from SAN to NAS Storage

    Broadcom Employee
    Posted Nov 30, 2009 03:32 PM

    Are you talking about page 4 of this guide: http://www.vmware.com/pdf/esx3_partition_align.pdf

    Wont that trash the partition and remove any existing data ?

    If you found this information useful, please consider awarding points for Correct or Helpful.

    Alan Renouf



  • 5.  RE: Migrating Virtual Servers from SAN to NAS Storage

    Posted Nov 30, 2009 03:33 PM

    Disk alignment when you are creating a new disk, is fairly easy, using diskpart, and such. Doing alignment after the fact, is not so simple. Typically, some 3rd party tool is required to re-align or move all of your data to align to the new block structure you choose. Powershell can not do this for you, as you are talking about moving block-level data to a new starting point. You'll need a 3rd party tool to do this.

    -KjB

    VMware vExpert



  • 6.  RE: Migrating Virtual Servers from SAN to NAS Storage

    Posted Nov 30, 2009 05:09 PM

    Hello jssidhu71,

    The other posters are correct. Alignment with diskpart will destroy any data on the partition because you need to align the partition at creation time. As for third-party utilities, you may want to look at Vizioncore vOptimizer. This product does non-destructive partition re-alignment.

    I hope this helps.

    Don't forget to mark this answer "correct" or "helpful" if you found it useful (you'll get points too).

    Regards,

    Harley Stagner

    VCP3, VCP4