Welcome, Guest
Username: Password: Remember me
This forum is dedicated to discussions around storage and networking in cloud computing.
  • Page:
  • 1
  • 2

TOPIC: Add primary storage failed

Add primary storage failed 1 year 4 months ago #9155

  • willcao
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I encounted a problem when I attempt to add primary storage to cluster.

My host is RHEL6 with KVM , and storage is NFS . When I add the NFS storage as primary storage , there display an error:Failed to add storage pool.

And the host’s log file /var/log/cloud/agent/agent.log show the massage:
libvir: Storage error : Storage pool not found: no pool with matching uuid
libvir: error : internal error Child process (/bin/mount 10.6.159.35:/home/nfs /mnt/27860fd6-1566-3337-8d4f-645e630cf2ea) status une
xpected: exit status 1

But I can mount the NFS both on the host server and management server manually.

What can I do to resolve the issue?

Thanks!
The administrator has disabled public write access.

Re: Add primary storage failed 1 year 4 months ago #9272

  • Ynessb
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
First which version of NFS are u using ?
If u are using the NFSV4, you should change it to NFSV3 by disabling the NFSV4 support on /etc/sysconfig/nfs...
There are some issues when u try NFSV4 with KVM...
The administrator has disabled public write access.
The following user(s) said Thank You: ke4qqq

Re: Add primary storage failed 1 year 4 months ago #9462

  • hpnx
  • hpnx's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
I'm having the same issues when trying to add primary storage to Cluster01.

System VM templates is fixed, agent is installed.

Setup:
CloudStack-3.0.0-1-rhel6.2.tar.gz
Mgmt CentOS 6.2
/mnt/primary => /exports/primary @ Host01
/mnt/secondary => /exports/secondary @ Host01

Host01
CentOS 6.2, KVM, disabled NFSv4

SELinux disabled on both, firewall open


Webinterface says "failed to add storage"


Catalina.out @ Mgmt01:
pastebin.com/a7pa0AMH


Agent.log @ Host01:

libvir: Storage error : Storage pool not found: no pool with matching uuid
libvir: error : internal error Child process (/bin/mount Host01:/mnt/primary /mnt/c7a4443f-0d8b-3824-b336-d0f4b6aa0429) status unexpected: exit status 32

host01# yum list | grep libvirt
libvirt.x86_64 0.9.4-23.el6_2.6 @updates
libvirt-client.x86_64 0.9.4-23.el6_2.6 @updates
fence-virtd-libvirt.x86_64 0.2.3-5.el6 base
fence-virtd-libvirt-qpid.x86_64 0.2.3-5.el6 base
libvirt-cim.i686 0.5.14-2.el6 base
libvirt-cim.x86_64 0.5.14-2.el6 base
libvirt-client.i686 0.9.4-23.el6_2.6 updates
libvirt-devel.i686 0.9.4-23.el6_2.6 updates
libvirt-devel.x86_64 0.9.4-23.el6_2.6 updates
libvirt-java.noarch 0.4.7-1.el6 base
libvirt-java-devel.noarch 0.4.7-1.el6 base
libvirt-java-javadoc.noarch 0.4.7-1.el6 base
libvirt-lock-sanlock.x86_64 0.9.4-23.el6_2.6 updates
libvirt-python.x86_64 0.9.4-23.el6_2.6 updates
libvirt-qmf.x86_64 0.3.0-4.el6 base
libvirt-qpid.x86_64 0.2.22-6.el6 base
libvirt-snmp.x86_64 0.0.2-3.el6 base
ocaml-libvirt.x86_64 0.6.1.0-6.2.el6 base
ocaml-libvirt-devel.i686 0.6.1.0-6.2.el6 base
ocaml-libvirt-devel.x86_64 0.6.1.0-6.2.el6 base
The administrator has disabled public write access.

Re: Add primary storage failed 1 year 4 months ago #9481

  • ke4qqq
  • ke4qqq's Avatar
  • OFFLINE
  • Administrator
  • Posts: 620
  • Thank you received: 69
  • Karma: 22
Can we see log snipperts from /var/log/cloud/management/management-server.log?
The administrator has disabled public write access.

Re: Add primary storage failed 1 year 4 months ago #9499

  • hpnx
  • hpnx's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Sure: pastebin.com/sUuPmYM1

I grepped WARN from management-server.log. Worth mentioning; I've had a primary storage once but something was missing (I think NFS wasnt working properly, nfs-hang) and I removed it (deactivate, remove VMs', remove).
The administrator has disabled public write access.

Re: Add primary storage failed 10 months 1 week ago #12488

M glad that we have a discussion on this topic.....
ive been facing a Problem somewhat similar to this........
I'll explain in detail .....


Error Messege while while starting the VM:

Start System VM - Failed - Fail to start system vm

Dashboard Alert says:


Host - Alert State
Host - nfs://x.x.x.x/mnt/secondary has been detected in Alert state.



I get the agent.log as this:


2012-09-05 17:02:32,737{GMT} INFO [resource.computing.LibvirtComputingResource] (main:) agent.properties found at /etc/cloud/agent/agent.properties
2012-09-05 17:02:32,737 INFO [resource.computing.LibvirtComputingResource] (main:null) agent.properties found at /etc/cloud/agent/agent.properties
2012-09-05 17:02:32,748{GMT} INFO [cloud.agent.Agent] (main:) Agent [id = 11 : type = LibvirtComputingResource : zone = 9 : pod = 10 : workers = 5 : host = 192.168.1.242 : port = 8250
2012-09-05 17:02:32,748 INFO [cloud.agent.Agent] (main:null) Agent [id = 11 : type = LibvirtComputingResource : zone = 9 : pod = 10 : workers = 5 : host = 192.168.1.242 : port = 8250
2012-09-05 17:02:32,757{GMT} INFO [utils.nio.NioClient] (Agent-Selector:) Connecting to 192.168.1.242:8250
2012-09-05 17:02:32,757 INFO [utils.nio.NioClient] (Agent-Selector:null) Connecting to 192.168.1.242:8250
2012-09-05 17:02:33,089{GMT} INFO [utils.nio.NioClient] (Agent-Selector:) SSL: Handshake done
2012-09-05 17:02:33,089 INFO [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
2012-09-05 17:02:33,234{GMT} INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:) Default Builder inited.
2012-09-05 17:02:33,234 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
2012-09-05 17:02:33,397{GMT} INFO [cloud.agent.Agent] (Agent-Handler-2:) Proccess agent startup answer, agent id = 11
2012-09-05 17:02:33,397 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 11
2012-09-05 17:02:33,397{GMT} INFO [cloud.agent.Agent] (Agent-Handler-2:) Set agent id 11
2012-09-05 17:02:33,397 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 11
2012-09-05 17:02:33,398{GMT} INFO [cloud.agent.Agent] (Agent-Handler-2:) Startup Response Received: agent id = 11
2012-09-05 17:02:33,398 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 11
libvir: Storage error : internal error storage pool is not active


AND TAKE THIS TOO:

When i try to do an ssh

ssh -i /root/.ssh/id_rsa.cloud -p 3922 This email address is being protected from spambots. You need JavaScript enabled to view it.

i get :

ssh: connect to host x.x.x.x port 3922: Connection refused
but ive cross checked port 3922 is open

And here is my nmanagement -server log:




FYI:
M RUNNIN Cloudstack 2.2.13 on Centos 5.7 server

It would be much appreciated if i get a good solution for my query ......
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.343 seconds
About BuildaCloud.org Resources Site Info

Build a Cloud.org is a resource for those users who want to build cloud computing software with both open source and proprietary software.