Oracle VM Migrating virtual disk images to physical disks (block devices)

Hi,
For performance reasons, I'd like to migrate my .img file based virtual disks into physical partitions for VM's.
What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?
Thanks,
Onur

hobeygo wrote:
What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?Create block devices the same size as your .img files and then use dd to copy the contents of the .img file to the block device. Your VMs need to be offline while you do this. Once you've done this, you can use Oracle VM Manager to remove the original .img file and replace it with the physical block device copy. This is low-risk, as the .img file will still be there if the new block device doesn't work.
Keep in mind that you will need a unique block device for every .img file you have.

Similar Messages

  • How to map ASM disk path to physical disk on AIX?

    Hi Everyone,
    I am working on a plug-in for Oracle Enterprise Manager 10gR2 on AIX 5.3 which provides monitoring of storage arrays and supports ASM databases in addition to the 'emrep' database. One of the metric of that plug-in is populated by the result from a korn shell script. The script directly runs on the AIX host (connected to the storage array by FC cables via HBA ports) and retrieves the mapping for -- Physical disk - Logical Disk - LUN - ASM Disk.
    Now, I was able to get the mapping for Physical Disk – Logical Disk – LUN, but could not map ASM Disk. I googled a lot for any clue but did not find the answer to this specific problem.
    Now, I have the list of physical disks used for ASM by the command—
    lspv
    hdisk0 0001c22ac8d664ca rootvg active
    hdisk1 0001c22aa51f496a Oracle active
    hdisk2 0001c22ac478263a scratch active
    hdisk3 0001c22ac472549a Oracle active
    hdisk4 0001c22ac4725d6a Oracle active
    hdisk5 none None
    hdisk6 none None
    hdisk7 none None
    hdisk8 none None
    hdisk9 none None
    hdisk10 none None
    hdisk11 none None
    hdisk12 none None
    hdisk13 none None
    hdisk14 none None
    hdisk15 none None
    hdisk16 none None
    The disks hdisk5-16 are ASM disks and there are no PVID’s present.
    I also have the list of ASM disks by the command—
    ls –l /dev | grep oracle
    crw-rw---- 1 oracle dba 22, 6 May 12 00:02 asm_rd10_1a
    crw-rw---- 1 oracle dba 22, 10 Apr 21 07:27 asm_rd10_1b
    crw-rw---- 1 oracle dba 22, 7 May 09 13:53 asm_rd10_1c
    crw-rw---- 1 oracle dba 22, 8 May 09 13:53 asm_rd5_1a
    crw-rw---- 1 oracle dba 22, 4 May 12 00:02 asm_rd5_1b
    crw-rw---- 1 oracle dba 22, 9 Apr 21 07:28 asm_rd5_1c
    crw-rw---- 1 oracle dba 22, 12 May 12 00:02 asm_xbb2_rd10_1a
    crw-rw---- 1 oracle dba 22, 11 Apr 24 07:34 asm_xbb2_rd10_1b
    crw-rw---- 1 oracle dba 22, 13 May 09 13:53 asm_xbb2_rd10_1c
    crw-rw---- 1 oracle dba 22, 16 May 12 00:02 asm_xbb2_rd5_1a
    crw-rw---- 1 oracle dba 22, 14 Apr 24 07:34 asm_xbb2_rd5_1b
    crw-rw---- 1 oracle dba 22, 15 May 09 13:54 asm_xbb2_rd5_1c
    Now I am looking for a way to map these two lists with each other, and had no luck so far.
    Does oracle provide this information somewhere in the OEM installation structure or is there a command in AIX which could give some way to map the ASM disks to the physical disks?
    Any help on this is greatly appreciated. Thanks in advance…
    FYI: ASMLib driver is not present on the system.

    The view you are talking about here gives the ASM DISK NAME (like DGRXBB_0001) and ASM DISK PATH (like /dev/asm_rd_10_1a) and I am already using it, but this is not what I asked in mt original post. If you read carefully, I want to establish a mapping between the ASM DISK PATH (like /dev/asm_rd_10_1a) and the AIX Physical disk (like /dev/hdisk5) and did not find any view giving this info. If you know of some views which could help establish this mapping or some AIX commands or files that could help do this using shell script, it is most welcome

  • How to fix this error message The backup disk image "/Volumes/AirPort Disk/FARES DEL VALLE's iMac.sparsebundle" could not be accessed (error -1).

    how to fix this error message The backup disk image “/Volumes/AirPort Disk/FARES DEL VALLE’s iMac.sparsebundle” could not be accessed (error -1).

    The troubleshooting C17 is the specific article.
    http://pondini.org/TM/Troubleshooting.html
    This is generally a Lion error.. and you will need 5.6 utility to get access to the disk area.
    So download the real utility. Run it instead of v6 toy version.
    http://support.apple.com/kb/DL1482
    Go to the manual setup, disk page and click on disconnect all users.. that will unmount all users connected to the disk and allow it to start working. But there are a number of other issues that are possible cause. Pondini lists some of them.

  • How do I open a disk image made in disk utility?

    How do I open a disk image made in disk utility? I made the disk image myself and it won't let me open it.

    Right. So did it ever work? did you use it and check it when you created it? not much you can do that I see.

  • The backup disk image "/Volumes/AirPort Disk-1/Angelo's MacBook Pro.sparsebundle" is already in use.

    It worked fine. Now I get the same crap as everyone else lucky me!
    The backup disk image “/Volumes/AirPort Disk-1/Angelo’s MacBook Pro.sparsebundle” is already in use.

    Hi Bob there's an eject button next to the Time Capsule in Finder. Also when I press the select disk button is it suppose to show 2 disks for Time Capsule because it shows 2. Also when the backup was taking place I opened up Time Machine preferences to watch it doing the backup. Could this also have caused it? Also when I pressed the eject button Time Machine was showing up under the Time Capsule but now it disappeared. I read that if it's mounted it will cause this error.

  • Should application disk images appear in Disk Utility?

    When I run Disk Utility on my back up external drive, the disk image for the Google Earth plugin appears in the left hand window, separated from the list of visible drives by a line. I've never seen this before. Any reason why it should be happening?

    Each of the backups on the Time Capsule is a sparsebundle. You can see the sparsebundle(s) by clicking on Time Capsule under Shared in a Finder window, then after a moment or two you can double click on the Time Capsule folder. To attempt to repair a backup, do the following. Bear in mind that the Repair function could take a few hours. I prefer to run it overnight so I don't stress about it. There's nothing like reviewing Repair messages over steaming hot cup o' java.
    - Turn off Time Machine on the Mac that backs up to the sparsebundle in question. (The Mac's name is in the sparsebundle's name).
    - Double click on the sparsebundle.
    - Once the "Opening" dialog appears, click "Skip" to skip the check.
    - You have now mounted the virtual backup drive stored in the sparsebundle -- it shows up under your list of Devices in the Finder window.
    - Open Disk Utility
    - Select "Backup of [machine name]" in the left pane
    - Select the First Aid tab if it's not already selected
    - Click on Repair disk
    - Give it a few hours.
    Sometimes, if the sparsebundle can't be repaired, the solution is to delete the sparsebundle and start over. Perhaps Data Rescue works on a mounted sparsebundle -- I'm not sure.
    It's unlikely you need to repair the Time Capsule's drive itself, as it usually has very few files on it (just the sparsebundles), and it's disk directory is rarely updated.

  • Disk image mounting and disk utility oddities on Xserve running OS X Server

    I continue to run into an odd problem on one of my server setups. It is a 1.33 GHZ Xserve running OS X Server 10.4.11. There are four ATA drive installed (two of which are mirrored using Softraid 3.6.6). There are a total of 6 Firewire drives on the Firewire 800 Bus. Three of those are used for sharing out files and the other three are for various backups.
    What happens is that I sometimes run into an issue where dmg files will not mount. There are no error messages and nothing in the log, they just don't open. Likewise I am unable to launch Disk Utility, it just spins and spins never displaying the drives, again nothing in the logs, no crashreporter. I have also found out that the same thing happens in System Profiler when I try to get a list of drives on either the ATA bus or the Firewire bus. Mind you they all show up on the desktop. Likewise I have had no luck getting them to list or run permissions or the like from the diskutil commandline. Now I am able to mount actual drives. When I swap out the offsite backup drive it mounts the new drive just fine. However... when I eject the drive and it has disappeared from the desktop and then I remove it... I get the removal error.. you didn't put the drive away properly message.
    Now there are no disk related events showing up anywhere in the logs. The only other oddity that I can see is that my rsync backups tend to generate a ton of zombie processes. I get zombies of cron, sh, rsync, and mail.
    It is just a pretty straightforward shell script
    /usr/local/bin/rsync -E --archive -eahfs --delete /Volumes/Files/Shared\ Items/ /Volumes/Backup\ Files/Shared\ Items/
    Running in cron with it set to email the logs.
    Now this does all clear up when I reboot the server... but it also doesn't reboot cleanly. It closes down all of the applications, login window and the like and then hangs on the shut down portion. Eventually I have to power it off manually. I've done the normal Volume checking on the main drives and they come up with 0 errors.
    Hoping someone might have some ideas before I end up having to backup and reinstall the whole thing.

    Also when I try to open the disk image file I get the following error in the log.
    xserve kernel[0]: disk10s10: media is not present.

  • Can't create disk image of external disk

    I just switched from a PowerBook G4 running OS 10.4, to a MacBook Pro running 10.5. I'm trying to create a disk image of the old machine's hard disk, as a backup. Before doing this, I ran Disk Utility to make sure none of my disks were in need of repair.
    I started up the old machine in Target Disk mode and connected it to the new one. In Disk Utility, I selected the disk, and clicked Create Disk Image. I told it to save the disk image as uncompressed and writable, on a disk that has plenty of space. So it chugs along for about an hour, creating an 80GB image.
    Then once the image is done, I try to mount it and get an error, saying that the disk image has no mountable file systems. I've done this four times already, each time with the same result. In addition, if I try to restart after creating the image, the system hangs.
    Any ideas why this might be happening? Are there any known bugs with Disk Utility in Leopard? Interestingly, I tried to do the same thing with Carbon Copy Cloner, and ran into a different error (it thought that it couldn't mount the newly-created image).

    Yesterday I bought a Maxtor Basic external harddrive for my mac.
    Followed the instructions, using Disk Utility, formatted the hd, then I tried to create a 60 gb blank encrypted disk image but failed twice; after clicking 'Create', Disk Utility does not prompt to create a password.
    First time Disk Utility just hangs; there's no respond for 30mins, so i force quit it and reformatted the drive, again.
    Then I tried to create a 10mb encrypted disk image and the box appears to enter a password, so I presume it was working fine.
    Again, I tired to create the 60gb blank image. This time, i left it overnight, thinking maybe it just takes a longer time. No prompt for passwords, and in the morning, the msg I got was 'No drive found' or something like that, because the drive has ejected itself. (???)
    Anyone has any idea why? I could create the image on my mac and throw it in the external drive, but my mac onlyhas 15 gb of space.
    Let me know if this sounds like a problem with the Maxtor so I could exchange it ASAP.

  • Best way to make disk images for game disks?

    I want to play my beloved Battlefield 1942 on my Air... and I realized that I need the disk! ...Is there a way to turn the game disk into an image and "launch" it so the program thinks it's in the diskdrive, etc?
    I looked in DiskUtility, and I was a bit unsure what kind of image to make it.
    tia,
    e

    <font "size=+1">Duplicate a CD or DVD
    1. Insert the DVD/CD;
    2. Open Disk Utility, and select the DVD/CD from the left side list (select the DVD/CD icon on top);
    3. from the DU File menu select New | Disk Image from Disk 1;
    4. Choose to format the disk image as DVD/CD Master, name the disk image and click Save;
    5. When the .cdr file is finished select it with mouse and press COMMAND-I to open the Get Info and check the box to lock the file;
    6. Choose the .cdr file from the left side list, click Burn, and insert a new, blank DVD or CD.
    You can skip the last step if you don't want to burn the image to a CD or DVD. There is no guarantee this will work since many games will only work with a CD or DVD rather than a mounted image of one.

  • Disk Image Won't Mount - Reason: Device Not Recognized

    As I've searched the discussion forums, I've seen plenty of postings for "Disk Image Won't Mount" and for "Device Not Recognized" but not the way I'm seeing it on my laptop.
    After a backup and restore, my mac will no longer mount any... and I mean any images. I have downloaded several security or software updates from different vendors and each .dmg file will not mount. I still have the .dmg files in hopes that after I get this problem solved, I'll be able to install them, but...
    It always gives the same reason for not mounting and I'm at a loss on what to do next. I've run Software Update hoping it will be a quick fix, but have had no success.
    Any suggestions?

    I have a similar problem. Using FireWire disk mode, I put a disk image of my entire iBook onto my iMac as a back-up. (For an unrelated problem, Apple told me I needed to erase my iBook completely and do a clean install of the system.) Well, I screwed something up. I don't know what exactly--maybe I didn't "put away" the device correctly, but the next day when I flipped on my iMac, the disk image of my iBook was just gone, and not to be found anywhere. I finally succeeded in restoring the image using TechTool, which scanned the entire volume of the iMac for directory information. And it's all there, because the img file is more than 10GB. But when I double-click on it, I get the following error msg: "The following disk images failed to mount...reason--not recognized." I've checked the app it's supposed to open with, permissions, and run Disk Utility volume repair. No dice. Any ideas??? Did I mention that this is EVERYTHING I had on my iBook???

  • Copy Disk Image to New Disk Image

    Hi. I have a disk image that is in sparsebundle form and has a total size of 9.61gb. When I mount the image, it results in a volume with 8.53gb used and 15.97gb capacity. Let's say that I wanted to move this entire volume to a new partition that is only 10gb in size. I should technically be able to do this since the files only take up 9.61gb, right? I can't seem to move it to a new volume, or disk image with a capacity less than 15.97gb. Is there a way that I can work around this? Basically I just want to create a new volume with total capacity approx 10gb and copy the files over. I tried using disk utility and restoring but I keep getting an error about not enough space. Any thoughts would be helpful, thanks!

    See if you can reduce the size of the existing sparse bundle, per #A8 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    Then you should be able to just drag & drop the sparse bundle to the new volume.

  • Disk Image on DVD disk. How do I utilize?

    I backed up a project on a DVD disk as a disk image. How do I utilize it? I would like to get it into iMovie or iDVD and eventually burned to a DVD?
    Thanks

    I backed up a project on a DVD disk as a disk image.
    If you created a disk image by selecting File>Create Disk Image, you really haven't 'backed up' your project. You 'burned' a completed DVD to a disk image file. This is NOT an archive of your DVD project. Your content has been mpg-2 compressed.
    How do I utilize it? I would like to get it into
    iMovie or iDVD and eventually burned to a DVD?
    If you created a disk image using the File>Created Disk Image route out of iDVD, you can burn it to a DVD by following Burning a disk image on a CD or DVD at http://docs.info.apple.com/article.html?path=DiskUtility/10.5/en/duh1884.html
    Please note that to use the mpg-2 content from such a disk image in iMovie, you will need to unencode the mpg-2 back to DV video. There are several programs to do this, but this approach results in lower image quality than just using your original DV video content.
    F Shippey

  • Is it possible (and does not cause any problems) to create a disk image inside a disk image?

    Hey there,
    I'd like to setup a password protected Disk Image with several different password proteced disk images inside. Such as different levels of security. is that possible at all and if yes, is there anything to consider or any known issues?

    sorry my englisch is not that good. I don't understand your sentence. what does it no to both queries mean?

  • Repair Degraded Storage Spaces Virtual Disk - All physical disks show healthy

    I've seen this mentioned a few times but no definitive answers. I have a Storage Pool with 8 physical disks. Each physical disk shows as healthy and auto select. I have thick provisioned Virtual Disk created on this Storage Pool in a parity configuration.
    This virtual disk is configured for the maximum amount on the storage pool. 50% of the space is available on the volume of the virtual disk...I click repair it does nothing.
    Tested yanking a physical disk. Virtual disk becomes unavailable. No redundancy currently. How the heck do I fix this???

    Hi,
    First please try to run a repair again with Powershell cmdlet:
    Repair-VirtualDisk
    If issue still exists please try optimize to see if it will help:
    Optimize-Volume
    If you have any feedback on our support, please send to [email protected].
    Repair-VirtualDisk:
    Runs shows a progress bar for a very short period of time. Goes back to prompt. No messages or errors. Running Get-Virtual disk still shows the VD as degraded.
    Optimize-Volume:
    PS C:\Users\Administrator> Optimize-Volume -driveletter D -analyze -defrag -verbose
    VERBOSE: Invoking defragmentation on DATA (D:)...
    Optimize-Volume : A general error occurred that is not covered by a more specific error code.
    At line:1 char:1
    + Optimize-Volume -driveletter D -analyze -defrag -verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (MSFT_Volume (Ob...8-8907-3485...):ROOT/Microsoft/...age/MSFT_Volume) [Opt
    imize-Volume], CimException
    + FullyQualifiedErrorId : HRESULT 0x89000000,Optimize-Volume
    PS C:\Users\Administrator> Optimize-Volume -driveletter D -analyze -defrag -verbose
    VERBOSE: Invoking defragmentation on DATA (D:)...
    Optimize-Volume : A general error occurred that is not covered by a more specific error code.
    At line:1 char:1
    + Optimize-Volume -driveletter D -analyze -defrag -verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (MSFT_Volume (Ob...8-8907-3485...):ROOT/Microsoft/...age/MSFT_Volume) [Opt
    imize-Volume], CimException
    + FullyQualifiedErrorId : HRESULT 0x89000000,Optimize-Volume
    PS C:\Users\Administrator> Optimize-Volume D -analyze -verbose
    VERBOSE: Invoking analysis on DATA (D:)...
    Optimize-Volume : A general error occurred that is not covered by a more specific error code.
    At line:1 char:1
    + Optimize-Volume D -analyze -verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (MSFT_Volume (Ob...8-8907-3485...):ROOT/Microsoft/...age/MSFT_Volume) [Opt
    imize-Volume], CimException
    + FullyQualifiedErrorId : HRESULT 0x89000000,Optimize-Volume
    PS C:\Users\Administrator> Optimize-Volume D -Verbose
    VERBOSE: Invoking defragmentation on DATA (D:)...
    Optimize-Volume : A general error occurred that is not covered by a more specific error code.
    At line:1 char:1
    + Optimize-Volume D -Verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (MSFT_Volume (Ob...8-8907-3485...):ROOT/Microsoft/...age/MSFT_Volume) [Opt
    imize-Volume], CimException
    + FullyQualifiedErrorId : HRESULT 0x89000000,Optimize-Volume
    Both error out...

  • Mounting an Apple disk image (Intel Mac) under other Unixes/Linux

    Hello,
    I have started my MacBook in HDD Mode and connected it via Firewire-Cable to my "Main-Server" (Slackware Linux 11.0).
    From there i created a "Disk-Image" from my MacBooks HDD using "dd"
    I can mount the disk image within OS X without any problems, but i can´t mount it on the Linuxbox.
    I have used this cmd under Linux : "mount -o loop -t hpfs image.dmg /mnt/tmp" But i am getting an error saying that it doesn´t seem to be a Apple File System Image.
    I have made sure that support for Apple FS is "compiled-in" in the Linux-Kernel. If i do a file image.dmg i get this:
    x86 boot sector; partition 1: ID=0xee, starthead 254, startsector 1, 117210232 sectors, extended partition table (last)\011
    Does anyone know how i can mount this image under Linux?
    Thanks,
    tyrtux.

    I can't offer any solution yet, but here's a bit of information that might prove useful in understanding the problem.
    "mount" on Linux mounts file systems, not disk images. A disk image is just that -- a bit-for-bit image of the sectors on what would be a physical disk. A file system is a portion of a disk structured in a specific way -- a section set aside for managing free space, a "root" directory, etc.
    A partition is a logical subdivision of a disk. Usually, each file system on a disk completely fills one partition; but partitions may overlap, and one partition may contain any number of file systems.
    A disk -- and therefore a disk image -- contains, within its first physical sector, a partition map. The map includes the start sector, size, and type of each partition. The type usually hints at what the file system -- if any -- of the associated partition is.
    When you connect a physical drive to a Linux system -- be it IDE, SCSI, USB, or CD-ROM -- Linux scans the partition table. You can then use mount to get access to individual file systems on the device. When you use "mount -o loop", you are asking mount to connect a loopback device to a file that represents not a disk -- but a file system. This is why your attempt is failing; the disk image doesn't look like a file system, it looks like a disk -- it has a partition table of its own.
    You might be able to map the file to a drive for VmWare, and access it from the virtual machine. Otherwise, I'd hunt around for software that deals with complete disk images, not just file systems.
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

Maybe you are looking for