How to navigate the data warehouses to run vmkfstools

I am a huge n00b at VMAs, vCLI, PowerCLI, etc..

I'm trying to clone a virtual machine using ESXi. I have installed vMA and I already added to my server through vifpadd server and I already have vifpinit on my server. But I don't know what's next? How to view my data stores so I can run a-i against my VM vmkfstools?

Thank you

There are many ways to 'Browse', some of the default scripts canned are not the best but you can basically get you for example need to locate the VMDK (s) of a virtual machine if you already know the data store or the host.

Take a look at /usr/lib/vmware-vcli/apps/host/dsbrowse.pl

With the remote version of the vmkfstools, the arguments of the command for the VMDK are slightly different and not what you would be used to fi you worked only with classic Service Console vmkfstools. Within the VMware API defines a path by using the following format:

folder/anotherfolder/anotheranotherfolder \[datastore_name\]

So, to make it more concrete, allows that we have datatstore1 and datastore2 and we have a virtual machine named 'myvm' and he lives on datastore1 and there 1 vmdk named 'myvm.vmdk' and 'myvm - flat hard. " Now you want to copy VMDK myvm to datastore2 and a folder "virtualmachines/myvm-clone".

Now if you went on your ESX or ESXi host, you will see the following for 'myvm"on datastore1

/vmfs/volumes/MyVM/MyVM.vmx

/vmfs/volumes/MyVM/MyVM.VMDK

/vmfs/volumes/MyVM/MyVM-flat.VMDK

.. .etc

Now to copy real vmkfstools using the vCLI:

"[vmkfstools-i \[datastore1\] myvm/myvm.vmdk d thin \[datastore2\] virtualmachines/myvm-clone/myvm-clone.vmdk.

* The assumption is that the "virtualmachines/myvm-clone" subdirectory exisats and again, manipulation of the file system can be done using sharp also well documented by Dave Mischenko to http://www.vm-help.com/esx/esx3i/esx_3i_rcli/vifs.php

Once again, it should be well documented in the vCLI guide and canned the additional scripts can be found here: http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vsperl_util_index.html

I wrote also a collection of scripts using the vSphere SDK for Perl which is what the vCLI is written that provides additional automation and we hope to improve what exists in the vSphere API through these scripts that are non-PS: repository of scripts vGhetto

If I ask that you spend time going through the documentation, once you understand how it works, it's pretty simple to use, Yes, it's not clean and some things may be curious of what some, but hopefully the repository I created will be help in any feature/functions missing in all default canned scripts. The main point that I want to drive a lot of people may not understand is, what you can make in vSphere client against a host ESX (i) OR PowerCLI or VI Java can also be done with vSphere SDK for Perl, it may not all be created within the vCLI, but that's all using the same API exposed , it's just how is pulled up and I have to give him the PS guys, they did a good job of that and therefore the ease of use and understanding.

I hope this clears up things and let me know if you have more questions.

=========================================================================

William Lam

VMware vExpert 2009

Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

Twitter: @lamw

repository scripts vGhetto

Introduction to the vMA (tips/tricks)

Getting started with vSphere SDK for Perl

VMware Code Central - Scripts/code samples for developers and administrators

VMware developer community

If you find this information useful, please give points to "correct" or "useful".

Tags: VMware

Similar Questions

  • Need to reset the Data Warehouse

    Hello

    I need to reset the data warehouse so that I can start my first ETL process. However, I am not able to do DAC customer worm 7.9.5. When I click on 'Tools'-> 'management of ETL"->"Reset Data Warehouse"nothing pop up to do not know why, all other links and windows opens, with the exception of this. How can I solve this problem?

    Is it possible for me to do the reset manually?

    I checked on the internet and found AS below: -.

    D4 how do you run a full load (incremental)
    A: reset DataWarehouse. Just truncate the table S_ETL_REFRESH_DT in the repository of the dac

    So in our case, to truncate table will then be W_ETL_REFRESH_DT rite? Please confirm. We have planned to operate the ETL at 18:00 today.
    Y at - it all the other tables I need to truncate this way?

    Thank you
    Saran.

    Hello

    I worry if this window does not work correctly, you should probably work out why, I use 1.5.0_17 jdk in our environments (with apps 7.9.5) and that works fine, I suggest to try another version of the JDK and see if that fixes the problem.

    Kind regards

    Matt

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • How to stop the date of update when I opened the old correspondence

    I asked this question two years when I had XP. I'm now running Windows 7. The answer I received before does not work now.

    Hi Kerisis,

    1. What do you mean by "how to stop the date of update when I opened the old correspondence?

    2 edit. you and save the document?

    Answer us with more information for you help.

    Also see this link for suggestions for a question on the help forums
    http://support.Microsoft.com/kb/555375

    Kerisis, when you open a document, make a few changes, save it, date will be automatically updated. However, creation date won't change. You can check this by clicking on the file, select Properties, on the general tab, you will find the dates of access created, modified.

  • How to subtract the DATE CURRENT SYSTEM and tire of Siebel

    Hi Experts,

    How to subtract the date of DAY and Date, which came in Siebel?

    Example:
    The DAY - Date records in Siebel

    Current date = 25/11/2012
    Registration date in Siebel = 20/11/2012

    Technically the answers I want will be 5.
    How can I do this? My idea is to put a phrase in the MDB layer, but I want to just get your ideas:

    Current_Date - "Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" TABLE_NAME ". "' COLUMN_NAME '.


    Thank you!

    Hello

    You can use the available in OBIEE timestampdiff function to get the difference between two dates. This is one of the blogs that can help with the syntax.

    http://Shahin-OBIEE.blogspot.in/2012/04/various-calculations-for-date_16.html

    You can also google timestampdiff function for details on usage and syntax.

    Thank you

  • Mode of the database for the data warehouse

    I am running Oracle 10 g 2 on solaris 5.10.

    The recommendation that the data store database must be running in dedicated mode is right?

    concerning

    long-running queries are unsuitable for shared server mode because duration long query will block the shared server and reduce the number of shared servers available.
    Data warehouses usually run long-running queries.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • How to reset the data counter without resetting the phone

    How to reset the data counter each month so that I can control my data counter with our reset the phone (or) without using factory data reset.

    Thanks for the reply much appreciated.

    Parameters

    Data Manager

    Press the lower left key

    Reset the data counter

  • How to save the data in table 1 d to Excel in continuous

    Mr President.

    How to save the data in table 1 d to Excel at all times, so that all the data of the first scan must be placed first thought and all the data from the second analysis must be placed on the second Board and continue on the street...

    Sy@m...

    Hi Sy@m

    Here is a vi that might give you a few ideas to try:

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to analyze the data of the cDAQ and Signal Express, especially after analysis?

    In the first series of tests of my instrument, it took longer than expected for the race.  Thus, the data was saved in 6 days.  The file is too large for export to Excel.  At the beginning of the project, I was as ignorant as I could go ahead and add analysis and the scaling of measures.  By the scaling, I mean my data of switching current dew points or whatever it is that I record.

    How to evolve the data to read the output data as expected 4mA = point of dew of-20 C or 0 PSIG?  Can I pre program this to be recognized for each event?

    For real analysis I am doing – I would first analyze the data I recorded and choose different points to send to Excel to graph and analyze.  Is this possible?

    Secondly, I would like to know how to scale and analyze my data in the project without having to do this later analysis in the future?

    I have a cDAQ-9172 with LabVIEW signal Express 3.0 that uses four modules - 9211 2 modules of thermocouple, my 4-20 1-9201 module +/-10V module and 1-9203.

    Thank you for any assistance.

    Hi Patricia,

    "' You can do this by adding a step Load/Save signals ' analog '.  I hope this helps!

  • How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    Hello

    I'm trying to follow the steps described in the following link:

    How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    It is said

    The software on the target currently supports only the time zoneand deletes the old files?

    I need set the date and time

    and remove all the old unwanted files

    the calendar was gray does not allow me to change the current date.

    Anyone know how to change

    Hi all!

    According to this the below Knowledge Base article, Remote Configuration System Support must be installed on the target for time settings to change in MAX.

    http://digital.NI.com/public.nsf/allkb/FAB0EC4D6E5EE0F386257738005733A3?OpenDocument&MeTC=max_MAXDat...

    If you don't know what version of the system supported remote Configuration software that you have installed on your device target, it is likely that it is not yet installed. Add this software by clicking below your target to the MAX software option and selecting "Add/Remove Software". This is where you will install the System Configuration Remote Support software.

    Please let us know if you have any questions!

Maybe you are looking for