Problem with double volume ID

I have this little block of code that passes through each disk and assigns to thin provisioned when setting up the job specification.

if (_vmThinProvision)
{
    ConverterStorageParamsManagedTargetDiskParams targetDiskParams = new ConverterStorageParamsManagedTargetDiskParams();
    converterStorageParams.targetDiskParams = new ConverterStorageParamsTargetDiskParams[_computerInfo.hardwareInfo.storage.disk.Length];
    for (int diskCount = 0; diskCount < _computerInfo.hardwareInfo.storage.disk.Length; diskCount++)
    {
        targetDiskParams.sourceDiskId = _computerInfo.hardwareInfo.storage.disk[diskCount].diskId;
        Console.WriteLine(targetDiskParams.sourceDiskId);
        targetDiskParams.diskType = "vmfsMonolithicFlatThinProvisioned";
        targetDiskParams.datastoreName = _vmDatastoreName;
        converterStorageParams.targetDiskParams[diskCount] = targetDiskParams;
     }
}

Lets take an example where a system has 3 disks. In the code above, if I just set up each drive manually instead of having in a loop (same exact code, just to get out of the loop and hardcode the array index), it works fine. Each disk and volume gets its own ID and conversion works correctly.

For some reason when I implement the loop, it seems to take the same disc 3 times instead of 3 different discs and, as would be expected, confuses the heck out of the VSS service. See the changelog below from the source system.

2012-02-22T10:03:54.782-05:00 [05180 info 'task-29'] CloneTask::SetupTask
2012-02-22T10:03:54.782-05:00 [05180 info 'task-29'] CloneTask::InitializeSourceComputer
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] CloneTask::InitializeTargetComputer
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] CloneTask updates, state: 1, percentage: 0, xfer rate (Bps): <unknown>
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::StartNextTrackingBitmap: no bitmap ID specified for the next cloning iteration, will not track changes
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::IsSnapshottingRequested: source volume snapshotting was  requested
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:56.173-05:00 [05180 error 'task-29'] Converter::AtomicVssVolumeSnapshotSet::CreateSnapshotSet: VSS snapshot failed: Unable to create a snapshot for volume \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}, \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}, \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}. Error code 2147754765 (0x8004230D)

You noticed I put a little console.writeline here to show me the code. They are different at this time. Sometimes between it and the submission of work deal with the GET IDs all rigged to the top.

Yet once, if I just take the loop and the hard-coding the index, it works fine. Any ideas? It has really puzzled me.

Thank you

You need to move

ConverterStorageParamsManagedTargetDiskParams targetDiskParams = new ConverterStorageParamsManagedTargetDiskParams();

inside the loop. You need a new instance for each disc. With the current implementation, you don't have that one instance and several references to it, in order to update the instance updates "everywhere" it is referenced.

Tags: VMware

Similar Questions

  • Problem with the volume on Satellite Z30 control - A

    Hello

    I have a problem with the analog output sound on my A - Z30 (internal and line/headphone speakers). If for example I play music I see a clearly weak signal volume on the fader control of volume in my Win 8.1 source volume control. But on the master fader, I get a completely saturated and distorted signal. Even down to the time source and output does not help... it just sounds horrible.

    See: link: [https://dl.dropboxusercontent.com/u/30325547/SoundProblem.jpg] (sorry, it's a German system)

    Here we can see that the (extreme right) music player delivers a signal of low volume, while the master fader (left) receives a 100% volume distorted signal.

    If I use external speakers that connect via USB (Logitech Z305) it works perfectly.

    I have already uninstalled and reinstalled the latest version of the drivers for my sound card. But this problem is very persistent. It seems that something pulls the signal up, but I can't find any control that turns off.

    I'm not completely sure when that started, but it can be connected with the beginning of the use of a USB headset. But I already uninstalled this software once again, but that did not help as well.

    Any idea?

    Thank you very much

    PHILIPPE

    Hello

    According to the specifications of the laptop and drivers available on the Toshiba driver page, this laptop supports the Realtek sound card.
    That's why the Realtek HD audio Manager software should be available in the control panel.

    Realtek HD audio Manager provides different parameters as well as the speaker of the configuration options to get the best sound performance.

    In addition, computers laptop Toshiba are preinstalled with a sound tool DTS/Soft
    This software provides audio improvements in your computer.

    To be honest, I not quite sure what which could affect your sound volume, but the mentioned tools and configuration should be checked permanently m.

  • Problem with the volume of a new 7 Slate

    I'll put up a new slate of 7 and I have a problem with the sound.  I have all the sliders to the max value, but any video or app plays at a very low volume on the builtin speakers. A trial has been with FIOS app that allows me to stream TV shows. I have to hold the Tablet so the speakers are right next to my ear to make the same concersations on the show and it's barely...

    Am I missing something?

    How to make your slate with audio files simply by using the application to play music?  And have you tried to play a trailer of the game of Google?  Type right on a movie title and play the trailer by typing on the > arrow.

    What if you use headphones?

    Do you have ear system sounds?  Go to settings > sounds > Touch seems to be there where there is a checkbox on the right whether Touch sounds are on or off.

    Speakers of slate are not all that, but they do not produce a sound that is strong enough to listen to the TV shows and movies.  If you can not enough volume of them with other applications such as the music plays, there may be a hardware problem.

    A few other suggestions... try to restart it.  And back to headphones, try inserting a headphone plug in all the way and disconnected.

    _
    As a contributor of top of page on the Forums of media consumer, HP, HP gives me access to the slate of 7 free of charge so I can better answer questions on the Forum.

  • Problems with fluctuating volume of Windows Media Player

    After that I transferred MP3/WAV files to my old laptop which has Vista... for my new laptop which has Windows 7, my windows media player then started acting crazy during playback of music files.  The volume goes up and down, and during parties strong songs, it goes almost silent... with a few songs, it becomes just as hard very quickly and then just cut all together.  I tried tools audio fix from microsoft, and they were unable to help him.  Basically, it sounds like when you listen to music, and you would simply continue to cupping your ears again and again, as you can imagine is really annoying while you try to listen to music

    Try the following steps, presented by another poster, JoeyNice:

    6 steps that have helped me with this problem:

    (After looking at a few ideas from there I went and did my own investigation and arrested next steps the boring windows media player playback sound fluctuations)

    (1.) start the media player and go into menu improvements in media player andreset all default media player improvements and disable all improvements and equalizer, etc...

    (2.) do right click the speaker volume icon (located in the lower right corner of windows in the area of programs/notification bar) then andclick 'sounds' in the right click menu (or if "speaker" icon is not in the notification bar go to control panel and click on 'sounds')

    (3.) in the sounds of communications click menu tab and select 'status quo '.

    4.) , while on the sounds tab menu click play, and then click speakers allowing you to then click on properties

    5.) in the sounds-> speakers menu properties go to improvements and select 'Disable all sound effects'

    6.) while in the sounds-> speakers menu properties go to the Advanced tab and "restore default settings" , then click on apply and then OK and then apply and ok again and the sound menu

    These steps allowed me to be able to go to windows media player and listen to music with no fluctations (and you can now be able to turn on the equalizer again if you want to make adjustments, but if this causes the fluctuation back just turn Equalizer back off.) I could turn it back on after you follow the steps above with no fluctuation)

    Let us know if this suggestion helps with your problem of fluctuating volume.

    Sincerely,

    Marilyn

  • Problem with double graphic

    I have the HP PAVILION G6 model 1202TX. It is built with dual INTEL and RADEON graphics. INTEL - Intel HD Graphics 3000 and

    AMD Radeon (TM) HD 6470M.earlier accidentally, I've lost my windows and its drivers, but my main problem is with graphics of ts. If I install the AMD drivers that shows a problem with INTEL graphics card notification bar and if I install INSTALL it shows with RADEON question. After the driver installation, whenever I restart my pc AMD shows a dialog box, and then if I install AMD, INTEL keeps poping up notification bar in the lower right corner of the pc it something related to the SYSTEM TRAY INTEL GRAPHICS card.

    Now, I have installed INTEL graphic driver I have and every time ii restart my pc it displays a dialog box

    This appers to dialog box every time I start my pc

    PLEASE HELP ME

    Hope for action freequent

    THNK YOU.

    Hi ashwani26596,

    We will start by using the HP Support Assistant to check updates and drivers to see if that solves the problem. If this does not work then go to your Panel and then programs and features and uninstall the Catalyst Control Center. Then try to install the Driver for high definition Audio Intel and AMD High-Definition Audio Driver.

    Thank you

  • Problem with double FUNCTION

    Hi guys:

    I have a problem with the DUPLICATE FUNCTION.  What happens is that I have create a few BUTTONS on the stage that has been used on difference scence througth... these buttons has same action that particular point to scence page.  And that's when I found the issue of the DUPLICATE FUNCTION.

    I found that I could get out by changing the name of the FUNCTION, but as I have quite a good number of these buttons, so I really don't think not this method is handy and organized.  If anyone has a better idea how this can be solved?

    Thank you very much!

    Remove your duplicate function definitions.  There is no need of two named functions have the same name.  you only need one placed on a chassis, which plays not later than a framework where we could call this function.  That is to say, put a function named on frame 1 of the main timeline always works (so that you use the correct path of the call, if you are calling from a different timeline).

  • Pavilion dv6-2124el: problem with the volume key

    Hello

    I wanted to know if someone could help me with this question: I have just formatted my laptop and installed Win7 HP 64 bit computer and I can not anymore in order to visualize the volume HP bar on the screen. I tried to install HP Quick Play, quick launch buttons and touch fast, but it does not work. Maybe I installed wrong version? Maybe I missed another driver/software?

    How can I solve this problem?

    Thanks for reading it.

    Hello

    For your particular laptop volume on the display screen is provided by HP MediaSmart SmartMenu on the following link.  Note:  Make sure that you have installed at least 1 other MediaSmart software before installing this.

    HP MediaSmart SmartMenu

    After the installation is complete, restart the laptop.

    Kind regards

    DP - K

  • BlackBerry Z10 problems with video VOlUmE

    My videos don't seen to have the volume on my blackberry. I habe a bunch and none of them have.  also, I sent a couple and they had no picture. they were sent on wifi. does anyone else have this problem?

    I don't know what the problem was but I pulled the battery and rebooted the phone and it works fine now. Thanks for help. The video was the one who was shot with the phone, so he would have to play very well. He does now.

  • problem with esxcfg-volume on vMA 4.1

    Hello

    I am a beginner with vMA. I use vMA with ESXi 4.1 4.1.

    Vifp addservers and vifptarget - set to an ESXi, but l - or control - list esxcfg-volume return nothing!

    What have I forgotten?

    When you run vifptarget - together makes your command prompt show the appropriate host?  You should see something like this:

    \[VS-ESX01.lab.vsential.NET]$

    If you have found this helpful at all prices please points using the correct or useful!  Thank you!

  • Problem with double buttons on a form

    Hello-

    I have a single form with two buttons, currently named "Button1" and "Button2". The two buttons guide DW/php code by default to update the records in the database (in MySQL), but I want the page redirect after the update to be determined by which button was pushed.

    I use $_GET ['ButtonName"] direct action based on which button was used to send the form. Unfortunately, I can't redirect the page where I want.

    The code I use is:

    =======
    If (isset($_GET['Button1'])) {}
    $updateGoTo = "edit_onepage.php";
    } else {}
    $updateGoTo = 'account.php ';
    }
    ========

    If the user sends using Button1, I want that they passed to the 'edit_onepage.php '. If he submits using Button2, I want him sent to the 'account.php '. Unfortunately, no matter how I play with this code, the form is always to send 'account.php', whatever the button is pressed.

    Anyone can see what I'm missing here? Thanks in advance for your advice.

    Oops! Found my mistake. It works if I retrieve information button with ' $_POST ', not ' $_GET '. I'll leave this place in case someone else has a similar problem.

  • Problem with call volume

    Whenever I've make or receive a call back automatically to very low. Any volume is the phone, I could make a call to adjust the volume up. Make another call, and it remains low. So low you can barely hear anything whatsoever. It is quite frustrating. Any ideas?

    @mr_xzibit Some users on the forum reported that it is linked to facebook messenger (after having a call using this application).

  • problem with double screen bb10 gold SDK

    Hello

    I had this code works in previous versions of the sdk, but now it no longer works.

    Can someone help me understand what does not work (I got it almost like it's documentation).

    Thanks for any help you can provide,

    See you soon,.

    Fred

    Sub PlayerApp::initExternalDisplay()
    {
    int rect [4] =.
    {
    0, 0,0,0
    };

    screen_get_context_property_iv (mScreenCtx, SCREEN_PROPERTY_DISPLAY_COUNT, & miDispNb);

    If (miDispNb > 1)
    {
    screen_display_t * screen_dpy = (screen_display_t *) calloc (miDispNb, sizeof (screen_display_t));
    screen_get_context_property_pv (mScreenCtx, SCREEN_PROPERTY_DISPLAYS, (void *) screen_dpy);

    Active int = 0;
    screen_get_display_property_iv (screen_dpy [1], SCREEN_PROPERTY_ATTACHED, & active);
    screen_create_context (& mScreenCtx2, SCREEN_APPLICATION_CONTEXT);

    screen_get_context_property_pv (mScreenCtx2, SCREEN_PROPERTY_DISPLAYS, (void *) screen_dpy);

    screen_create_window (& mScreenWindow2, mScreenCtx2);
    screen_set_window_property_pv (mScreenWindow2, SCREEN_PROPERTY_DISPLAY, (void *) & screen_dpy [1]);

    use of int = SCREEN_USAGE_NATIVE;
    screen_set_window_property_iv (mScreenWindow2, SCREEN_PROPERTY_USAGE, &usage);)

    screen_get_display_property_iv (screen_dpy [1], SCREEN_PROPERTY_SIZE, rect. + 2);
    screen_set_window_property_iv (mScreenWindow2, SCREEN_PROPERTY_BUFFER_SIZE, rect. + 2);
    screen_create_window_buffers (mScreenWindow2, 2);

    screen_buffer_t screen_buf [2];
    screen_get_window_property_pv (mScreenWindow2, SCREEN_PROPERTY_RENDER_BUFFERS, (void *) screen_buf);
    screen_get_display_property_iv (screen_dpy [1], SCREEN_PROPERTY_SIZE, rect. + 2);

    int [] = bg
    {
    SCREEN_BLIT_COLOR, 0XFF0000FF, SCREEN_BLIT_END
    };
    screen_fill (mScreenCtx2, screen_buf [0], bg);

    screen_post_window (mScreenWindow2, screen_buf [0], rect, 1, 0);

    Free (screen_dpy);
    }
    }

    Found the problem.

    The code works well, but the memory was a mess because of a cursor qml problem...

    Have yet to the bottom of this, but this code works very well.

    Fred

  • Problem with double direction scrolling pages

    I am trying to load two pieces of identification as an article for a DPS Folio.

    A single document 'xx_h.indd' which is 1024W x 1060 H, the other 'xx_v.indd' which is 768W x 1200 H.

    When I try to download the two orientation by Folio Builder > add article, then select 'Import the multiple items' and the folder that contains the two files, I get a warning:

    Error generating content.

    Cannot find the files to be imported as an article.

    If I import items open the _it is imported as an article of portrait.

    I managed with that for the other items of the folio where article landscape has less than 1024 px height.

    I thought about it, I have a Smooth Scrolling put vertically, not both Directions. I thought that the page will scroll vertically, a poor understanding of the menu setting. Thanks anyway.

  • Problem with double-button Flash CS4... help!

    I'm relatively new to Flash... I'm trying to understand this.

    I button1_btn on a frame at the beginning of this animation, and on this image I add script:

    button1_btn.addEventListener (MouseEvent.CLICK, showimage1);

    function showimage1(event:MouseEvent):void {}

    gotoAndPlay("image1");

    }

    It works fine, but I also have other buttons that ends up taking a different picture where this button is not on.  So I add to the scene in this framework and assume it will be gotoAndPlay("image1") again when you click it, but when I test the movie and click the image later, nothing happens.

    I tried maybe add the original script in that frame as well, but then I test and it said I have duplicated the script and does not work.

    Why the original script works for this button, no matter where and when it manifests?  It's the same key basically, no?

    Help, please!

    Any instance of an element that you add must be in the presence of some code works with it.  So if you add a new instance in a new keyframe, it doesn't have that the original code is awarded because this code has been assigned a time where this code and the original instance is back.

    A way around this is to use the visible property to hide the button when you do not want to show, but keep its continued presence by keyframes in the timeline.  Another way is to give the button a new name and code proceeding where on the timeline.

  • problem with a volume of disk in asm diskgroup.

    Hi all

    When I run a command.

    Select mount_status, mode_status, road to v$ asm_disk;

    I'm getting
    for disk_number 2 AS mount_status, mode_status as offline and there is no entry in the path column.


    Please let me know the solution to do this, iwant to do is normal.

    Published by: varun4dba on November 8, 2010 12:55

    Hello

    http://download.Oracle.com/docs/CD/B14117_01/server.101/b10755/dynviews_1018.htm

    Thank you

Maybe you are looking for

  • macOS Sierra broke such automount NAS when connecting

    Using a script, Automator action or via 'Elements User/Login' sharing NAS automount when the connection requires * manual * confirmation of username/password to succeed Not a big deal (just a bad and useless nuisance) on my MBP. But a real PITA on my

  • follow all the numbers listed entirely

    Hello in the column on the left side of the iTunes window where it shows for example that number piece is played in a particular selection, on my mac, not every number is registered. Before each issue was the show in its entirety, after that I must h

  • captha words are very unclear

    In the last 2 days, the 2 words of captha became very blurry.  1 Word is very blurry and I have to guess the alphabits including the words and the other Word is clear.  Before 2 days ago, the two words were always clear I've used 11 adaware and malwa

  • keyboard some keys not responding do not

    some buttons will not respond Toshiba p200d/p205dc n h k xno error msgw / all the appsNo changes prior to the issuance I contacted toshiba support. has been advised to have cleaned keyboard. went to office depot. They cleaned keyboard but said looked

  • Filter the SSH access to Cisco ASA from the Internet

    Hello I have ASA 5520 with 'inside' in local network interface and the interface 'outside' in the face of the internet. There are line ssh 192.168.0.0 255.255.0.0 inside for the ASA to LAN access. And deny a rule for incoming traffic on the 'outside'