change the level of automation of the drs, vm storage

As per http://communities.VMware.com/message/2172311#2172311

I use LucD method, to retrieve a list of VMs that have turned on vm

Function Get-StoragePod {}
< #.
. SYNOPSIS to find a DatastoreCluster
. DESCRIPTION the function will return an object of StoragePod.
It's being used by vSphere for a DatastoreCluster server-side.
. Author NOTES: Luc relaxing
. SETTING the name of the DatastoreCluster
. EXAMPLE OF
PS > Get-StoragePod
. EXAMPLE OF
PS > Get-StoragePod-name ' SDC. "
# >
(param
[CmdletBinding()]
[parameter (Position = 0, ValueFromPipeline = $true)]
([string] $Name = "*")
Begin {}
Function Get-StoragePodInternal {}
(param
[CmdletBinding()]
[parameter (mandatory = $true, ValueFromPipeline = $true)]
([VMware.Vim.Folder] $Folder)
$Folder.ChildEntity | %{
if($_.) Type - eq "StoragePod") {}
{Notice-EEG-Id $_}
ElseIf ($_.) Type - eq "Folder") {}
Notice-EEG-Id $_. Get-StoragePodInternal
}
}
}
}
{in process
Get-file-name data store | %{
Get-StoragePodInternal-folder $_. ExtensionData
} | where {$_.} Name - like $Name}
}
}
$dsc = get-StoragePod-name $datastorecluster
$vmlist = $dsc. PodStorageDrsEntry.StorageDrsConfig.VmConfig | where {$_.} {Enabled - notmatch 'False'} | Select @{N = "VM"; E = {(Get-vue $_.)} {{VM). name}}, on, IntraVmAffinity | where {$_.} {VM-like "* _replica"}

It gets a list of VMs that have enabled DTS which should not successfully.

I'm fighting with the deactivation of Dts.  I'm new to powershell

from what I understand, I need to update dsc.podstoragedrsentry.storagedrsconfig.vmconfig.enabled to False.

but I'm not sure how, or could point me in the right direction?

You will need to use the ConfigureStorageDrsForPod_Task method to change the settings for DTS.

In the StorageDrsConfigSpec object, you can disable it.

Combined with your Where clause that could be something like this

$storMgr = Get-View StorageResourceManager
$pod = Get-DatastoreCluster -Name $datastorecluster
$spec = New-Object VMware.Vim.StorageDrsConfigSpec 

$pod.ExtensionData.PodStorageDrsEntry.StorageDrsConfig.VmConfig |
where {(Get-View $_.VM | Select -ExpandProperty Name) -like "*_replica"} | %{
  $entry = New-Object VMware.Vim.StorageDrsVmConfigSpec  $entry.Operation = "edit"  $entry.Info = $_  $entry.Info.Enabled = $false  $spec.vmConfigSpec += $entry}

$storMgr.ConfigureStorageDrsForPod($pod.ExtensionData.MoRef,$spec,$true)

Note that the Get-DatastoreCluster cmdlet can be used to replace my function

Tags: VMware

Similar Questions

  • How to change the location of storage

    Hi there, because CP programs take too large capacity storage on my main drive, I tried to change the location of storage in which programs are installed, but I don't understand how to do it again. Could you help me?

    Change for Applications installation location

    With the application of CC open, select the gear icon in the upper right, and then choose Preferences.  In the preferences of the screen select creative cloud and then look for the drop-down list installation location

    If you want to change the location of a program you have already installed, you must uninstall and reinstall after you change the installation location.

  • How to change the location of storage in Lightroom 3.6. ?

    How to change the location of storage in Lightroom 3.6. ?

    I use my internal hard drive NTFS of my MacBook Pro as my Lightroom 3.6 storage location. run installation of Snow Leopard now but my photos too big get data now. I have two big and fast disks external eSATA hard now I want to use for my data/photos. I know how to copy data from one hard drive to another, but I don't know how to easily change the parameters in connection with Lightroom. I always want to look at all the pictures on my MacBook Pro, but do not want to save the photos on my internal hard drive more. Is it not possible to have the Lightroom program on my internal hard drive but data on twice on two discs hard different extermal? If I look at Lightroom - the catalog settings - I see that the location of the internal hard drive is my storage location now, but I have my two external hard drives do not appear as folders. Why? How do I change this so that external hard drives appear in Lightroom and I can watch all my fotos immediately (sometimes using external hard drive 1 and sometimes using external hard drive 2)?

    My external hard drives are in HFS +, but I use Paragon Software so that there should not be no problem to read and write data (I also use Final Cut Express to my drives external hard are HFS + and not NTFS).

    I want impert lots of data from a CD - do I need to first copy the fotos on my external hard drive, and then import it into Lightroom or is it easier to import data directly from the CD in Lightroom so that I don't have to name the files twice?

    I see that I must sort the fotos of the CDs in different folders and an opportunity to do it in the Finder to my MacBookPro. In Lightroom I don't want to have to click on each of the hundreds of photos to be able to put it in the right folders... But how import only a part of a CD quickly in the right folders (newly created)?

    Best regards, Karin

    The instructions do not all "creating a second folder.

    The instructions are: "In the import dialog box, select Add, and then on the left in the Source Panel, select the appropriate folder."

  • vRA 6.2: change the size of storage supply

    We have a bunch of different plans for use by different business groups.  All of them are basically the same with respect to the model used, the initial size of memory, etc.  Today, I was going to provision a virtual machine with a different disk volume, so I went in a model specific, selected the "Storage" tab and clicks on the icon change to change the size of the initial 8GB 20 GB, but it was gray (it allowed me to change the storage type, however).  I went to another plan and it would allow me to change the size.  I then went through all the plans and more would allow me to change the initial size available, but some would.  I went on all plans, reservations, etc. and can't see well or the box anyone would do this function or not, so I'm stumped at the moment.  Anyone has any idea how this feature is enabled/disabled?  Thank you.

    Here's a screenshot of what it looks like for the Blues who allow me to change the size of initial storage Setup:

    allow.png

    ... and here's a blueprint that does NOT allow me to change the size of initial storage Setup:

    not_allow.png

    All plans are commissioning of a VM tempalte? It depends on the size of the disk on the model?

    Or, were there the engine put into service since the plans, you can not change already. Please keep in mind that the action plan is also a container of management then maybe you can't change from there and need to create a new template?

  • vCloud 5.1 and change the allocation of storage

    In vCloud 5.1 I don't see a way to change the storage allocated on an organization VDC someone knows if it is possible?

    I'm sure you could do this in the previous version.

    Thanks in advance

    Open the org VDC (double-click on org VDC, or right-click on it and open).

    Go to the profiles of storage tab.

    Here you can right click on storage profiles, and there are different actions available. If you click on the profile properties of storage, you can change the distribution.

  • change the backup/restore disc

    can I change this disk will my backup/restore point to? He uses my external drive now even if I didn't change it. I have a laptop & cannot bet that the external drive connects or is connected.

    HI RJHinSA,
    You can go there. This is guidance on how to change to the high places.
    If you need more information, simply open help, support and type "how to make the backup.
    Change when you save your files

    When you configure your computer to automatically back up files, you specify a location where the files will be stored. You can change this location if you run out of space in the current location or you want to change the type of storage location (for example, a DVD, a hard disk on your computer or a shared folder on another computer on a network).

    1. Click to open the backup center and restoration.

    2. Click on change settings.

    3. Click on modify backup settings and follow the steps in the wizard. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    Matt Hudson
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ORA-1403 when change the type of file to APEX_APPLICATION_TEMP_FILES browser storage

    Hi all

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    Thank you, Dorothy

    DorothySG wrote:

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    It's bug #21478903: error when changing from APEX_APPLICATION_TEMP_FILES to download files

    Use the deprecated option for now.

  • Change the storage profile (PAF) policy and apply to the home and VMDK

    Hi there, I need to change the policy of storage on a cluster with a value of virtual machines. I have follow-up vSphere PowerCLI 5.8 PAF Walkthrough (part 1): Introduction | VMware vSphere Blog - VMware Blogs, specifically, run this:

    Get-Cluster "mycluster | Get - VM "myvm.local" | Game-SpbmEntityConfiguration - StoragePolicy 'VSAN-FTT = 1 ".

    This applies to the new political profile is stored in the folder 'home' of the virtual machine, but do not know the VMDK, where the virtual machine is not consistent with the policy. How can I do so that it changes the policy I'm specifying the House and all the vmdk on the virtual machine.

    Thanks in advance,

    You must define the strategy of storage on hard drives as well as in an additional command, for example:

    $vm = get-Cluster "mycluster | Get - VM "myvm.local."

    $hd = get-disk hard - VM $vm

    $vm | Game-SpbmEntityConfiguration - StoragePolicy 'VSAN-FTT = 1 ".

    $hd | Game-SpbmEntityConfiguration - StoragePolicy 'VSAN-FTT = 1 ".

  • How to change the VM storage profile in vAppTemplate?

    Hello world

    I have a project in front of me to migrate existing virtual machines to a profile of existing storage or the * profile to a profile of newly created storage.  I have determined how to get this done for VMS in vApps already and I am able to update profiles of storage for virtual machines and see them to migrate to the data warehouse associated with the new profile of storage.  I'm currently stuck trying to figure out how to upgrade virtual machines in VAPP models.  I can recover the VAPP model using Get-CIVAppTemplate, but I am not able to browse the virtual machines in.

    So my question is: How can I use on the VMS in a VAPP model to be able to change the profile of storage?

    If not, is there a method to reach my goal (all move to a new storage profile) that I don't see?  I'm afraid I'll make a mess of things in storage by updating virtual machines individually.  If there is a way to lift and move a whole tree (similar to SSMove of Lab Manager), that would be great!

    Thank you

    Jason

    I wasn't always able to solve this problem via PowerCLI.  My eventual solution was manually copy/move the VAPP model in the catalogue and choose the correct storage profile in the process.  Fortunately, we didn't have many models VAPP and it took no more than a few days.

    Jason

  • _Member of the BSO cubes storage

    Hi all

    We have a cube BSO. I need to change the properties of storage of all members in 4 sizes to store. What is the best/easy approach to change the properties of storage of all members in a dim

    Yes, I've been down this road before and am actually likely to be soon on my current project.

    Your question, I think, is that HFM prepares his eliminations and adjustments to senior level members in the dimension of PKI (value? "I don't remember, it has been more than a year). When you load in a cube ASO that it does not work because the ASO only accepts the load at level 0 data.

    The patch on the side of Essbase is to create level 0 buckets to receive the higher level e & a. It's a pain and you will probably need the output of SQL extended Analytics massage (I'm guessing that you use) to push the values of these 'false' lower level members. This all works when it is retrieved at a higher level of the map.

    In fact, the foregoing would be about 99% true in OSB as well - Yes, you can load at senior level members, but almost nobody does.

    In any case, create that stored such members in ASO vs dynamic won't make a difference - ASO loads only on level 0.

    Kind regards

    Cameron Lackpour

    Published by: CL on February 19, 2010 09:06
    P.S. Your post title says "OSB", but you talk to ASO. Two very different architectures under the covers.

  • Can I use automator to change the modified time of a file as its content?

    I use automator to rename a series of images.

    The problem is whenever I change a change of time of amending records file.

    Can I use automator to change the modified time of a file as its content?

    I know that I can use the Terminal to change a date but I have no idea how to do to automate this process

    As you say you know the command to use in the Terminal, and then with Automator, use the Action run the Shell Script after the name change.  The new file name will be passed to the Action run a Shell Script, and from there, you can use touch - r to set the time of the file at the time the name of the new file

  • How to change the level of zoom on a Web page

    How to change the zoom of a Firefox Web page level? In Internet Explorer, you can do this with the right end of the status bar icon. Any advice would be appreciated. Thank you.

    This article should help: https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages

  • How can I change the volume level on the Libretto W100?

    Sorry everybody explain to me how do I adjust the volume in * model Libretto W100 10 d * because I have a serious problem with any program like Media Player and others.
    I tried to regulate in the control panel, but is too slow! I'm disperate help me please

    Thank you very much!!!

    In the taskbar on the right site, you can see speaker symbol. Click on it and when the volume control is displayed that you can change the level by moving the controller up and down.

    It works for you?

  • change the zoom level as IE

    How to change the zoom level as IE?

    This has happened

    Each time Firefox opened

    is n/a

    Extension of the default Zoom level:
    https://addons.Mozilla.org/en-us/Firefox/addon/6965

  • Screen makes sound when I change the level of the bightness on Qosmio G40

    I bought my G40 August 16 and after 16 days, when I change screen brightness level will do some sort of strange noise but if I change the brightness Maxium sound will disappear.

    Also if I press the surface of the screen inward (tricky), the sound will become smaller, I send my laptop in the den and the center of den changed new LCD inverter for me but after that the laptop is back, I find that the problem is still there and it was not fixed.

    What should I do?

    I noticed the same thing on different laptops. I presume that this sound change power supply for FL inverter product. You must be in a quiet room to hear that absolute. I checked on Tecra M and Satellite M70 and the result is the same.

    Perhaps you are worried about it, but believe me it's normal.

Maybe you are looking for