This discussion is archived
2 Replies Latest reply: Apr 28, 2013 1:28 PM by joseph619 RSS

Ovs 3.2.2 rediscover storage

joseph619 Newbie
Currently Being Moderated
Hello,

Is it possible to move one physical storage under ovm server to a new ovm server and rediscover it ?

Like i had old install of ovs with physical storage (where there are Iso files, VMs, ...) and need to change hardware,

In the new server, is it possible to add my old storage (old disk) , discover it and present repository ?



My ovs (new) has 3 disks, 2 new of *500gb* each and the old one *1Tb*

Actually i am not able to see the old disk in the manager, but i see the new ones ( 500gb, 500gb ).

i also tried
dd if=/dev/zero of=/dev/mapper/SATA_xxxx bs=1M count=100
and
reboot
still not able to see it in ovm.

also it was appearing when typing blkid and had ocfs2 type

but it is no more there

should i make it raw ? how ? to be have it in the manager.


Edited by: Joseph on Apr 27, 2013 9:49 PM

I just removed the new disks from storage but manager show them again

how to refresh info in ovs or ovs-agent or refresh storage info in manager ?

What is refresh time between manager and agent ?

Any idea ?

Edited by: Joseph on Apr 27, 2013 9:49 PM
  • 1. Re: Ovs 3.2.2 rediscover storage
    joseph619 Newbie
    Currently Being Moderated
    I see the old disk in storage tab in manager

    After storage refresh from manager here is the log

    Job Construction Phase
    ----------------------
    Job ID: 1367099943024

    begin()
    Appended operation 'FileSystem refresh' to object '0004fb00000500008f110d1a40af9537'.
    commit()
    Completed Step: COMMIT

    Objects and Operations
    ----------------------
    Object (IN_USE): [LocalFileSystem] 0004fb00000500008f110d1a40af9537
    Operation: FileSystem refresh

    Job Running Phase at 2013-04-27 21:59:03,024
    ----------------------------------------------
    Job Participants: [00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff (ovsctech)]


    Actioner
    --------
    21:59:05,135: Starting operation 'FileSystem refresh' on object '0004fb00000500008f110d1a40af9537'
    Setting Context to model only in job with id=1367099943024
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: ocfs2_get_meta_data to server: ovsctech failed. OVMAPI_4004E Server Failed Command: ocfs2_get_meta_data /dev/mapper/SATA_WDC_WD10EARX-00_WD-WMC0T0533574 .ovsrepo, Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:(0, 'Error') [Sat Apr 27 21:59:05 GMT 2013] [Sat Apr 27 21:59:05 GMT 2013]
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:512)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:464)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:390)
    at com.oracle.ovm.mgr.action.StorageAction.getOcfs2Metadata(StorageAction.java:165)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemRefresh.discoverOcfs2FileSystem(FileSystemRefresh.java:196)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemRefresh.action(FileSystemRefresh.java:91)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1156)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:865)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:244)
    at com.oracle.ovm.mgr.api.physical.storage.LocalFileSystemProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:230)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:322)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1340)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:106)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:92)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:752)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:467)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:525)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: ocfs2_get_meta_data /dev/mapper/SATA_WDC_WD10EARX-00_WD-WMC0T0533574 .ovsrepo, Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:(0, 'Error') [Sat Apr 27 21:59:05 GMT 2013]
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:803)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:508)
    ... 32 more


    FailedOperationCleanup
    ----------
    Starting failed operation 'FileSystem refresh' cleanup on object '0004fb00000500008f110d1a40af9537'
    Complete rollback operation 'FileSystem refresh' cleanup on object '0004fb00000500008f110d1a40af9537'

    Rollbacker
    ----------
    21:59:10,294: Starting rollbacker...
    Executing rollback operation 'FileSystem refresh' on object '0004fb00000500008f110d1a40af9537'
    Complete rollback operation 'FileSystem refresh' completed with direction=DONE
    21:59:10,392: Rollbacker completed...

    Objects To Be Rolled Back
    -------------------------
    Object (IN_USE): [LocalFileSystem] 0004fb00000500008f110d1a40af9537


    Write Methods Invoked
    -------------------
    21:59:04,527 Class=InternalJobDbImpl vessel_id=1006 method=addTransactionIdentifier accessLevel=6 owningTx=1367099944526
    21:59:04,556 Class=LocalFileSystemDbImpl vessel_id=711 method=refresh accessLevel=6 owningTx=1367099944526
    21:59:04,764 Class=InternalJobDbImpl vessel_id=1006 method=setCompletedStep accessLevel=6 owningTx=1367099944526
    21:59:04,772 Class=InternalJobDbImpl vessel_id=1006 method=setAssociatedHandles accessLevel=6 owningTx=1367099944526
    21:59:05,164 Class=InternalJobDbImpl vessel_id=1006 method=setContext accessLevel=6 owningTx=1367099944526
    21:59:05,605 Class=LocalFileSystemDbImpl vessel_id=711 method=nextJobOperation accessLevel=6 owningTx=1367099944526
    21:59:05,605 Class=InternalJobDbImpl vessel_id=1006 method=setFailedOperation accessLevel=6 owningTx=1367099944526
    21:59:10,317 Class=LocalFileSystemDbImpl vessel_id=711 method=nextJobOperation accessLevel=6 owningTx=1367099944526
    21:59:10,392 Class=LocalFileSystemDbImpl vessel_id=711 method=nextJobOperation accessLevel=6 owningTx=1367099944526
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: ocfs2_get_meta_data to server: ovsctech failed. OVMAPI_4004E Server Failed Command: ocfs2_get_meta_data /dev/mapper/SATA_WDC_WD10EARX-00_WD-WMC0T0533574 .ovsrepo, Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:(0, 'Error') [Sat Apr 27 21:59:05 GMT 2013] [Sat Apr 27 21:59:05 GMT 2013]
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: ocfs2_get_meta_data to server: ovsctech failed. OVMAPI_4004E Server Failed Command: ocfs2_get_meta_data /dev/mapper/SATA_WDC_WD10EARX-00_WD-WMC0T0533574 .ovsrepo, Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:(0, 'Error') [Sat Apr 27 21:59:05 GMT 2013] [Sat Apr 27 21:59:05 GMT 2013]
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:512)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:464)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:390)
    at com.oracle.ovm.mgr.action.StorageAction.getOcfs2Metadata(StorageAction.java:165)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemRefresh.discoverOcfs2FileSystem(FileSystemRefresh.java:196)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemRefresh.action(FileSystemRefresh.java:91)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:865)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:244)
    at com.oracle.ovm.mgr.api.physical.storage.LocalFileSystemProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:230)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:322)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1340)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:106)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:92)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:752)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:467)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:525)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: ocfs2_get_meta_data /dev/mapper/SATA_WDC_WD10EARX-00_WD-WMC0T0533574 .ovsrepo, Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:(0, 'Error') [Sat Apr 27 21:59:05 GMT 2013]
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:803)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:508)
    ... 32 more


    ----------
    End of Job
    ----------
  • 2. Re: Ovs 3.2.2 rediscover storage
    joseph619 Newbie
    Currently Being Moderated
    I now removed the storage from manager, just click delete
    restart the server

    but when i create repo it says "local FS is locked, ... delete storage ...."

    Any ideas how to delete this storage ?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points