How to create an ISO/NFS storage domain and attach it?

Latest response

I've RTFM, searched the KB, and I still can't find anything on how to do this.  First, a bit of background:

 

The original ISO domain that was created during RHEVM install has been deleted, and so I need to create a new ISO domain.

 

I've installed all the requisite packages for NFS, created a directory, set the permissions on the directory to vdsm:kvm ownership, I've created an unlimited access(rw) directive to the directory in /etc/exports, and reloaded the NFS services.

 

When I try to either add a new domain or import an existing domain in the RHEVM interface, I'm receiving the very verbose error message Failed to add Storage Domain.

 

There's also something about an error code for the connection returned by VDSM was following General Exception.

 

I can mount the nfs volume on a linux workstation without issue.  The directory empty, so there's no metadata structures to modify.

 

Anyone have any ideas?

 

Thanks!

-Kermit Short

Responses

You need to create a new storage domain with type ISO domain from Storage tab and attach it to the DC.

 

First think you have to check is to mount the NFS share on all the hypervisors in the DC and verify they can successfully mount the share just like you did it with a linux work station using nfsv3 if it's RHEV-3.0.

 

If it's still not successful, you need ot attach rhevm.log, vdsm.log to investigate this further.

OK my problems ultimately reduced to TCPwrappers.  When I allow connections to all daemons on the subnet, I can attach the ISO/NFS domain.  When I enable our standard TCPwrappers configuration for NFS, I am unable to attach to the NFS share.  I'll be doing some testing based on advice from Red Hat and once I figure out which particular daemons I need to list, I'll update with more info.

Cheers Kermit. I look forward to hearing what you learn.

It looks like the culprit was rpc/portmap.  One of the TAM experts for RHEV determined that while RHEL5 and below uses portmap to bind rpc requests to application ports, RHEL6 prefers rpcbind.  Upon changing portmap to rpcbind (not sunrpc) in the /etc/hosts.allow file, all NFS mount requests from the RHEV host were successful, and I was able to import the ISO NFS domain into the data center and utilize it.

 

There will be a forthcoming KB article on this, and if I can remember to post it here when I receive the link, I'll do so.

Special thanks to Bryan Yount and Kevin Masaryk at Red Hat for their help on this!

Hope that helps!

-Kermit Short

That's great, thanks for following up!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.