Topic
  • 4 replies
  • Latest Post - ‏2012-01-17T14:08:14Z by Enrico_Joedecke
admin-sys
admin-sys
1 Post

Pinned topic Monitor file system on Linux with IBM.StorageRM and IBM.AgFileSystem

‏2012-01-16T17:45:39Z |
Hello,

I try to mount and monitor a file system (ext3 ) on a linux cluster. The file systeme is active on a node a 1 time.

I want monitor the dependancy too : FS (ext3)-> logical volume -> volume group -> disk.

If I read the documentation , I must use IBM.StorageRM and the class IBM.AgFileSystem.

root@test-ibm-tsa-2 ~# lssrc -a
IBM.StorageRM rsct_rm 4012 active

So if I list IBM.AgFileSystem Class , I find the system file that I want to mount/monitor in the cluster. I suppose that theses ressources in the class are automaticaly created by IBM.StorageRM.
But I can't modify the shared Resouce (Ressource 1)in order to add it in the cluster.

chrsrc -s 'Name == "e369b7a9-feff-4c71-a326-6ff31425ab9c"' IBM.AgFileSystem MountPoint=/lun01
root@test-ibm-tsa-2 ~# chrsrc -s 'Name == "e369b7a9-feff-4c71-a326-6ff31425ab9c"' IBM.AgFileSystem DeviceName="/dev/vgdata/lun01"
2668-042 Attribute "DeviceName" cannot be changed for the harvested file systems.
2668-042 Attribute "DeviceName" cannot be changed for the harvested file systems.
2668-042 Attribute "DeviceName" cannot be changed for the harvested file systems.
Whats is the best pratice to do that ? If i create a new resource i suppose that IBM.StorageRM doesn't monitor this. should I use the independant ressource (2 and 3).

Thanks in advance,
Fabien.
lsrsrc -l IBM.AgFileSystem
Resource Persistent Attributes for IBM.AgFileSystem
resource 1:
ResourceHandle = "0x2038 0xffff 0x30a12e3f 0x8144bd02 0x9267547a 0x2d694770"
Name = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
ResourceType = 1
MountPoint = ""
DeviceName = ""
Vfs = "ext3"
AggregateResource = "0x3fff 0xffff 0x00000000 0x00000000 0x00000000 0x00000000"
ContainerResource = "0x204c 0xffff 0x30a12e3f 0x8144bd02 0x9267547a 0x2d4a6d00"
GhostDevice = 0
ResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
ProtectionMode = 1
UserControl = 0
SysMountPoint = ""
Label = ""
FSID = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
PreOnlineMethod = 0
ContainerResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
AutoMonitor = 0
Options = ""
PreOfflineMethod = 0
ActivePeerDomain = "tivoli-phy"
NodeNameList = {"test-ibm-tsa-1.aixlan.local","test-ibm-tsa-2.aixlan.local"}
resource 2:
ResourceHandle = "0x6038 0xffff 0x65ece38c 0x2e327fd6 0x1267547a 0x2cb78788"
Name = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
ResourceType = 0
MountPoint = ""
DeviceName = "/dev/vgdata/lun01"
Vfs = "ext3"
AggregateResource = "0x2038 0xffff 0x30a12e3f 0x8144bd02 0x9267547a 0x2d694770"
ContainerResource = "0x604c 0xffff 0x65ece38c 0x2e327fd6 0x1267547a 0x2bfbe078"
GhostDevice = 1
ResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
ProtectionMode = 1
UserControl = 0
SysMountPoint = ""
Label = ""
FSID = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
PreOnlineMethod = 0
ContainerResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
AutoMonitor = 0
Options = ""
PreOfflineMethod = 0
ActivePeerDomain = "tivoli-phy"
NodeNameList = {"test-ibm-tsa-1.aixlan.local"}
resource 3:
ResourceHandle = "0x6038 0xffff 0x88d05215 0x8144bd02 0x12675479 0xb25b3430"
Name = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
ResourceType = 0
MountPoint = ""
DeviceName = "/dev/vgdata/lun01"
Vfs = "ext3"
AggregateResource = "0x2038 0xffff 0x30a12e3f 0x8144bd02 0x9267547a 0x2d694770"
ContainerResource = "0x604c 0xffff 0x88d05215 0x8144bd02 0x12675479 0xb258f210"
GhostDevice = 0
ResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
ProtectionMode = 1
UserControl = 0
SysMountPoint = ""
Label = ""
FSID = "e369b7a9-feff-4c71-a326-6ff31425ab9c"
PreOnlineMethod = 0
ContainerResourceId = "HGREDA_jHtI_2002_1G06_2ctV_s7jM_mABzgb"
AutoMonitor = 0
Options = ""
PreOfflineMethod = 0
ActivePeerDomain = "tivoli-phy"
NodeNameList = {"test-ibm-tsa-2.aixlan.local"}
Updated on 2012-01-17T14:08:14Z at 2012-01-17T14:08:14Z by Enrico_Joedecke
  • xf00657
    xf00657
    110 Posts

    Re: Monitor file system on Linux with IBM.StorageRM and IBM.AgFileSystem

    ‏2012-01-17T08:26:50Z  
    Hello Fabien,

    IBM.StorageRM creates resources of Type=1 which means Floating Resources so you see one Resource of Type "0" and so many Constituents of Type "1" as you have nodes in the cluster. Please try "lsrsrc -*Ab* IBM.AgFileSystem" instead of "lsrsrc -*l* ....". So you can see the names of the created (harvested) resources. You only have to create a ResourceGroup and include the IBM.AgFileSystem resources.
    You cannot change the names or any attribiutes of the resources, they will be harvested as defined in "/etc/fstab". Changes you have to make here. Here one example of one of our IBM.AgFilesSystem resource but in AIX:

    gxpsasw1:/etc:>lsrsrc -Ab IBM.AgFileSystem|more
    Resource Persistent and Dynamic Attributes for IBM.AgFileSystem
    resource 1:
    ResourceHandle = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    Name = "opt_sas"
    ResourceType = 1
    MountPoint = ""
    DeviceName = ""
    Vfs = "jfs2"
    AggregateResource = "0x3fff 0xffff 0x00000000 0x00000000 0x00000000 0x00000000"
    ContainerResource = "0x204c 0xffff 0x30e61545 0xd3868808 0x921e380a 0x8039bcde"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"wxpsasw1.gadeg.de","gxpsasw1"}
    ConfigChanged = 1
    OpState = 1
    HealthState = 0

    resource 3:
    ResourceHandle = "0x6038 0xffff 0x13bc6b59 0xb847858f 0x121e380a 0x7e7f4091"
    Name = "opt_sas"
    ResourceType = 0
    MountPoint = ""
    DeviceName = "/dev/saslv02"
    Vfs = "jfs2"
    AggregateResource = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    ContainerResource = "0x604c 0xffff 0x13bc6b59 0xb847858f 0x121e380a 0x7e6e3d69"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"wxpsasw1.gadeg.de"}
    ConfigChanged = 1
    OpState = 1
    HealthState = 5

    resource 24:
    ResourceHandle = "0x6038 0xffff 0x6207b7de 0xd3868808 0x121e380a 0x5b218c4b"
    Name = "opt_sas"
    ResourceType = 0
    MountPoint = ""
    DeviceName = "/dev/saslv02"
    Vfs = "jfs2"
    AggregateResource = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    ContainerResource = "0x604c 0xffff 0x6207b7de 0xd3868808 0x121e380a 0x5af1388b"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"gxpsasw1"}
    ConfigChanged = 1
    OpState = 2
    HealthState = 0

    and here the example from the Policy:

    <ResourceReference name="Resource-Reference-IBM.AgFileSystem.R1">
    <ReferencedResource>
    <Name>opt_sas</Name>
    <Class>IBM.AgFileSystem</Class>
    <Node/>
    </ReferencedResource>
    </ResourceReference>

    <ResourceGroup name="filesystems-rg" class="IBM.ResourceGroup">
    <DesiredState>Online</DesiredState>
    <Members>
    <ResourceReference name="Resource-Reference-IBM.AgFileSystem.R1" mandatory="true"/>
    </Members>
    <MemberLocation>Collocated</MemberLocation>
    <Priority>150</Priority>
    <AllowedNode>ALL</AllowedNode>
    </ResourceGroup>

    Nothing else you have to do.

    Regards
    Rüdiger
  • xf00657
    xf00657
    110 Posts

    Re: Monitor file system on Linux with IBM.StorageRM and IBM.AgFileSystem

    ‏2012-01-17T08:33:31Z  
    • xf00657
    • ‏2012-01-17T08:26:50Z
    Hello Fabien,

    IBM.StorageRM creates resources of Type=1 which means Floating Resources so you see one Resource of Type "0" and so many Constituents of Type "1" as you have nodes in the cluster. Please try "lsrsrc -*Ab* IBM.AgFileSystem" instead of "lsrsrc -*l* ....". So you can see the names of the created (harvested) resources. You only have to create a ResourceGroup and include the IBM.AgFileSystem resources.
    You cannot change the names or any attribiutes of the resources, they will be harvested as defined in "/etc/fstab". Changes you have to make here. Here one example of one of our IBM.AgFilesSystem resource but in AIX:

    gxpsasw1:/etc:>lsrsrc -Ab IBM.AgFileSystem|more
    Resource Persistent and Dynamic Attributes for IBM.AgFileSystem
    resource 1:
    ResourceHandle = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    Name = "opt_sas"
    ResourceType = 1
    MountPoint = ""
    DeviceName = ""
    Vfs = "jfs2"
    AggregateResource = "0x3fff 0xffff 0x00000000 0x00000000 0x00000000 0x00000000"
    ContainerResource = "0x204c 0xffff 0x30e61545 0xd3868808 0x921e380a 0x8039bcde"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"wxpsasw1.gadeg.de","gxpsasw1"}
    ConfigChanged = 1
    OpState = 1
    HealthState = 0

    resource 3:
    ResourceHandle = "0x6038 0xffff 0x13bc6b59 0xb847858f 0x121e380a 0x7e7f4091"
    Name = "opt_sas"
    ResourceType = 0
    MountPoint = ""
    DeviceName = "/dev/saslv02"
    Vfs = "jfs2"
    AggregateResource = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    ContainerResource = "0x604c 0xffff 0x13bc6b59 0xb847858f 0x121e380a 0x7e6e3d69"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"wxpsasw1.gadeg.de"}
    ConfigChanged = 1
    OpState = 1
    HealthState = 5

    resource 24:
    ResourceHandle = "0x6038 0xffff 0x6207b7de 0xd3868808 0x121e380a 0x5b218c4b"
    Name = "opt_sas"
    ResourceType = 0
    MountPoint = ""
    DeviceName = "/dev/saslv02"
    Vfs = "jfs2"
    AggregateResource = "0x2038 0xffff 0x30e61545 0xd3868808 0x921e380a 0x80a3b4bc"
    ContainerResource = "0x604c 0xffff 0x6207b7de 0xd3868808 0x121e380a 0x5af1388b"
    GhostDevice = 0
    ResourceId = "000256c20000d9000000012aeaf93cbe_2"
    ProtectionMode = 1
    UserControl = 0
    SysMountPoint = "/opt/sas"
    Label = "/opt/sas"
    FSID = "000256c20000d9000000012aeaf93cbe.2"
    PreOnlineMethod = 0
    ContainerResourceId = "000256c20000d9000000012aeaf93cbe_2"
    AutoMonitor = 1
    Options = "rw"
    ActivePeerDomain = "TSAMP_SAS_PROD_01"
    NodeNameList = {"gxpsasw1"}
    ConfigChanged = 1
    OpState = 2
    HealthState = 0

    and here the example from the Policy:

    <ResourceReference name="Resource-Reference-IBM.AgFileSystem.R1">
    <ReferencedResource>
    <Name>opt_sas</Name>
    <Class>IBM.AgFileSystem</Class>
    <Node/>
    </ReferencedResource>
    </ResourceReference>

    <ResourceGroup name="filesystems-rg" class="IBM.ResourceGroup">
    <DesiredState>Online</DesiredState>
    <Members>
    <ResourceReference name="Resource-Reference-IBM.AgFileSystem.R1" mandatory="true"/>
    </Members>
    <MemberLocation>Collocated</MemberLocation>
    <Priority>150</Priority>
    <AllowedNode>ALL</AllowedNode>
    </ResourceGroup>

    Nothing else you have to do.

    Regards
    Rüdiger
    Hallo Fabien,
    I've to correct my first sentence:
    IBM.StorageRM creates resources of Type=1 which means Floating Resources so you see one aggregate Resource of Type "1" and so many Constituents of Type "0" as you have nodes in the cluster.
    Regards
    Rüdiger
  • nukite8d
    nukite8d
    98 Posts

    Re: Monitor file system on Linux with IBM.StorageRM and IBM.AgFileSystem

    ‏2012-01-17T12:30:04Z  
    Hi,
    to use harvested resources in your policy, you have to create References.

    E.g. every samadapter-ip has a Relationship to a Network-Interface Reference.

    You can use the AgfileSystem in the same manner.

    Cheers,
    Manfred
  • Enrico_Joedecke
    Enrico_Joedecke
    110 Posts

    Re: Monitor file system on Linux with IBM.StorageRM and IBM.AgFileSystem

    ‏2012-01-17T14:08:14Z  
    Hello,

    even Ruediger and Manfred already answered the question, some more information regarding harvested IBM.AgFileSystem resources:

    It is not possible to change the 'DeviceName' attribute of harvested resources, but you can adjust the attribute 'MountPoint'.
    However it is probably easier to adjust the system configuration so that the harvesting already gathers all information for the resource.

    => on Linux, if the filesystem has a 'label' defined, then the 'Name' of the resource will be harvested with the value specified for the filesystem label. The label is specified during filesytem creation, or using 'tune2fs -L <lable> ...'
    => if the filesystem is specified within the file /etc/fstab (option 'noauto',and 'nofsck'!), then the attribute 'SysMountPoint' of the resource is also harvested, and then there is no further need to specify/adjust the attribute 'MountPoint'.

    Note that you can force a (node local) harvesting of StorageRM resources using 'refrsrc IBM.Disk', or by restarting the domain.

    Enrico