Video Screencast Help

Resources state offline

Created: 25 May 2013 • Updated: 04 Apr 2014 | 16 comments
This issue has been solved. See solution.

Hi

 

After created the resource and trying to going online for resource this command came (

Resource has not been probed on system ) when i probe the resource tell me hares -probe ( name resource )sys (name system) success . but  still offline .  i working from VOM GUI. 

 

Regards

 

 

Operating Systems:
Discussion Filed Under:

Comments 16 CommentsJump to latest comment

rsharma1's picture

which VCS resource type are you referring to? A Mount resource, NIC resource etc? Can you post the o/p of VCS engine logs when you probe the resource?

solom's picture

When i probed resource ((   Operation completed successfully       hares -probe ( name vol -sys name for host
Success

solom's picture

Now when i created  nic and the nic online on the node 1 and 2  and trayed to go online with any resource this message came (  hares -online -force int-backup -sys node2
VCS WARNING V-16-1-12998 Group dependency is violated if resource ( resource name  goes online on system node2

stinsong's picture

Hi solom,

Pls paste your main.cf file to us to understand resource and group dependency relationship.

solom's picture

// This sample file contains two types of configurations:
// 1. NFS resource inside a service group containing Share resources.
// 2. NFS resource in a separate parallel service group.
//
// If you intend to use Share resource in multiple service groups, you
// must keep the NFS resource in a separate parallel service group.

// 1. NFS resource inside service group containing Share resources.

include "types.cf"

cluster vcs (
)

system sysa (
)

system sysb (
)

group groupy (
    SystemList = { sysa = 0, sysb = 1 }
    AutoStart = 0
    AutoStartList = { sysb }
    )

    DiskGroup groupydg (
        DiskGroup = groupydg
        )

    IP IP_172_29_9_100 (
        Device = groupy_eth0
        Address = "172.29.9.100"
        NetMask = "255.255.255.0"
        )

    Mount export3 (
        MountPoint = "/export3"
        BlockDevice = "/dev/vx/dsk/groupydg/vol3"
        FSType = vxfs
        FsckOpt="y"
        MountOpt = rw
        )

    Mount export4 (
        MountPoint = "/export4"
        BlockDevice = "/dev/vx/dsk/groupydg/vol4"
        FSType = ext2
        FsckOpt="y"
        MountOpt = rw
        )

    NFS NFS_groupy_16 (
        Nproc = 16
        )

    NIC groupy_eth0 (
        Device = eth0
        )

    Share share_export3_172_29_9_143 (
        Client = "172.29.9.143"
        PathName = "/export3"
        )

    Share share_export4_172_29_9_144 (
        Client = "172.29.9.144"
        PathName = "/export4"
        )

    Volume groupydg_vol3 (
        Volume = vol3
        DiskGroup = groupydg
        )

    Volume groupydg_vol4 (
        Volume = vol4
        DiskGroup = groupydg
        )

    IP_172_29_9_100 requires groupy_eth0
    IP_172_29_9_100 requires share_export3_172_29_9_143
    IP_172_29_9_100 requires share_export4_172_29_9_144
    export3 requires groupydg_vol3
    export4 requires groupydg_vol4
    groupydg_vol3 requires groupydg
    groupydg_vol4 requires groupydg
    share_export3_172_29_9_143 requires NFS_groupy_16
    share_export3_172_29_9_143 requires export3
    share_export4_172_29_9_144 requires NFS_groupy_16
    share_export4_172_29_9_144 requires export4

    // resource dependency tree
    //
    //    group groupy
    //    {
    //    IP IP_172_29_9_100
    //        {
    //        NIC groupy_eth0
    //        Share share_export3_172_29_9_143
    //            {
    //            NFS NFS_groupy_16
    //            Mount export3
    //                {
    //                Volume groupydg_vol3
    //                    {
    //                    DiskGroup groupydg
    //                    }
    //                }
    //            }
    //        Share share_export4_172_29_9_144
    //            {
    //            NFS NFS_groupy_16
    //            Mount export4
    //                {
    //                Volume groupydg_vol4
    //                    {
    //                    DiskGroup groupydg
    //                    }
    //                }
    //            }
    //        }
    //    }

// 2. NFS resource in a separate parallel service group.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    DiskGroup test_dg (
        DiskGroup = nfsdg
        )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/vx/dsk/nfsdg/vol0"
        FSType = vxfs
        MountOpt = rw
        FsckOpt = "-n"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    Volume test_vol (
        DiskGroup = nfsdg
        Volume = vol0
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires test_vol
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    test_vol requires test_dg

    // resource dependency tree
    //
    //    group nfstest
    //    {
    //    NFSRestart test_nfsres
    //        {
    //        IP test_ip
    //            {
    //            Share test_share
    //                {
    //                NFSRestart test_nfsres_L
    //                    {
    //                    Mount test_mnt
    //                        {
    //                        Volume test_vol
    //                            {
    //                            DiskGroup test_dg
    //                            }
    //                        }
    //                    }
    //                }
    //            }
    //        }
    //    }

//3. NFS resource in parallel service group. Share resource with Native LVM and DiskReservation.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/mapper/vg1-lv1"
        FSType = ext3
        MountOpt = rw
        FsckOpt = "-y"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    LVMVolumeGroup lvm_vg1 (
        VolumeGroup = vg1
        )

    LVMLogicalVolume lvm_lv1 (
        LogicalVolume = lv1
        VolumeGroup = vg1
        )

    DiskReservation diskres (
        Disks @vcslx242 = { "/dev/sdb","/dev/sdc" }
        Disks @vcslx244 = { "/dev/sdf","/dev/sde" }
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires lvm_lv1
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    lvm_lv1 requires lvm_vg1
    lvm_vg1 requires diskres

//4. NFS resource in parallel service group. Share resource with Native LVM and without DiskReservation, LVM Tagging is enabled.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/mapper/vg1-lv1"
        FSType = ext3
        MountOpt = rw
        FsckOpt = "-y"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    LVMVolumeGroup lvm_vg1 (
        VolumeGroup = vg1
        EnableLVMTagging = 1
        )

    LVMLogicalVolume lvm_lv1 (
        LogicalVolume = lv1
        VolumeGroup = vg1
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires lvm_lv1
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    lvm_lv1 requires lvm_vg1
 

solom's picture

THIS IS FOR NODE 2  

 

 

 

 

// This sample file contains two types of configurations:
// 1. NFS resource inside a service group containing Share resources.
// 2. NFS resource in a separate parallel service group.
//
// If you intend to use Share resource in multiple service groups, you
// must keep the NFS resource in a separate parallel service group.

// 1. NFS resource inside service group containing Share resources.

include "types.cf"

cluster vcs (
)

system sysa (
)

system sysb (
)

group groupy (
    SystemList = { sysa = 0, sysb = 1 }
    AutoStart = 0
    AutoStartList = { sysb }
    )

    DiskGroup groupydg (
        DiskGroup = groupydg
        )

    IP IP_172_29_9_100 (
        Device = groupy_eth0
        Address = "172.29.9.100"
        NetMask = "255.255.255.0"
        )

    Mount export3 (
        MountPoint = "/export3"
        BlockDevice = "/dev/vx/dsk/groupydg/vol3"
        FSType = vxfs
        FsckOpt="y"
        MountOpt = rw
        )

    Mount export4 (
        MountPoint = "/export4"
        BlockDevice = "/dev/vx/dsk/groupydg/vol4"
        FSType = ext2
        FsckOpt="y"
        MountOpt = rw
        )

    NFS NFS_groupy_16 (
        Nproc = 16
        )

    NIC groupy_eth0 (
        Device = eth0
        )

    Share share_export3_172_29_9_143 (
        Client = "172.29.9.143"
        PathName = "/export3"
        )

    Share share_export4_172_29_9_144 (
        Client = "172.29.9.144"
        PathName = "/export4"
        )

    Volume groupydg_vol3 (
        Volume = vol3
        DiskGroup = groupydg
        )

    Volume groupydg_vol4 (
        Volume = vol4
        DiskGroup = groupydg
        )

    IP_172_29_9_100 requires groupy_eth0
    IP_172_29_9_100 requires share_export3_172_29_9_143
    IP_172_29_9_100 requires share_export4_172_29_9_144
    export3 requires groupydg_vol3
    export4 requires groupydg_vol4
    groupydg_vol3 requires groupydg
    groupydg_vol4 requires groupydg
    share_export3_172_29_9_143 requires NFS_groupy_16
    share_export3_172_29_9_143 requires export3
    share_export4_172_29_9_144 requires NFS_groupy_16
    share_export4_172_29_9_144 requires export4

    // resource dependency tree
    //
    //    group groupy
    //    {
    //    IP IP_172_29_9_100
    //        {
    //        NIC groupy_eth0
    //        Share share_export3_172_29_9_143
    //            {
    //            NFS NFS_groupy_16
    //            Mount export3
    //                {
    //                Volume groupydg_vol3
    //                    {
    //                    DiskGroup groupydg
    //                    }
    //                }
    //            }
    //        Share share_export4_172_29_9_144
    //            {
    //            NFS NFS_groupy_16
    //            Mount export4
    //                {
    //                Volume groupydg_vol4
    //                    {
    //                    DiskGroup groupydg
    //                    }
    //                }
    //            }
    //        }
    //    }

// 2. NFS resource in a separate parallel service group.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    DiskGroup test_dg (
        DiskGroup = nfsdg
        )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/vx/dsk/nfsdg/vol0"
        FSType = vxfs
        MountOpt = rw
        FsckOpt = "-n"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    Volume test_vol (
        DiskGroup = nfsdg
        Volume = vol0
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires test_vol
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    test_vol requires test_dg

    // resource dependency tree
    //
    //    group nfstest
    //    {
    //    NFSRestart test_nfsres
    //        {
    //        IP test_ip
    //            {
    //            Share test_share
    //                {
    //                NFSRestart test_nfsres_L
    //                    {
    //                    Mount test_mnt
    //                        {
    //                        Volume test_vol
    //                            {
    //                            DiskGroup test_dg
    //                            }
    //                        }
    //                    }
    //                }
    //            }
    //        }
    //    }

//3. NFS resource in parallel service group. Share resource with Native LVM and DiskReservation.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/mapper/vg1-lv1"
        FSType = ext3
        MountOpt = rw
        FsckOpt = "-y"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    LVMVolumeGroup lvm_vg1 (
        VolumeGroup = vg1
        )

    LVMLogicalVolume lvm_lv1 (
        LogicalVolume = lv1
        VolumeGroup = vg1
        )

    DiskReservation diskres (
        Disks @vcslx242 = { "/dev/sdb","/dev/sdc" }
        Disks @vcslx244 = { "/dev/sdf","/dev/sde" }
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires lvm_lv1
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    lvm_lv1 requires lvm_vg1
    lvm_vg1 requires diskres

//4. NFS resource in parallel service group. Share resource with Native LVM and without DiskReservation, LVM Tagging is enabled.

include "types.cf"

cluster vcs (
    UserNames = { vcstest = IhiGheHe }
    )

system vcslx242 (
    )

system vcslx244 (
    )

group nfs_grp (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    Parallel = 1
    AutoStartList = { vcslx242, vcslx244 }
    )

    NFS test_nfs (
        Nproc = 16
        )

    Phantom ph (
        )

    // resource dependency tree
    //
    //    group nfs_grp
    //    {
    //    NFS test_nfs
    //    }

group nfstest (
    SystemList = { vcslx242 = 0, vcslx244 = 1 }
    )

    IP test_ip (
        Device = eth4
        Address = "10.212.88.37"
        NetMask = "255.255.254.0"
        )

    Mount test_mnt (
        MountPoint = "/home/export"
        BlockDevice = "/dev/mapper/vg1-lv1"
        FSType = ext3
        MountOpt = rw
        FsckOpt = "-y"
        )

    NFSRestart test_nfsres (
        NFSRes = test_nfs
        )

    NFSRestart test_nfsres_L (
        NFSRes = test_nfs
        Lower = 1
        )

    Share test_share (
        PathName = "/home/export"
        Options = "rw,nohide"
        )

    LVMVolumeGroup lvm_vg1 (
        VolumeGroup = vg1
        EnableLVMTagging = 1
        )

    LVMLogicalVolume lvm_lv1 (
        LogicalVolume = lv1
        VolumeGroup = vg1
        )

    requires group nfs_grp online local firm
    test_ip requires test_share
    test_mnt requires lvm_lv1
    test_nfsres requires test_ip
    test_nfsres_L requires test_mnt
    test_share requires test_nfsres_L
    lvm_lv1 requires lvm_vg1
 

stinsong's picture

OK, I can see the resource definition here. Which resource is in problem ?

solom's picture

Is it necessary configure child for resource .  

arangari's picture

@Solom : you dont need to show the main.cf from two nodes - they must be same, if the nodes are in RUNNING state.

Which main.cf are you using out of the 4 you have pasted on  your comment above

Please note the following:

1. A group will go online, if all the resources configured in are probed. If the group is a 'failover' group, it must be probed on all the nodes in its SystemList if the node is in gab-membership. Look at the ProbesPending attribute for the group - if it is non-zero, then some resources are not yet probed.

2. The dependecies on child should be satisfied.

3. The failover group can be online on only one node.

4. The probe operation ('hares -probe' cmd) is asynchronous operation. It is essenitally a monitor operation to find the initial state of resource. It will return immediately - doesn't mean the probe has completed. To verify that a resource is probed, look at the attribute 'Probed' for the resource. If the value is '0' and you beleive that atleast one monitor cycle is over - check the Flag attribute or State attribute for resource. If the flag/state has 'UNKNOWN', you may have configured resource incorrectly.

 

Thanks and Warm Regards,

Amit Rangari

If this post helped you resolving the issue, please mark it as solution. _____________________________________________________________________________

solom's picture

Ok  now i have 2 nodes  node one i have on it   disk groups and volumes but the node 2 not have no volumes no disk groups and i can't create volumes on the same disk on both node so what point from cluster Service Groups move the volumes from node 1 to 2 if Something happened for node1 or what?

 

Regards

solom's picture

-  If the flag/state has 'UNKNOWN', you may have configured resource incorrectly -

 

Yes it was  'UNKNOWN', and i configured resource and going online now it was from mount .

 

Thank you both for help me . 

 

 

Regards

Amrut Chougale's picture

were you mentioning the problem with service group 'groupy'?

 

As I can see in main.cf that you have pasted

 

    Mount export3 (
        MountPoint = "/export3"
        BlockDevice = "/dev/vx/dsk/groupydg/vol3"
        FSType = vxfs
        FsckOpt="y"    <<<<<<---- you have given 'y' and not '-y'
        MountOpt = rw
        )

    Mount export4 (
        MountPoint = "/export4"
        BlockDevice = "/dev/vx/dsk/groupydg/vol4"
        FSType = ext2
        FsckOpt="y"  <<<<<<---- you have given 'y' and not '-y'
        MountOpt = rw
        )

 

can check after chaging these attributes, resources come online?

 

Thanks and regards,

Amrut

SOLUTION
stinsong's picture

Hi solom,

Firstly, I cannot understand why there are 3 configuration within a config file main.cf. It seems about 2 pairs of nodes "vcslx242 and vcslx244" "sysa and sysb". If you are trying to configure 2 clusters you should not put configuration in one main.cf file. If you put configuration in 2 main.cf files, which one is the one cluster with problem? 

Secondly, there is "AutoStart = 0" in the first configuration which is not right or necessary. And for IPA resource :

    IP IP_172_29_9_100 (

        Device = groupy_eth0

Should be 

        Device = eth0

Because there is dependency with the resources.

 

Generally I cannot understand the strange problem you met, it maybe caused by wrong configuration file ?

Venkata Reddy Chappavarapu's picture

And the hostnames suggests that the configuration is copied from the sample main.cf shipped with the product.

The sample configurations are supposed to be used after making required changes to system names etc. Could you confirm you configured the cluster with node names, sysa, sysb, vcslx242 and vcslx244?

Regards,

Venkat

Venkata Reddy Chappavarapu,

Sr. Manager,

Information Availability Group (VCS),

Symantec Corporation

===========================

PS: If you are happy with the answer provided, please mark the post as solution. You