[SOLVED] Issue removing Node from cluster?

Discussion in 'Proxmox VE: Installation and configuration' started by killmasta93, Dec 6, 2018.

  1. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    255
    Likes Received:
    8
    Hi,
    I was wondering if someone could lend me hand. Im trying to remove the node from cluster which i did then i try to delete /etc/pve/nodes/nodename but im getting permission denied not sure why

    now im getting activity blocked
    not sure if im screwed i completely lost contact from the 2nd node so i have no way to get up the quorum, is there a way i can separate this node without losing any vms? This node is the principal

    Code:
    root@prometheus:~# pvecm status
    Quorum information
    ------------------
    Date:             Wed Dec  5 18:53:23 2018
    Quorum provider:  corosync_votequorum
    Nodes:            1
    Node ID:          0x00000001
    Ring ID:          1/52
    Quorate:          No
    
    Votequorum information
    ----------------------
    Expected votes:   2
    Highest expected: 2
    Total votes:      1
    Quorum:           2 Activity blocked
    Flags:
    
    Membership information
    ----------------------
        Nodeid      Votes Name
    0x00000001          1 192.168.3.252 (local)
    
     
    #1 killmasta93, Dec 6, 2018
    Last edited: Dec 6, 2018
  2. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,924
    Likes Received:
    266
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    killmasta93 likes this.
  3. killmasta93

    killmasta93 Member

    Joined:
    Aug 13, 2017
    Messages:
    255
    Likes Received:
    8
    Thank you so that did the trick on restarting the vm and backing them up, when i was testing to remove a node i did the following.

    added to /etc/hosts the IP of each proxmox by name

    then on the master node i ran

    Code:
    pvecm delnode prometheus2
    then after that i was trying to delete
    Code:
    /etc/pve/nodes/<nodename>
    i was getting permission issue as it still apears on the WebGui

    Then thanks to @dcsapak
    ran this
    Code:
    pvecm expected 1
    but still appears the node 2 so i ran this
    Code:
    service pvestatd restart
    after that the node 2 disappeared

    im able to start the VM

    the only thing on the summary part i see this
    guess i cant remove that either

    on a side note. so lets say i have 2 nodes in a cluster. and hypothetically both nodes shuts down but one of the nodes dont turn on but the other one does. The node that turns on wont turn on the Vms because it waiting for the quorum to start but it will never start because the another node died. So in that case one has to result to the above?
     
  4. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,924
    Likes Received:
    266
    again, if you have 2 nodes and only 1 is up, you cannot do anything before executing 'pvecm expected 1' BUT use it with care, if both nodes are online but cannot see each other, it can result in a split
    brain scenario
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice