Is it possible to move a disk from a diskgroup to another one ?

Hi,
I did not find the answer so here is my question :
My environment is Oracle 11g (11.1.0.6.0) database on OEL5U3.
The system contains 2 diskgroups (DATA and RECOVERY) which respectively contains 1 disk (DATA contains VOL1 and RECOVERY contains VOL2). VOL1 and VOL2 are the ASM disk names assigned by oracleasm to /dev/dpdb1 and /dev/dpdc1
SQL> select name,GROUP_NUMBER,TYPE FROM V$ASM_DISKGROUP;
NAME GROUP_NUMBER TYPE
DATA 1 EXTERN
RECOVERY 2 EXTERN
SQL> SELECT NAME,PATH FROM V$ASM_DISK;
NAME PATH
DATA_0000 /dev/oracleasm/disks/VOL1
RECOVERY_0000 /dev/oracleasm/disks/VOL2
My ultimate goal would be to use a snapshot-copy of /dev/dpdb1 (VOL1) to create a new diskgroup on the same server.
Let's say that my snapshot-copy of LUN /dev/dpdb is seen as /dev/dpdh:
# /etc/init.d/oracleasm querydisk /dev/dpdh1
Device "/dev/dpdh1" is marked an ASM disk with the label "VOL1" <-- the label on the disk is of course VOL1
# /usr/sbin/oracleasm renamedisk -f /dev/dpdh1 VOL3 <-- update of the label
Writing disk header: done
Instantiating disk "VOL3": done
# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3 <-- the new disk is now listed
Then I try to create the new diskgroup:
SQL> create diskgroup TIMEVIEW external redundancy disk '/dev/oracleasm/disks/VOL3';
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15033: disk '/dev/oracleasm/disks/VOL3' belongs to diskgroup "DATA"
The same command with force option:
SQL> create diskgroup TIMEVIEW external redundancy disk '/dev/oracleasm/disks/VOL3' force;
Diskgroup created.
The issue here is that the newly created diskgroup is empty ! it does not contains original files. Did I miss something ?
Edited by: user11239258 on 21 oct. 2009 01:06
Edited by: user11239258 on 21 oct. 2009 01:07

The md_backup and md_restore are finally not helpful in my case. it doesn't change the fact that ASM metadata are written in the disk header.
I could try to update the header with dd and hexadecimal editor but I'm looking for a decent option here.
The only solution I've found is to shut down ASM instance, move the block special file /dev/oracleasm/disks/VOL1 pointing to the original disk to a safe location, create a new block special file using mknod to point on my disk (the snapshot), restart ASM instance and use asmcmd cp command to retrieve needed files.
Conclusion : snapshot backup is fast but recovery based on snapshot is slow dealing with ASM.
RFE : A command similar to vgimport would be nice to have with ASM disks, it would allow the creation of new diskgroup without losing the content of an ASM disk or a group of disk.

Similar Messages

  • How to move a file from a page to another one in a wiki?

    Is it possible to move a file from a page to another one in a wiki (wiki server 4)?

    Files uploaded via "+" button and "Upload File to "My wiki name"" can be moved just like normal wiki pages by clicking the "sprocket" button and selecting "Move to Wiki"
    Fils attached via the "paperclip" button when editing a page, must be downloaded first, deleted from the initial page and reattached to the new page.

  • How to move my phone from an computer to another one without loosing my data ?

    Hello everyone,
    I have my phone with my own Apple Account on it, syncronising on a computer carrying another Apple ID, and I would like to move the syncronisation and all the apps I bought from my account, and all the data of my iPhone to another computer with my account and nothing else.
    But I know an iPhone can be sync only with one computer, so how to do ?
    Thanks for answering.

    They are on your phone.
    Erasing the computer won't delete them from your phone.
    If you do as suggested above, you will not have any problems syncing.

  • How can I move a Pages file from a folder to another one?

    I Have done the upgrade to mac os Yosemite but now i'm Not able to move a file from a folder to another one Inside iCloud
    now it's impossible to organize MY archive

    Thankyou Winston, you guess right. What i don't understand is why with the older version of mac os (10.9) i can organize my document into icloud folders using the Pages app window. But now with the new version i'm no longer able to do that. Using ipad in the same window there is no problem, but in mac os it doesn't work. 

  • Is it at all possible to move ipod music from a mac to a pc?

    ...without a CD burner on the mac?
    Here's the problem...
    My son wants to burn a CD of some of his ipod music. We had originally intalled the ipod on a mac. However, the mac disk is full, and we haven't been able to install an external cd burner.
    We have several pcs with cd burners, so I thought I could move the music over to the pc using the ipod. It did create a "shared" library, but you can't do anything with that but listen to it. I reformatted the ipod to pc format, but can't put the music back on the ipod.
    I should be able to reformat the ipod back to mac, then reload the songs on there, but unless I can free up enough space to load the cd burner software, I'm kind of out of luck?

    "is it at all possible to move ipod music from a mac to a pc?"
    Windows can't read the HFS+ file system that a Mac uses.
    If you need to use a Mac (HFS+) formatted iPod on a Windows PC, you'll need to install some 3rd party software such as XPlay 2.0 (which you can get from MediaFour Software). This will enable your Windows PC to read a Mac-formatted iPod.

  • Move NSS disks from OES2 to another OES2

    Hi,
    I have old OES2 SP1 server. I install new server and connect it to the tree. Can I move NSS disk from old server to new server and save Trustee ?
    Old server has two software RAID 1 disks witch one NSS pool and volume.

    thank you for your reply !
    And what about softeware RAID 1 ?
    Will be RAID working, when I move both disks on new server ?
    Originally Posted by mrosen
    On 10.01.2013 04:36, vogl wrote:
    >
    > Hi,
    >
    > I have old OES2 SP1 server. I install new server and connect it to the
    > tree. Can I move NSS disk from old server to new server and save Trustee
    > ?
    > Old server has two software RAID 1 disks witch one NSS pool and volume.
    >
    >
    If you can physically move the old disks holding the NSS volumes to the
    new server, yes, that will work almost completely automatically. You may
    have to go into NSSMU and activate the pools once, but from then on the
    server will mount them on boot, and all trustees will stay intact.
    One thing to watch out for are the edirectory volume objects.
    Officially, you have to delete and recreate them, which may affect stuff
    like user home directory attributes. Unofficially, you can chnage the
    Host Server attribute of the existing volume objects to refelct the new
    server.
    CU,
    Massimo Rosen
    Novell Knowledge Partner
    No emails please!
    Untitled Document

  • Is it possible to move my iTunes from the old laptop to the new one (including all the music files and playlists) without having to start all over again with a blank iTunes?

    Is it possible to move my iTunes from the old laptop to the new one (including all the music files and playlists) without having to start all over again with a blank iTunes?

    yes
    You will need to copy the whole iTunes folder which is in your user profile on the old computer in Music folder.
    Before you do it make sure iTunes are updates on the old computer and it works without any problems.
    This will copy all your media, music, movies (provided you did not change the default location).
    After the migration you will need to sing in to Apple store again with your Apple ID
    and also authorize your new computer (both done from the tom menu bar in Store.
    Once you are done please deauthorize your old computer (the same menu path) if you are not planning to use it anymore.
    Any problems post here.

  • Is it possible to move app's right to left to another screen?

    I accidentally moved an app to another screen; left to right; but when I tried to move it back I couldn't reverse the process. Is it possible to move an app from screen to screen right to left?

    Drag the app to the edge of screen 1, hold it there and wait until it switches to screen 2, then move to where you want on screen 2.

  • HT1491 how do I move a download from a ipad to another if already in downloads

    How do I move a download from an ipad to another ipad if already in downloads?

    No, rentals donwloaded on an iPad or iPhone can only be watched on it, and cannot be moved.
    Rentals downloaded on a computer can be moved to an iPad or iPhone though.
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    http://support.apple.com/kb/ht1657

  • Is it possible to transfer my musics from an iPod to another ?

    Is it possible to transfer my musics from an iPod to another ?

    Not directly, no. Where did the music originate?
    You might find one of the utilities listed here useful:
    Recovering your iTunes library from your iPod or iOS device: Read turingtest2's User Tip:
    https://discussions.apple.com/docs/DOC-3991

  • How to move a mailbox from "on my mac" to one of my iCloud accounts

    Can I move a mailbox from "on my mac" to one of my iCloud accounts - I find that I need to access this particular mailbox from my phone or iPad from time to time.  I tried dragging it down to that account out of on my mac, it auto-scrolled down to the account, but when I let it go to put it where I wanted it - it just reverted back to on my mac...  Any suggestions?  thnx.

    Right click the mailbox, select Copy To, select a destination for it.
    Moving data over the internet takes time, be patient, when it's completed delete the originals.
    It's safer just to move the content, I would create a new iCloud mailbox with the same name and copy the contents in batches of 50 to 100 at a time. Then delete the originals.

  • I own osx mountain lion with messages.When i go to create a new message i dont undrestand why you can send it to their email.also is it possible to send a message from my mac to another mac that has mountain lion. MacBook, OS X Mountain Lion, help me

    I own osx mountain lion with messages.When i go to create a new message i dont undrestand why you can send it to their email.also is it possible to send a message from my mac to another mac that has mountain lion.
    MacBook, OS X Mountain Lion, help me

    The recipient needs to have Messages set up with the e-mail. Check the image below:
    Hope it heps.
    JP

  • Is it possible to move some of the capture processes to another rac node?

    Hi All,
    Is it possible to move some of the ODI (Oracle Data Integrator) capture processes running on node1 to node2. Once moved does it work as usual or not? If its possible please provide me with steps.
    Appreciate your response
    Best Regards
    SK.

    Hi Cezar,
    Thanks for your post. I have a related question regarding this,
    Is it really necessary to have multiple capture and multiple apply processes? One for each schema in ODI? Because if set to automatic configuration, ODI seems to create a capture and a related apply process for each schema, which I guess leads to our specific performance problem (high cpu etc) I mentioned in my other post: Re: Is it possible to move some of the capture processes to another rac node?
    Is there way to use just one capture and one apply process for all of the schemas in ODI?
    Thanks a million.
    Edited by: oyigit on Nov 6, 2009 5:31 AM

  • I recently transfered everything from my emac to another one but now when I try to open iTunes I get the window that states: The file "iTunes Library" cannot be read because it was created by a newer version of iTunes.

    I recently transfered everything from my emac to another one but now when I try to open iTunes I get the window that states: The file "iTunes Library" cannot be read because it was created by a newer version of iTunes. The computer I transfered to had a bunch of files on it and I got full ownership of what was already there, so, how do I get to my iTunes library, I do have access as an administrator to the iTunes library (that works just fine) already there and I guess I must have had a newer version ofiTunes on my defunt eMac....

    Tell us some version numbers please, of your Mac OS versions and iTunes versions on both computers (two eMacs yes?).
    dlrobinson49 wrote:
    I guess I must have had a newer version ofiTunes on my defunt eMac....
    That is a pretty good guess.Try updating the second eMac's iTunes to at least the version that was on the first.

  • Problems when copying item from a page to another one

    I am copying a value of an item, from a page to another one in branch, and it cuts the value to me in ' : '
    ej: item a = 08:00 Hs
    item b = 08
    thanks
    Juan Pablo

    I had to deal with the same thing and I know at least two solutions - one is "dirty" and the other one is a "clean":
    1. dirty - replace ':' (colon) with ';' (semicolon) and pass that value using URL. On the page, where your item(s) is, create a computation using REPLACE(P1_ITEM, ';', ':') on load and before header.
    2. clean - as Scott says and it works in many cases - pass only a primary key and a request to your target page and create there a procedure to fetch the values you need and populate the items
    If you use the documentation and search on keywords "COMPUTATION" and "REQUEST", you will find a lot of usefull information.
    Denes Kubicek

Maybe you are looking for