Forum Discussion

Home_224's avatar
Home_224
Level 6
7 years ago

Unable to create the share disk group for two node access

Hi 

I have urgent task to create the shared disk group for two nodes to read write access. My current system run Solaris 9 , with VCS 4.1 MP2 , I create the vxdg group for devdg on node 1 and to be share with another node 2 

vxdg list
NAME STATE ID
rootdg enabled 1323751603.17.devuardbs01
devdg enabled,cds 1524544628.114.devuardbs01

vxdg -s import devdg
VxVM vxdg ERROR V-5-1-587 Disk group devdg: import failed: Operation must be executed on master

vxdctl -c mode
mode: enabled: cluster inactive
root@devuardbs01 # vxlicrep -e | grep CVM
CVM_LITE_OPS = Disabled
CVM_FULL = Disabled
CVM_LITE = Disabled
CVM_LITE_OPS = Disabled
CVM_FULL = Disabled
CVM_LITE = Disabled
CVM_FULL#VERITAS Volume Manager = Enabled
CVM_LITE_OPS = Disabled
CVM_FULL = Enabled
CVM_LITE = Disabled

I have no idea for the issue.  Can you please if there is professional guys to fix my problem?

 

 

  • root@devuardbs01 # vxlicrep -e |grep CFS
    VXCFS = Disabled
    VXCFS = Disabled
    VXCFS#VERITAS File System = Enabled
    VXCFS = Enabled


    Home_224 wrote:

    Hi 

    I have urgent task to create the shared disk group for two nodes to read write access. My current system run Solaris 9 , with VCS 4.1 MP2 , I create the vxdg group for devdg on node 1 and to be share with another node 2 

    vxdg list
    NAME STATE ID
    rootdg enabled 1323751603.17.devuardbs01
    devdg enabled,cds 1524544628.114.devuardbs01

    vxdg -s import devdg
    VxVM vxdg ERROR V-5-1-587 Disk group devdg: import failed: Operation must be executed on master

    vxdctl -c mode
    mode: enabled: cluster inactive
    root@devuardbs01 # vxlicrep -e | grep CVM
    CVM_LITE_OPS = Disabled
    CVM_FULL = Disabled
    CVM_LITE = Disabled
    CVM_LITE_OPS = Disabled
    CVM_FULL = Disabled
    CVM_LITE = Disabled
    CVM_FULL#VERITAS Volume Manager = Enabled
    CVM_LITE_OPS = Disabled
    CVM_FULL = Enabled
    CVM_LITE = Disabled

    I have no idea for the issue.  Can you please if there is professional guys to fix my problem?

     

     




  • in order top create or import a CVM diskgroup, vxvm needs to be in cluster mode.

    run the command below on each node to see if all node can access the same shared storage

     

    1. vxdisk -o alldgs list

    2. vxclustadm -m vcs -t gab startnode

    3. gabconfig -a

    4. uname -a

    5. haclus -display | grep -i vers

     

    this lomd of problem is most often related to shafred storgae  ex.  ne node lost connectivity to some or all the shared storages.

    If you post the above commands output, I shall be able to know the issue and assist you further.

     

    Regards,

     

    Frank

     

    • Home_224's avatar
      Home_224
      Level 6

      Hi Frank,

      Here is the  output

      root@devuardbs01 # vxdisk list
      DEVICE TYPE DISK GROUP STATUS
      c1t0d0s2 auto:sliced rootdg01 rootdg online
      c1t1d0s2 auto:sliced rootdg02 rootdg online
      c3t40d0s2 auto:cdsdisk - - online
      c3t40d1s2 auto:cdsdisk - - online
      c3t40d2s2 auto:cdsdisk - - online
      root@devuardbs01 # vxdisksetup -i c3t40d0
      VxVM vxdisksetup ERROR V-5-2-1813 c3t40d0: Disk is part of devdg disk group, use -f option to force setup.
      root@devuardbs01 # vxdisk list
      DEVICE TYPE DISK GROUP STATUS
      c1t0d0s2 auto:sliced rootdg01 rootdg online
      c1t1d0s2 auto:sliced rootdg02 rootdg online
      c3t40d0s2 auto:cdsdisk - - online
      c3t40d1s2 auto:cdsdisk - - online
      c3t40d2s2 auto:cdsdisk - - online
      root@devuardbs01 # vxclustadm -m vcs -t gab startnode
      VxVM vxclustadm ERROR V-5-1-9652 CVM group definition missing in /etc/VRTSvcs/conf/config/main.cf
      root@devuardbs01 # gabconfig -a
      GAB Port Memberships
      ===============================================================
      Port a gen 1a061d membership 01
      Port h gen 1a0623 membership 01
      root@devuardbs01 # uname -a
      SunOS devuardbs01 5.9 Generic_122300-60 sun4u sparc SUNW,Sun-Fire-V240
      root@devuardbs01 # haclus -display | grep -i vers
      MajorVersion 4
      MinorVersion 1007

      root@devuardbs02 # vxdisk list
      DEVICE TYPE DISK GROUP STATUS
      c1t0d0s2 auto:sliced rootdg01 rootdg online
      c1t1d0s2 auto:sliced rootdg02 rootdg online
      c3t44d0s2 auto:cdsdisk devdg01 devdg online
      c3t44d1s2 auto:cdsdisk devdg02 devdg online
      c3t44d2s2 auto:cdsdisk devdg03 devdg online
      c3t44d3s2 auto:cdsdisk - - online
      root@devuardbs02 # vxdisk list
      DEVICE TYPE DISK GROUP STATUS
      c1t0d0s2 auto:sliced rootdg01 rootdg online
      c1t1d0s2 auto:sliced rootdg02 rootdg online
      c3t44d0s2 auto:cdsdisk devdg01 devdg online
      c3t44d1s2 auto:cdsdisk devdg02 devdg online
      c3t44d2s2 auto:cdsdisk devdg03 devdg online
      c3t44d3s2 auto:cdsdisk - - online
      root@devuardbs02 # vxclustadm -m vcs -t gab startnode
      VxVM vxclustadm ERROR V-5-1-9652 CVM group definition missing in /etc/VRTSvcs/conf/config/main.cf
      root@devuardbs02 # gabconfig -a
      GAB Port Memberships
      ===============================================================
      Port a gen 1a061d membership 01
      Port h gen 1a0623 membership 01
      root@devuardbs02 # uname -a
      SunOS devuardbs02 5.9 Generic_122300-60 sun4u sparc SUNW,Sun-Fire-V240
      root@devuardbs02 # haclus -display | grep -i vers
      MajorVersion 4
      MinorVersion 1007

       

      • frankgfan's avatar
        frankgfan
        Moderator

        Hello,

         

        The output 1 I asked for was below

        1. vxdisk -o alldgs list

        But you sent me vxdisk list outoput.

         

        Can you run the command " vxdisk -o alldgs list " on both the nodes and post the output?

        If vxdisk -o alldgs list on both nodes show the disk group devdg, try the steps below

         

        1.  on node devuardbs02, run

        vxdg deport devdg

        (need to umounnt all the volumes in devdg first in order to deport the dg

         

        2. run

        vxdg -s import devdg

        3. grep devdg /etc/VRTSvcs/conf/config/main.cf

        4. 3. grep devdg /etc/VRTSvcs/conf/config/main* | head -10

        PS - VCS version 4 is a very old version and it is no longer supported,  Please upgrade to a supported version (free of charge).

        Regards,

         

        Frank