Topic
6 replies Latest Post - ‏2012-01-05T16:59:34Z by Enrico_Joedecke
nukite8d
nukite8d
98 Posts
ACCEPTED ANSWER

Pinned topic Mounting NFS with IBM.AgFileSystem

‏2009-09-08T09:22:27Z |
Hi group,
we are trying to mount a nfs filesystem using the IBM.AgFilesystem class on Linux (SuSe 2.6.16.46-0.12-default)

First we got the following problem, without the optional parameter MountPoint:
mkrsrc IBM.AgFileSystem Name="mqdata" DeviceName="localhost:/var/mqdata" Vfs="nfs"
mkrsrc: Attribute MountPoint is required when defining resource IBM.AgFileSystem.

Giving that parameter the resource is created, but it stays offline.
Independent of the real mount state.
mkrsrc IBM.AgFileSystem Name="mqdata" MountPoint="/mqdata" DeviceName="localhost:/var/mqdata" Vfs="nfs"

We used the documantation from
http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=/com.ibm.cluster.rsct_5200_09.admin.doc/bl503_defifs.html

"""
To create an IBM.AgFileSystem resource that is independent of the harvested resources, use the mkrsrc command. On the mkrsrc command, use the:
  • Name attribute to assign a name to the IBM.AgFileSystem resource.
  • Vfs attribute to specify the type of file system the resource will represent.
  • DeviceName attribute to specify the name of an existing file system
  • MountPoint attribute to specify an existing mount point.
  • Force attribute if an IBM.AgFileSystem resource that specifies the same DeviceName attribute value already exists. This will be the case if the file system was harvested by the storage resource manager. The Force attribute is not needed if the device is not already known to the storage resource manager (as in the case of NFS).
"""

What did we do wrong?

Best regards
Manfred Farwick
Updated on 2012-01-05T16:59:34Z at 2012-01-05T16:59:34Z by Enrico_Joedecke
  • Enrico_Joedecke
    Enrico_Joedecke
    109 Posts
    ACCEPTED ANSWER

    Re: Mounting NFS with IBM.AgFileSystem

    ‏2009-09-08T18:41:09Z  in response to nukite8d
    Hello,

    please check the definition of the IBM.AgFileSystem resource, there should be a floating resource (ResourceType=1) containing all nodes in the NodeNameList as well as one constituent resource for each node, where the resource is defined on (ResourceType=0).

    Additionally, NFS Mountpoints only work in case the NFS filesystem is mounted 'rw' (not read-only).
    What is the reason for mounting the the filesystem from 'localhost', is it only a single node domain ?

    Enrico Joedecke
    • nukite8d
      nukite8d
      98 Posts
      ACCEPTED ANSWER

      Re: Mounting NFS with IBM.AgFileSystem

      ‏2012-01-04T15:38:56Z  in response to Enrico_Joedecke
      Happy new year to you.

      wow, this post was unnoticed 2 years ^^
      But today I had to retry the NFS-mount, and have still problems/questions.
      We have a 2-node cluster (node1, node2)
      and an nfs-mount (nfsserver:/vol/jade/rtc /var/opt/JADE/rtc nfs4 rw,soft,rsize=8196,wsize=8196 0 0)
      active on both nodes.
      So I think, I need two fixed resources.

      My command to get this is the following:
      >mkrsrc IBM.AgFileSystem Name="node1_rtc-fs" DeviceName="nfsserver:/vol/jade/rtc" Vfs="nfs" MountPoint="/var/opt/JADE/rtc" NodeNameList={"node1"} ResourceType=0

      But it writes out an error-msg:
      2668-027 A UserControl resource can only be created as an aggregate resource with a ResourceType of 1
      My current doc says:
      """
      The IBM.AgFileSystem resource class only supports the values 0 and 1. The default value of this
      attribute is 0 (fixed), if the attribute is not specified when a new
      IBM.AgFileSystem resource is created.
      """
      http://Admin&Users Guide 3.2.2,SC34-2583-03,p290

      Is it only possible to create a floater with one constituent?
      All I need is a fixed resource.
  • Enrico_Joedecke
    Enrico_Joedecke
    109 Posts
    ACCEPTED ANSWER

    Re: Mounting NFS with IBM.AgFileSystem

    ‏2012-01-04T16:34:53Z  in response to nukite8d
    Hello,

    the resouce class 'IBM.AgFileSystem' is intended for 'aggregated filesystems' (floating resources) - therefore the 'Ag' within the class name. The resources within this resource class are typically harvested. User-defined resources have to be floating resources, so the observed error is expected.
    The resource class IBM.AgFileSystem does not support 'concurrent resources' (ResourceType 2), so this is also not an option.

    You have to create a floating resource within this resource class, even if the resource is defined on a single node only.

    Enrico Joedecke
    • nukite8d
      nukite8d
      98 Posts
      ACCEPTED ANSWER

      Re: Mounting NFS with IBM.AgFileSystem

      ‏2012-01-05T09:58:20Z  in response to Enrico_Joedecke
      ah, that's why it is called "Ag". Thanks ^^

      So, if I need a fixed nfs-filesystem,
      is there another IBM. class I could use?

      IBM.FileSystem?
    • nukite8d
      nukite8d
      98 Posts
      ACCEPTED ANSWER

      Re: Mounting NFS with IBM.AgFileSystem

      ‏2012-01-05T15:15:29Z  in response to Enrico_Joedecke
      Further Testing:

      Created XML-Policy:
      
      <Resource name=
      "vltihamwa02_nfs-fs" class=
      "IBM.AgFileSystem" node=
      "vltihamwa02"> <ClassAttributesReference> <IBM.AgFileSystemAttributes name=
      "IBM.AgFileSystem.nfs"/> </ClassAttributesReference> </Resource>   <ResourceGroup name=
      "nfsmounts-rg" class=
      "IBM.ResourceGroup"> <DesiredState>Online</DesiredState> <Members> <Resource name=
      "vltihamwa02_nfs-fs" class=
      "IBM.AgFileSystem" node=
      "vltihamwa02"/> </Members> <MemberLocation>Collocated</MemberLocation> <Priority>0</Priority> <AllowedNode>ALL</AllowedNode> </ResourceGroup>
      


      The XML is valid, but can't be activated
      SAMP0050E: An error occurred in class: SAMResourceModifier method: createFileSystemResource. The resource vltihamwa02_nfs-fs could not be defined. The received exception was java.rmi.RemoteException: A response from RMC failed with message "2668-027 A UserControl resource can only be created as an aggregate resource with a ResourceType of 1".; nested exception is:
      com.ibm.sam.rmci.RMCErrNumException: 2668-027 A UserControl resource can only be created as an aggregate resource with a ResourceType of 1
      EXPLANATION: The process was interrupted by this exception and cannot complete.
      USER ACTION: Check if this resource was described properly in the XML policy document and restart the activation.

      Shouldn't the schema prohibit this unpossible configuration?
      For what reason is
      
      <Resource class=
      "IBM.AgFileSystem"
      
      allowed?
  • Enrico_Joedecke
    Enrico_Joedecke
    109 Posts
    ACCEPTED ANSWER

    Re: Mounting NFS with IBM.AgFileSystem

    ‏2012-01-05T16:59:34Z  in response to nukite8d
    Hello,

    it looks like the checking within 'sampolicy' is not correct, allowing to define IBM.AgFileSystem resouces that are not floating (no 'movegroup').
    We will check the current implementation and correct the checker if needed.

    Regarding "Is there another resource class to be used, e.g. IBM.FileSystem":
    Please do not use this class with System Automation. It has not been created for use by SA MP initially, and we did not adjust it when developing the StorageRM. Its main purpose is to contain all 'local' filesystems, with additional information like %full etc. .
    If you want to manage storage resources with SA MP, the choice should be the class IBM.AgFileSystem. Of course you can always create IBM.Application resources, but I recommend to do this only if IBM.AgFileSystem can't be used.

    Enrico Joedecke