OK to remove the mapping of RDM?

I need to cold migrate some virtual machines with virtual RDM mode on new servers. I'll introduce the RDM with different numbers of LUNS on the target hosts. My co worker suggests that when you remove the ROW before the migration of the cold, you can not delete the mapping file, otherwise this will cause data corruption, so it selects the removal of the option of vm (not remove and delete).

My understanding is the file ROW is just a mapping file and is safe to delete. My thought is that delete saves space and accelerates the migration time.

RDM files can simply be removed without data corruption?, most vmware articles suggest they can and they're just mapping files.

When the virtual machine allows you new hosts, a new virtual RDM will be added when the lun is presented to the new hosts.

Yes, you can delete the ROW with removal of the VM disk option before the migration of the cold.

It won't cause any data corruption that all data is on LUN storage.

RDM file contain only for the LUN mapping information.

Once you have completed the migration of VM, you can add RDM LUN to VM, just make sure that you attach Correct RDM LUN to VM.

See this KB for more information-

VMware KB: Switching between physical and virtual compatibility modes in ESX/ESXi, a mapping of raw data

Tags: VMware

Similar Questions

  • RDM to delete and recreate the mapping of RDM file and fix

    Hello

    I wrote the following script, but it works fine except it does not create the mapping of RDM file.

    If I comment out the following lines, it works fine.

    $fileMgr.DeleteDatastoreFile_Task ($name, $datacenter)

    $spec.deviceChange [0] .fileOperation = "crΘer".

    Here is the code below

    Replace-VM-RDM function {}

    Param ($scsiid, $rdmname, $vmname, $filename)

    < #.

    Convert SCSI address in Vmware format

    # >

    $scsicontroller = $null

    $scsiid_split = $null

    $scsiid_split = $scsiid.split(":")

    $scsicontroller =($scsiid_split[0])

    # SCSI VMware in the GUI controller ID is a number greater than the real controller id

    $scsicontroller = [int] $scsicontroller + 1

    # Vmware waiting conntroller with 4-character id

    $scsicontroller =($scsicontroller.) (ToString()) + "000".

    $scsicontroller

    # SCSI LOGICAL UNIT NUMBER

    $scsilun = $null

    # VMware SCSI LUN ID in the GUI is a higher number than the id real lun

    $scsilun = [int]($scsiid_split[1]) #+ 1

    ###

    $vm = get-VM-name '$vmname ' | Get-View

    IF (!) (($filename))) {}

    $RDMFile = $rdmname.split("") [0] + "_RDM.vmdk"

    $filename = (($vm.)) (Config.Files.VmPathName). Replace("$vmname.vmx","$RDMFile"))

    }

    $esx is get-view $vm. Runtime.Host

    < #.

    Download CanonicalName RDM Lun

    # >

    $rdmCanonicalName = $null

    $rdmCanonicalName = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). CanonicalName)

    $rdmDevicePath = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). DevicePath)

    foreach ($dev in $vm. Config.Hardware.Device) {}

    If (($dev.)) GetType()). {Name - eq "VirtualDisk")}

    If (($dev.Backing.CompatibilityMode-eq "physicalMode") - or)

    ($dev.Backing.CompatibilityMode-eq "virtualMode")) {}

    If (($dev.)) ControllerKey - eq "$scsicontroller") - and ($dev. UnitNumber - eq "$scsilun")) {}

    # Remove the hard drive

    $hd = get-disk hard $vm.name | where {$_.} Filename - eq $dev. Backing.FileName}

    $hd | Remove-hard drive - confirm: $false

    Write-Host "file name:" $dev.backing.fileName "

    Write-Host "Disk Mode:" $dev.backing.diskMode

    $dev.backing.deviceName

    $dev.backing.lunUuid

    $DevKey = $dev.key

    $CapacityInKB = $ dev. CapacityInKB

    $fileMgr = get-View (view Get ServiceInstance). Content.fileManager

    $datacenter = (get-View (Get - VM $VMname |)) Get-Datacenter) USER.USER) .get_MoRef)

    foreach ($disk in $vm. LayoutEx.Disk) {}

    if($Disk.) Key - eq $dev. Key) {}

    foreach ($chain in $disk. {String)

    foreach ($file in $chain.) FileKey) {}

    $name = $vm. LayoutEx.File [$file]. Name

    $fileMgr.DeleteDatastoreFile_Task ($name, $datacenter)

    }

    }

    continue

    }

    }

    }

    }

    Else if (($dev.)) ControllerKey - eq "$scsicontroller") - and ($dev. UnitNumber - eq "$scsilun")) {Write-Host "Selected SCSI address [$scsiid] is not a RDM"}

    }

    }

    #$hd1 = New-disk hard - VM $vmname - DeviceName $rdmDevicePath - DiskType RawPhysical # this line works

    $spec = $null

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.deviceChange = @)

    $spec.deviceChange += new-Object VMware.Vim.VirtualDeviceConfigSpec

    $spec.deviceChange [0] = new-Object VMware.Vim.VirtualDisk .device

    $spec.devicechange [0].device.capacityInKB = $CapacityInKB

    $spec.deviceChange [0].device.backing = new-Object VMware.Vim.VirtualDiskRawDiskMappingVer1BackingInfo

    $spec.deviceChange [0].device.backing.fileName = $filename

    $spec.deviceChange [0].device.backing.compatibilityMode = "physicalMode".

    $spec.deviceChange [0].device.backing.diskMode = «»

    $spec.deviceChange [0].device.backing.lunUuid = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). UUID)

    $spec.deviceChange [0].device.connectable = new-Object VMware.Vim.VirtualDeviceConnectInfo

    $spec.deviceChange [0].device.connectable.startConnected = $true

    $spec.deviceChange [0].device.connectable.allowGuestControl = $false

    $spec.deviceChange [0].device.connectable.connected = $true

    # Take the next unused volume for HD key

    $spec.deviceChange [0].device.key = $DevKey + 1

    # 7 SCSIID UnitNUmber is reserved for the controller - then go to 8.

    If ($scsilun - eq 6) {$scsilun = $scsilun + 1}

    # Take the next unit for the HD number

    $spec.deviceChange [0].device.unitnumber = $scsilun

    # Key device for the SCSI controller

    $spec.deviceChange [0].device.controllerKey = $scsicontroller

    # Create vmdk file

    $spec.deviceChange [0] .fileOperation = "crΘer".

    $spec.deviceChange [0] .operation = 'Add '.

    $vm = get - View (Get - VM $VMname) USER.USER

    $vm. ReconfigVM_Task ($spec)

    }

    Replace-VM-RDM $vmname $scsiid $rdmname $filename

    I am working, it just need to reorganization and then the Devicename was wrong.

    Here's the script working.

    Replace-VM-RDM function {}

    Param ($scsiid, $rdmname, $vmname, $filename)

    <>

    Convert SCSI address in Vmware format

    #>

    $scsicontroller = $null

    $scsiid_split = $null

    $scsiid_split = $scsiid.split(":")

    $scsicontroller =($scsiid_split[0])

    # SCSI VMware in the GUI controller ID is a number greater than the real controller id

    $scsicontroller = [int] $scsicontroller + 1

    # Vmware waiting conntroller with 4-character id

    $scsicontroller =($scsicontroller.) (ToString()) + "000".

    $scsicontroller

    # SCSI LOGICAL UNIT NUMBER

    $scsilun = $null

    # VMware SCSI LUN ID in the GUI is a higher number than the id real lun

    $scsilun = [int]($scsiid_split[1]) #+ 1

    ###

    $vm = get-VM-name '$vmname ' | Get-View

    IF (!) (($filename))) {}

    $RDMFile = $rdmname.split("") [0] + "_RDM.vmdk"

    $filename = (($vm.)) (Config.Files.VmPathName). Replace("$vmname.vmx","$RDMFile"))

    }

    $esx is get-view $vm. Runtime.Host

    <>

    Download CanonicalName RDM Lun

    #>

    $rdmCanonicalName = $null

    $rdmCanonicalName = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). CanonicalName)

    $rdmDevicePath = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). DevicePath)

    foreach ($dev in $vm. Config.Hardware.Device) {}

    If (($dev.)) GetType()). {Name - eq "VirtualDisk")}

    If (($dev.Backing.CompatibilityMode-eq "physicalMode") - or)

    ($dev.Backing.CompatibilityMode-eq "virtualMode")) {}

    If (($dev.)) ControllerKey - eq "$scsicontroller") - and ($dev. UnitNumber - eq "$scsilun")) {}

    # Remove the hard drive

    $hd = get-disk hard $vm.name | where {$_.} Filename - eq $dev. Backing.FileName}

    $hd | Remove-hard drive - confirm: $false - DeletePermanently

    Write-Host "file name:" $dev.backing.fileName "

    Write-Host "Disk Mode:" $dev.backing.diskMode

    $dev.backing.deviceName

    $dev.backing.lunUuid

    $DevKey = $dev.key

    $CapacityInKB = $ dev. CapacityInKB

    <#$fileMgr =="" get-view="" (get-view="">

    $datacenter = (get-View (Get - VM $VMname |)) Get-Datacenter) USER.USER) .get_MoRef)

    foreach ($disk in $vm. LayoutEx.Disk) {}

    if($Disk.) Key - eq $dev. Key) {}

    foreach ($chain in $disk. {String)

    foreach ($file in $chain.) FileKey) {}

    $name = $vm. LayoutEx.File [$file]. Name

    $fileMgr.DeleteDatastoreFile_Task ($name, $datacenter)

    }

    }

    continue

    }

    }#>

    }

    }

    Else if (($dev.)) ControllerKey - eq "$scsicontroller") - and ($dev. UnitNumber - eq "$scsilun")) {Write-Host "Selected SCSI address [$scsiid] is not a RDM"}

    }

    }

    #$hd1 = New-disk hard - VM $vmname - DeviceName $rdmDevicePath - DiskType RawPhysical # this line works

    $spec = $null

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.deviceChange = new-Object VMware.Vim.VirtualDeviceConfigSpec [] (1)

    $spec.deviceChange [0] = new-Object VMware.Vim.VirtualDeviceConfigSpec

    # Create vmdk file

    $spec.deviceChange [0] .fileOperation = "crΘer".

    $spec.deviceChange [0] .operation = 'Add '.

    $spec.deviceChange = new-Object VMware.Vim.VirtualDeviceConfigSpec [] (1)

    $spec.deviceChange [0] = new-Object VMware.Vim.VirtualDeviceConfigSpec

    $spec.deviceChange [0] .operation = 'Add '.

    $spec.deviceChange [0] .fileOperation = "crΘer".

    $spec.deviceChange [0] = new-Object VMware.Vim.VirtualDisk .device

    $spec.deviceChange [0].device.key = - 100

    $spec.deviceChange [0].device.backing = new-Object VMware.Vim.VirtualDiskRawDiskMappingVer1BackingInfo

    $spec.deviceChange [0].device.backing.fileName = "$filename".

    $spec.deviceChange [0].device.backing.deviceName = (($esx.)) Config.StorageDevice.ScsiLun | where {$_.} DisplayName - eq $rdmname}). DevicePath)

    $spec.deviceChange [0].device.backing.compatibilityMode = "physicalMode".

    $spec.deviceChange [0].device.backing.diskMode = «»

    $spec.deviceChange [0].device.connectable = new-Object VMware.Vim.VirtualDeviceConnectInfo

    $spec.deviceChange [0].device.connectable.startConnected = $true

    $spec.deviceChange [0].device.connectable.allowGuestControl = $false

    $spec.deviceChange [0].device.connectable.connected = $true

    # Key device for the SCSI controller

    $spec.deviceChange [0].device.controllerKey = [int] $scsicontroller

    # 7 SCSIID UnitNUmber is reserved for the controller - then go to 8.

    If ($scsilun - eq 6) {$scsilun = $scsilun + 1}

    # Take the next unit for the HD number

    $spec.deviceChange [0].device.unitnumber = [int] $scsilun

    $spec.deviceChange [0].device.capacityInKB = [int] $CapacityInKB

    $vm = get - View (Get - VM $VMname) USER.USER

    $vm. ReconfigVM ($spec)

    }

    Replace-VM-RDM $vmname $scsiid $rdmname $filename

  • New hard disc RDM - selection of the mapping of rdm file creation

    Hi all

    I am trying to automate the creation of new RDM disks for virtual machines.

    Watch us row map separately files on a data store named, here is the sequence of orders.

    1. because I can't find the PoweCLI method to create the mapping of RDM file, I use vmkfs as below:

    vmkfstools - z/vfms/devices/disks/naa. XXXX01 /vmfs/volumes/clustername/SharedDisk/hostname/disk1.vmdk

    2. now, we have the mapping of rdm file, I would like to create a new physical disk RDM.

    New-harddisk - Contorller $controller DiskType - RawPhysical - DeviceName ' / vfms, devices, disks, naa.» XXXX01"- vm $vm

    However, this creates a new mapping file. I don't see how I can use the one I created above.

    Am I missing something? The operation of fixing using the existing mapping of RDM file is insignificant in the GUI.

    No, not missing anything.

    This scenario is not possible with the cmdlet New-hard drive I'm afraid.

    You can use a script that uses the ReconfigVM method.

    Through the Device.Backing property, you can specify the location of the VMDK file

  • How to find all the controller ID: target used for the mapping of RDM on virtual machine

    I want to get a list of all the target ID used for ROW mapping on each controller.  Then next time, I can use the remaining ID of the target for RDM disk mapping using the perl script.

    I checked findVMsWithRDMs.pl but it shows an ID used target for each disc RDM. I use 5.5 ESXi servers and SDK for perl.

    Thank you

    Celine

    You will have to list all config.hardware.device devices, and then find the raw disk support type (to select the ROW).  Then look at the number of drive.  Then use it's value of controllerKey to get the controllers in config.hardware.device with the corresponding key and then get its value busNumber.  So it's busNumber:UnitNumber for the SCSI ID.

    You'll probably want to get all used SCSI identification numbers (use a hash such as BusNumber:UnitNumber-1 online).  Then you can quickly search number the first available bus.  That's what I generally find a free SCSI ID to add a new disk (including the ROW).

  • Remove a mapped drive

    I have successfully mapped to a network drive on my laptop (Toshiba Satellite running Vista w / SP2). I could read and write to the disk until I restarted my computer. On reboot, Vista said that it was "could not reconnect all network drives" or something like that. My problem is identical to the problem described here: http://support.microsoft.com/kb/960646 I downloaded the fix, but I was told "the update does not apply to your system.  I went through the forum, and it seems that the problem is that Vista is looking for the mapped drive before you connect to the internet (a fall from a wireless network) and I want to remap the drive, but uncheck the "Reconnect at logon" option, but I can't find out how to remove the mapped drive (I have actually 2 instances of it). I looked through the forum and I'm missing somewhere. Any help would be greatly appreciated.

    SM

    Very well. Too bad. I feel so stupid now. I click right on the drive, and selected 'disconnect' and he removed the drive. I swear, I had tried that before and it didn't work. I don't know if it was restart the computer or something, but it worked. Thanks for your help anyway

    SM
  • Simple mapping of RDM vs file several mapping of RDM files?

    Hello

    When you configure Microsoft Cluster nodes in a scenario of cluster-across-boxes (stream clustering) (two ESXi hosts, two-node cluster MSCS, with a bow on each ESXi host), I realize that using physical RDM Mode (pass-through RDM) is the way to go.  I also usually have to locate the C: drive (zero eager thick) for each cluster node on another volume VMFS to ensure two distinct areas of failure.  So, for example the C: drive of node of Cluster 1 (VM1) could be the Datastore1 and the C: drive of Cluster 2 node (VM2) might be on Datastore2.  Similarly, I always created RDM mapping files for each virtual computer as well, pointing to the same raw LUN.  For example, I would put the mapping of RDM for the quorum shared LUN on Datastore1 for VM1 and file a new mapping file RDM pointing to the same conditions of quorum LUN on Datastore2 for VM2.  In this way, the failure of Datastore1 will affect only VM1 and VM2affect only the failure of Datastore2 .  I did this for years (probably since ESX 2.5) and MSCS works very well in this configuration.

    However, I was re-reading of the official documentation of "configuration of Failover Clustering and the Microsoft Cluster Service" VMware and noticed that specific VMware at several locations as "a map file of RDM single and shared for each clustered disk is necessary."  In other words, they call for me to select 'existing hard drive' VM2, and then tap the RDM mapping file that I created on VM1, rather than creating a new fresh RDM for VM2 mapping file.  This seems to be "less safe" because the failure of Datastore1, or RDM 1 mapping file corruption, would result in the failure of VM2.  A separate mapping RDM for VM2, on a separate data store file would provide two distinct areas fault to two virtual machines.

    Does anyone know why VMware requires a shared single RDM mapping file?  Are there specific problems, caused by the presence of two separate files RDM mapping?

    Thank you

    Bill

    It seems that VMware has posted a KB that explicitly indicates that a pointer/mapping "single" RDM file must be used on all nodes of the cluster.  So I guess this settles my question!

    Several files of RDM pointer after the migration of storage (2131011)

    http://KB.VMware.com/kb/2131011

    Bill

  • I want to remove my details to come in the maps application is private and I don't want to share it. Can anyone help

    I want to remove my details to come in the maps application is private and I don't want to share it. Can anyone help

    You can contact Apple for this because there is no option to remove on your end. 1-800-MY-APPLE

  • I work with microsoft Streets & Trips 2001 program and I can not know how to remove the small cities on the map. I only want to show the major townships in and around Pittsburgh

    The map shows the region I want, but I won't show as much of the smaller townships how to remove the card and display only the main townships

    Hello

    The question you have posted is related to Microsoft Streets and guts and would be best suited to:

    Highway, Streets & Trips, MapPoint

    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    http://www.Microsoft.com/streets/en-us/community-and-news.aspx

  • Z10 blackBerry how do you remove BlackBerry Maps of the Z10

    Maps does not work so I would remove and reinstall from BlackBerry World.

    How do you remove BlackBerry Maps of the Z10?

    Try this

    http://supportforums.BlackBerry.com/T5/General-BlackBerry-10-Smartphone/how-to-reload-your-Blackberr...

  • Remove the ghost map

    We recently did a migration P2V of a hardware platform running Windows Server 2003 to a virtual computer. We are now moving the websites of this virtual machine to another virtual computer that is running Windows Server 2008. Our challenge is trying to "migrate" the IP address of the virtual machine of 2003 on the 2008 virtual computer we get a notice indicating that the IP address is assigned to a hidden NIC (obviously the NIC of the migrated material material since). Question: is it safe to unhide that hidden NIC and remove it? It is a production server, we had rather not it crashed if we do this!

    Thanks a lot for your help!

    Hello.

    Yes, the amount of the fine to remove the phantom adapter.  Here is a kb article that explains everything.

    Good luck!

  • Remove the Webapps of site map

    For the life of me I don't remember how to do this (or if it's possible). I know that I could create a sitemap customized, but except that how do you remove the generated sitemap BC (in v3) webapps?

    You have never received an order of what you can and can not have other then turn non-Lynda actual items.

  • Clean map of RDM files

    I just want to get clarification.  I removed some RDM tonight a virtual machine, but instead of removing and deleting, I just went with the removal of the RDM.  I now find myself with some of the mapping files and was curious to know if its ok just to remove @ this point?

    http://monosnap.com/image/Hc4AzgXHXET9PBy79UYUZmaRn.png

    Hello

    The withdrawal of RDM mapping files will not cause any problem. When you add RDM back it will create again. It's so safe.

    Concerning

    Mohammed

  • Help! Remove the snapshot

    Hello

    It is an Exchange virtual server. Someone on my team tried to take a snapshot, while it is online, and it has not been successful. It was to ask him something like do not include "memory of the Virtual Machine. He did and the snapshot was created. Now, when I look at the files on the storage directory, I'm confused. I do not understand why the vmsn file is so small and why there are three vmdk files (I have only two hard drives on this machine).

    This machine has two readers. A single system (drive C) and data (drive E). C is a virtual disk, while E is a Raw mapped LUNS ("Compatibility Mode: / persistent virtual /Independent"). It's time to remove the snapshot, but I'm not confident enough on that. Please see the picture I have attached. I need someone to clarify what these files and suggest a safe way to remove the snapshot. I can't afford much time for this critical server.

    Much appreciated,

    Eagleh

    Hello

    The suggested method for sure is to delete all the snapshots of the graphical user interface, as it has already been answered. The files that you see are the following:

    Exchange.VMDK - 1 volume logic, there is actually a hidden or both files which does not appear in the data store Navigator. Its called something like Exchange - flat hard

    2nd Exchange_1.VMDK logical volume. In this case, a pointer to a RDM and a hidden file which is the delta of the snapshot (Redo Log). This only works if the RDM is in compatibility from snapshot mode.

    Exchange - 000001.vmdk 1 logical volume delta file.

    images of memory *. VMSN VM in this case, it is small because the 1try failed, and the second was set to ignore the capture of memory.

    Hope that helps.

    Kind regards

    Mike

    http://blog.laspina.ca/

    vExpert 2009

  • Look at the maps app will not stop

    When I look for direction in the maps on the watch application, it will not stop after that. I looked for directions to the airport, and then it does not cancel and kept taking me to the airport. I have ensured the application Maps on my phone was not working and he cancelled it but always watch will not stop.

    I tried it yesterday and now today the watch gives me directions to the airport.

    I tried to remove it from the docking, restarted my watch. Watch app from the phone Checked, but nothing works.

    Hello

    To stop your watch directions: open the Maps app on your watch > firmly press the display > press on for policy decisions.

  • How to remove the mapsgalaxy of my deckto icon (the program has been deleted)?

    O/s's Windows 10. I clicked by mistake on the Mapsgalaxy (map search) program, and she took over my browser (Firefox). I was able to remove the program and go back to normal, but the icon of mapsgalaxy continuous display on my desktop. I tried to remove it - nothing helped. Can anyone help?

    Start your computer in safe mode.

    Start the computer in Mode safe;
    Free online encyclopedia

Maybe you are looking for

  • bought used iphone need help to activate without sim

    I bought a used iPhone 4 trying to activate, but guard saying need sim, I don't have that I just want to start so that my son can download him a few games and then I can buy a phone plan and SIM at a later date... Help

  • How can I change the background on my toolbbar?

    I used to have a background on my toolbar at the top of my browser. It isn't there now.How can I put another?

  • drivers compaq presario v2000

    Hello Can someone help me install the Audio drivers for my HP Compaq presario V2000 laptop Thanks and greetings

  • print from top to bottom

    I have a HP 7510 with a duplexer, computer is running windows XP.  My question is how to set it up to high rpint in bottob on both sides of the paper?  Help, please.

  • CP1518ni prints graphics but no text

    Hello I have a 1518ni Laser Jet CP which has been installed on our network of Windows 7 (64 bit) for several years and has worked flawlessly.   In recent days, it is no longer prints any text.  I deleted the printer, re-installed with the latest driv