ODA - Oakcli commands hang when executed

classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

ODA - Oakcli commands hang when executed

Amr Samy
Hi Erman,

on ODA X4-2 System , The problem is that the Oakcli commands hang when executed. No errors are shown, the commands simply do not complete,
I can't stop , start , create repository or VM.
only oakcli show commands is working well.


thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
Hi,

Check oakcli log file;
Location: in ODA BASE in the relevant node where te commands hang;

/opt/oracle/oak/log/<server_name>/client/oakcli.log

Also check the oakd log files.
Location: in ODA BASE in the relevant node where te commands hang;

/opt/oracle/oak/log/<server_name>/oak


Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
Hi,

I checked them but unfortunately I cannot notice the problem.

can I upload them to help me ?
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
upload them to here as a rar file, and let me take a look.
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
Your oakd logs are up-to-date, but  your latest oakcli log record is written at 03.07.20106.

This is your last oakcli log record;

2016-03-07 18:16:07.138: [CLSFRAME][3466339904] M2M is now powered by a doWork() thread.

Did you send me up-to-date logs?
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
yes, I send the up-to-date logs.

but I used oakcli commands after this date !
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
send me an strace output of your failing oakcli command. like;

strace oakcli start vm blablaba
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
Link of output
http://www.mediafire.com/download/vfijgjsb6a1dcs4/output.rar

and hanging after last line .
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
There are some important records in strace output.

"ERESTARTSYS" and "--- SIGWINCH (Window changed)"

1) Retry this command using putty or VNV Viewer or SSH Secure Shell Client (dont resize your terminal size during the execution of oakcli), this may effect the execution. Look it effects to Data Guard command-line interface ->Abnormal Termination Of Dgmgrl When Shell Window In Resized (Doc ID 1909799.1)
2) Reboot ODA BASE nodes and retry, as this may be a temporary situation caused by OS

Send me the updates after those actions.
This can be a bug in OS or oakcli itself.
If the above actions wont fix the problem, send me the log file /opt/oracle/oak/log/ <server_name>/oakvmclient
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
Thank youuu soooo much , the issue is solved

but there is an issue in the repository , and I cannot start VM

[root@cairo3-oda0 ~]# oakcli show repo prodrepo -node 0
Resource: prodrepo_0
        AutoStart          :       restore
        DG                   :       RECO
        Device              :       /dev/asm/prodrepo-249
        ExpectedState   :       Online
        FreeSpace         :       706531.4M
        MountPoint        :       /u01/app/sharedrepo/prodrepo
        Name                :       prodrepo_0
        PFreeSpace        :       43.12%
        RepoType          :       shared
        Size                  :       1638400.0M
        State                :       Online
        Version             :       'NoneType' object has no attribute
                                       'getAttrValue'
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
send me the problematic command and its output.
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
[root@cairo3-oda0 ~]# oakcli start vm testvm

Start VM : testvm on Node Number : 0 failed.


I start VMs normally in another repository , but in this repository I cannot.
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
Send me the related log files, like you did in your previous problem.
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

Amr Samy
link of output of strace oakcli start vm testvm  :
 
http://www.mediafire.com/download/4jics3kzsastczd/output+of+strace+oakcli+start+vm.rar

Kindly can you specify locations of logs that can help to solve the problem ?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator

Location: in ODA BASE in the relevant node where the commands failed 

/opt/oracle/oak/log/<server_name>/client/oakcli.log 

Also check the oakd log files. 
Location: in ODA BASE in the relevant node where the commands failed; 

/opt/oracle/oak/log/<server_name>/oak 

9 Mar 2016 17:33 tarihinde "Amr Samy [via Erman Arslan's Oracle Forum]" <[hidden email]> yazdı:
link of output of strace oakcli start vm testvm  :
 
http://www.mediafire.com/download/4jics3kzsastczd/output+of+strace+oakcli+start+vm.rar

Kindly can you specify locations of logs that can help to solve the problem ?

thanks


If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/ODA-Oakcli-commands-hang-when-executed-tp678p692.html
To start a new topic under Oracle Database Appliance(ODA) & VM, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

rkrieg
Hi,

I have the same problem. After importing the dbvm into the repository i'm not able to start the vm with

oakcli start vm dbvm

It just says :

Start VM : dbvm on Node Number : 0 failed.

There is a bug  bug: 21101080 to solve this you should edit the vm.cfg and change :

xvdb:/OVS/Repositories/appsrepo/.ACFS/snaps/dbvm/VirtualMachines/dbvm/cdrom,r
 to:
 xvdb:cdrom,r

But when you state :  oakcli show vm dbvm  this doesn't show up, not even after restarting oak or oda_base or even a physical reboot of the both nodes of the cluster via the ILOM.

Any idea's ?
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
Hi,

1)Did you take corrective action for bug : 21101080

2)Send me the output of "oakcli show vm dbvm" and "oakcli show vm"
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

rkrieg
Hi,

We changed the vm.cfg to solve the bug. Here's the output of the commands :

[root@odabase0 network-scripts]# oakcli show vm

          NAME                                  NODENUM         MEMORY          VCPU            STATE           REPOSITORY

        appvm                                   0               6196M              1            OFFLINE         appsrepo
        dbvm                                    0               2048M              1            OFFLINE         appsrepo



[root@odabase0 network-scripts]# oakcli show vm dbvm
The Resource is : dbvm
        AutoStart       :       restore
        CPUPriority     :       100
        Disks           :       |file:/OVS/Repositories/appsrepo/.A
                                CFS/snaps/dbvm/VirtualMachines/dbvm
                                /50d134578a724464995d7b4e6fbb5bdf.i
                                mg,xvda,w||,xvdb:/OVS/Repositories/
                                appsrepo/.ACFS/snaps/dbvm/VirtualMa
                                chines/dbvm/cdrom,r|
        Domain          :       XEN_PVM
        DriverDomain    :       False
        ExpectedState   :       offline
        FailOver        :       false
        IsSharedRepo    :       true
        Keyboard        :       en-us
        MaxMemory       :       2048M
        MaxVcpu         :       2
        Memory          :       2048M
        Mouse           :       OS_DEFAULT
        Name            :       dbvm
        Networks        :       |bridge=net1|
        NodeNumStart    :       0
        OS              :       OL_5
        PrefNodeNum     :       0
        PrivateIP       :       None
        ProcessorCap    :       100
        RepoName        :       appsrepo
        State           :       Offline
        TemplateName    :       otml_dbtemp1
        VDisks          :       |0|
        Vcpu            :       1
        cpupool         :       default-unpinned-pool
Reply | Threaded
Open this post in threaded view
|

Re: ODA - Oakcli commands hang when executed

ErmanArslansOracleBlog
Administrator
I could not understand...
Please explain what your problem is...

you sent me the outputs. So, as I see, oakcli creates proper outputs. What is your problem?
12