How to rename a data via command store during automatic installation

Hi, the automatic installation of my servers esx and post script exec I wan't to rename the local data store to esx 3.5. I tried to find a solution here in communities and also tried the following commands

  • vimsh - n e "datastore/hostsvc / / rename oldname newname.

  • VMware-vim-cmd hostsvc/datastore/rename oldname newname.

but nothing happens when I use these commands and I get no error message.

Anyone know what I am doing wrong and how can I rename local warehouses of data via command line?

Thankx

Frank

We have a set of post scripts that are executed after the first reboot after the construction, by default the local data store must be named storage1

You can do the following:

ln -sf $(readlink -f /vmfs/volumes/storage1)  /vmfs/volumes/$(hostname -s)-local-storage

or of any naming convention you want

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

William Lam

VMware vExpert 2009

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

Tags: VMware

Similar Questions

  • How to protect your data in the laptop during the trip?

    I need to travel for business and would like to know how to protect my data correctly within the laptop.

    Requirement:

    My laptop will run the program automatically according to the schedule every day, so any password will not be possible for my daily routine.

    Moving between offices, I don't mind to put any password in the middle of the road, so in case my laptop is stolen, my data is protected, and I can't data cleaning in my laptop over the internet, if someone tries to access the internet using my laptop.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hi oem7110,

    Thanks for posting this question in the Microsoft Community.

    You can use the drive encryption BitLocker to protect all files stored on the drive Windows is installed on (operating system drive) and on data drives (for example, internal hard drives). Your can use BitLocker To Go to help protect all files stored on removable data drives (such as external hard drives or USB flash drives).

    Also check out this link:

    Protect your files using BitLocker Drive encryption

    http://Windows.Microsoft.com/en-in/Windows7/help-protect-your-files-using-BitLocker-Drive-encryption

    Hope that information was useful and let us know if you need help in the future about Windows. We will be happy to help you.

  • How to rename a data warehouse space

    Hello

    I had to adjust my names of LUN space reserved to the company names naming standard. I did it on the level of vsphere, but MRS. (5.5) can still see the old names.

    Restarting the service did not help.

    Should I remove and re-add? Maybe I should return the names above and then delete/rename and add?

    Much appreciated, regards suspicion.

    Hello

    Please remove and re-add to reflect the new data store names. Note that the new name appears in the placeholder add datastore.

    Kind regards

    Nik

  • How to add a license via command line for C60 key

    Could someone remind me what the command would be to add a license key via the command line interface?  I want to downgrade the software and it was initially delivered with version TC7.

    Hello Douglas.

    Here are the commands:

    xCommand SystemUnit OptionKey Add Key(r):

    xCommand SystemUnit ReleaseKey Add Key(r):

    You can also enter them via the web interface by going to the maintenance > Software Upgrade.

  • How to recover the date via a funtion

    Hi all
    I have a table as below

    I need to get the M_RATE for the date that the user will enter, if the date is not in the table, must take the closest more M_RATE of the date (ex: If 23/06/2012 is not there I need to take the rate of 22/06/2012)

    DATE_RATE M_RATE
    29/06/2012 133.500000
    28/06/2012 133.500000
    27/06/2012 133.750000
    26/06/2012 132.900000
    25/06/2012 133.000000
    22/06/2012 133.000000
    21/06/2012 133.000000
    20/06/2012 132.800000
    19/06/2012 132.550000
    18/06/2012 132.350000
    15/06/2012 131.800000
    14/06/2012 132.000000
    13/06/2012 131.700000
    06/12/2012 132.500000
    06/11/2012 131.750000
    06/08/2012 130.400000
    06/07/2012 130.250000
    06/06/2012 130.200000
    06/05/2012 130.600000
    06/01/2012 132.400000
    31/05/2012 132.000000
    30/05/2012 132.250000
    29/05/2012 132.000000
    28/05/2012 131.250000
    25/05/2012 131.000000
    24/05/2012 130.900000
    23/05/2012 130.000000
    22/05/2012 129.750000
    21/05/2012 130.000000
    18/05/2012 129.750000
    17/05/2012 129.250000


    I tried the way below, but could not get the desired result, pz help


    CREATE or replace function f_ex_rat_isu
    (
    ex_date by date

    )
    RETURN number
    is

    rate number: = 0;
    in_date date: = ex_date;

    cursor ex_rat is
    Select distinct
    e.date_rate,
    e.m_rate,
    Chard to_char (e.date_rate, 'MMDDYYYY')
    of e exch_rat

    where e.currency_code = 2

    order by
    e.date_rate desc;


    Start

    for x in ex_rat loop
    If (x.chard = TO_CHAR (in_date, 'mmddyyyy')) then
    rate: = x.m_rate;
    If (rate = 0) then
    in_date: = (in_date-1);

    end if;

    end if;
    end loop;




    Rate of RETURN;

    end;
    create or replace function f_ex_rat_isu
    (
      ex_date in date
    )
    return number
    is
      rate number :=0;
      closest_date date;
    begin
      -- Step 1: find closest date:
      select min(date_rate) keep (dense_rank first order by abs(date_rate-ex_date))
      into closest_date
      from exch_rat;  
    
      -- Step 2: get the m_rate for that date:
      select m_rate
      into rate
      from exch_rat
      where date_rate=closest_date;
    
      return rate;
    end;
    

    The function above will use the line with the lower date, when the parameter is exactly beween to give dates (for example: 06/03/2012).
    If you prefer the higher date, you will need to change select step 1:

    create or replace function f_ex_rat_isu
    (
      ex_date in date
    )
    return number
    is
      rate number :=0;
      closest_date date;
    begin
      -- Step 1: find closest date:
      select max(date_rate) keep (dense_rank first order by abs(date_rate-ex_date))
      into closest_date
      from exch_rat;  
    
      -- Step 2: get the m_rate for that date:
      select m_rate
      into rate
      from exch_rat
      where date_rate=closest_date;
    
      return rate;
    end;
    

    Published by: hm on 08.07.2012 23:30

  • How can I transfer OR-MAX configuration files during the installation of the application?

    I install my application on a PC that has no software EITHER.  The installation installs LV Run-Time and NO-DAQmx, OR MAX, but MAX configuration is the default value.  I use a USB DAQ.  I know that I can export the correct MAX configuration file but I don't know where to put it on the PC so that he sees MAX.

    Thank you.

    If you choose to include the harware config when you create the installation program, then you do not have to worry where it is placed and during the installation process, MAX on the new pc will attempt to import it

    If you want to manually copy the configuration on the new pc, put it anywhere you want. You must use the file > import the max function in order to use the new configuration.

  • How to fix error code 0 x 643 during update installation Microsoft. NET Framework 3.5 Service Pack 1

    I am trying to install the Microsoft Update(Windows XP) Microsoft. NET Framework 3.5 Service Pack 1 and maintain it, getting a message error code 0 x 643. Is there a solution to this problem? Help, please...

    See if this sugesstion can help you:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/4a6ea38b-9104-4547-8802-bc94bb6127a9 >

    04/05 / 1110:55: 33 am

  • Rename local data warehouses of ESXi host

    Hello

    How to rename local data warehouses of 5.0 ESXi hosts.

    Is it simple; Vsphere Client > right click on the local data store > rename?

    Or host must be in maintenance, or reduced, something like that?

    Thank you

    Mihir

    The ESXi host internally uses the data UUID store rather than its "friendly" name

    Example: / vmfs/volumes/3dfd1a21-63969d0d-8d9b-004328272635 /.

    That is why - as mentioned in the other responses - rename a datstore can be done at any time without affecting the functionality.

    André

  • of MSHS - cannot rename the data files

    I have a MSHS (encryoted MSH) - 5 last lines in this script - I have a command shell that renames the data files. for example

    Shell ren f:\data\abc_morning.txt abc_20100912_morning.txt
    Shell ren d:\data\def_afternoon.txt abc_20100912_afternoon.txt
    Shell ren t:\data\abc_evening.txt abc_20100912_evening.txt

    These commands work fine in the MSH script, but get the "File not found" error in file MSHS. Has anyone else ran into this problem?

    MSHS command also asked how to rename the data files as Shell REN does not work?

    It's really simple:

    MSH scriptname.msh

    That's all.

    Kind regards

    Cameron Lackpour

    Edited by: CL, Sep 13, 2010 16:37
    Adding an extension to the scriptname.

  • How to rename the configuration files store data with downtime

    HI team

    I've renamed the vcenter client name. How to rename the configuration also files in data store with to take the time to stop.

    you have renamed virtual machines, and now you want to also rename the config files (vmdk, vmx and so on)?

    Just do a storage vmotion and the files will be automatically renamed...

  • data via sql dev store

    Hello
    I've given cluster and can store files and it is clustering ID in the new database using the ODM. I group these data via SQL dev. Oracle again but I'm not for any folder for the storage of cluster ID. How do I? can I put something in response or detail node?

    Hi Nasiri,
    In your description, you have only the Cluster node as entry in the node to apply it. You should also connect a node type of source of data as well. Just to get this to work, why not connect the source of input data to your Cluster node to the node to apply it. If the node to apply it should have 2 inputs, a node of type of data source, but also a model node.
    Thank you, Mark

  • How to add a data center on the virtual center via VI client server?

    How to add a data center on the virtual center via VI client server?

    I formatted ESX server & ESX Server Update installed keeping the data center on the storage (of many desktop computers)

    Now I have fresh installed a new server of virtual & added the ESX Server, but I'm unable to reattach existing data centers on storage.

    What will be the way to import of existing data on server Center virtual center?

    Help, please...

    Is ' VMware-VMimporter - 2.0.0 - 30557 "is the software through which I can solve my problem?

    You need to browse each data store, go to the folder of the virtual machine, right-click on the *.vmx file and add it to your inventory.

    Andrea

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • How to create several data on local storage scsi stores

    Hi all

    If you have a host ESX 3.5 local scsi storage with how you create multiple data warehouses. I would like to create 2 data warehouses. One for my virtual machine and one for my ISO. I tried 2 partitions VMFS3 partitioning at the time of the creation of ESX but when I remove the storage to rename it it only allow me to create 1 data store? Is this possible?

    Is there a downside to simply create a folder in 1 ISO called data store and empty my iso files it?

    I would also like to point out that I have only 1 raid controller

    you will need to manually partition the free space of the Service Console using fdisk.

    If its only for a store, I wouldn't bother.

    Just create a folder like you said yourself, without inconveniences, except that you have to watch out you don't fill your data with the ISOs and other stuff store.

  • How to make my computer send all audio data via an optical audio cable instead of making headphones?

    Howdy,

    To listen to the radio online or CD played from my computer, I used to connect the computer to my entertainment system at home since the headphone jack of the computer to the port on my home entertainment system.

    Now, I wanted to get a better sound and bought the optical audio cable. However, I don't know how to tell my computer to send the audio signal to the system entertainmeny home via digital cable optical, rather than by the headphone. If I just disconnect the cable between the headphone and the port to THE and have only the PC and the system connected with the optical audio cable, I can't hear any sound. I suspect that the computer is not sending the data through the optical audio port. I'm not able to figure out how I can adjust the settings on my computer so that, from now on, all sounds are emitted through the optical audio.

    (1) I want to do it especially for my desktop HP (configuration below) and advice on how to do this would be appreciated.

    (2) I also have a HP laptop (configuration below) and I was wondering if this would be feasible too (even if she does not have an audio output, but it has an HDMI output - you can convert audio optical?)

    Thanks in advance!

    My office is:

    WANT to h8xt,
    • Windows 8 64
    • 3rd generation Intel (r) Core processor quad-core i7-3770 [3.4 GHz, 8 MB of shared cache]
    • 12GB DDR3 1333 MHz SDRAM [3 DIMMS]
    • 1 TB 7200 RPM SATA hard drive
    • No secondary hard drive
    • 1 GB AMD Radeon HD 7570 [DVI, HDMI, DP, VGA adapter]
    • 300W power supply
    • DVD SuperMulti burner
    • LAN wireless-N (1 x 1) card
    • 15-in-1 reader cards, 2 USB 2.0 (front), 2 USB 3.0 (top)
    • No additional desktop software
    • No additional security software
    • No TV Tuner
    • Beats Audio (tm) - a built-in studio quality sound
    • HP USB volume control keyboard and mouse with Win 8 keyboard
    • Adobe Premiere Elements and Photoshop Elements 10

    And the laptop:

    HP ENVY 15t Quad

    Hello @_goma,.

    Welcome to the HP Forums, I hope you enjoy your experience!

    I read your post about how you want to send all the audio data via an optical audio cable instead of the headphone jack of your computer, and I'd be happy to help you in this case!

    To configure your desktop computer to activate the optical audio cable, I advise you to follow the steps below:

    Step 1. Click on the button of the Windows key on your desktop

    Step 2. Type "Control Panel."

    Step 3. Select "Control Panel" in the upper right corner

    Step 4. Select sound

    Step 5. On the Read tab, right click on the white box under available devices

    Step 6. Select "Show disabled" and "show disconnected devices".

    Step 7. Connect your Audio optical cable

    Step 8. Select your cable Audio perspective as the default device, and click 'enable '.

    Because it is not possible to convert the audio output HDMI output on your laptop, it is regrettable that the laptop is not able to connect with an optical audio cable.

    Please re-post with the results of your troubleshooting, and I look forward to your response!

    Concerning

  • How is it you Tube RED is 12.99 via iTunes store but 9.99 elsewhere? I will not pay 12.99 per month when it is out there for 9.99.

    How is it you Tube RED is 12.99 via iTunes store but 9.99 elsewhere? I will not pay 12.99 per month when it is out there for 9.99.

    CarCarJ,

    Multiple subscriptions are greater through the iTunes Store when bought directly.  It's probably to compensate for the commission who runs the store.

    You must of course purchase at anywhere where you feel has the best offer.

Maybe you are looking for