Target will be relocate to another node if node crashed?

Discussion in 'Post-Deployment: Configuration and Setup' started by Machiasiaweb, Apr 4, 2017.

  1. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
  2. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Hello,

    Shaman also relocates ISCSI targets, so yes, it will relocate.
     
  3. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    Just tested but fail. Some information of my storage setup.

    I poweroff one node which managed 1 iSCSI target. But it cannot auto move to another node.

    -------
    # pstorage get-attr /mnt/vstorage
    connected to MDS#1
    Path: 'vstorage://vstorage-test1/'
    Attributes:
    directory
    client-ssd-cache=1
    replicas=3:2
    failure-domain=host
    tier=0
    chunk-size=268435456
    strip-width=4194304

    # pstorage get-attr /mnt/vstorage/vols/iscsi
    connected to MDS#1
    Path: 'vstorage://vstorage-test1/vols/iscsi'
    Attributes:
    directory
    client-ssd-cache=1
    failure-domain=host
    tier=0
    chunk-size=268435456
    stripe-depth=3
    strip-width=4194304
    encoding=3+2/1

    # shaman -c vstorage-test1 get-config
    LOCK_TIMEOUT=60
    POOL_CHECK_TIMEOUT=30
    LEASE_CHECK_TIMEOUT_FOR_MASTER=10
    LEASE_CHECK_TIMEOUT_FOR_SLAVE=10
    WATCHDOG_TIMEOUT=60
    WATCHDOG_ACTION=netfilter, reboot
    RESOURCE_RELOCATION_MODE=spare
    LEASE_LOST_ACTION=reboot
    RELOCATION_SKIP_THRESHOLD=3
    CLUSTER_MOUNTPOINT_DEAD_ACTION=reboot
    VERSION=1
    -------

    #shaman -c vstorage-test1 top
    Cluster 'vstorage-test1'
    Nodes: 5
    Resources: 2

    NODE_IP STATUS ROLES RESOURCES
    M 192.168.20.211 Active ISCSI 0 ISCSI
    * 192.168.20.212 Active ISCSI 1 ISCSI
    192.168.20.213 Inactive ISCSI 1 ISCSI
    192.168.20.218 Active ISCSI 0 ISCSI
    192.168.20.219 Active ISCSI 0 ISCSI

    ISCSI ID STATE OWNER_IP PRIORITY
    iqn.2014.06.com.vstorage:target1 stopped 192.168.20.213 0

    iqn.2014.06.com.vstorage:target2 running 192.168.20.212 0
    ---------------------------------
    Node IP 192.168.20.213 down for long time but still not able move to another node.

    Does something I still miss to setup?

    Thanks!
     
    Last edited: Apr 6, 2017
  4. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    How exactly did you power off the host?
     
  5. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Also, target on node 213 is said to be stopped.
    Stopped targets do not relocate if I recall correctly. Was it stopped when you tried to test the relocation?
     

Share This Page