How can i remove a host from pool?



  • How do i remove a host from a pool in xenserver?
    i don't like pool with xenserver because they are just too much to manage?
    to perform upgrade i need to migrate VM and to migrate VM it is not so simple..also is one make a mistake one may not be able to restore the pool and lose all vms.

    I mean i just want a way to remove and disable pool in a pool of 2 hosts.
    What is simplest way remove 1 host from a pool of 2 hosts?

    thanks





  • In XO, in the host advanced view, you have the "Detach" button. This will eject the host from the pool.



  • after removing one of the hosts from the pool. I removed the secondary host from the pool and that went fine but i was not able to remove the primary host from the pool and then start a new single pool of 1 host.

    So i am now having issues performing patch update on the primary host that is in the old pool
    How can i remove the primary host from the old pool to use a new single host pool?

    Here is errors am getting on that host when trying to do patch updates

    Jan  8 00:12:46 xenserver105 xcp-rrdd: [debug|xenserver105|0 ||rrdd_main] Reading configuration
     file ..
    Jan  8 00:12:46 xenserver105 xcp-rrdd: [debug|xenserver105|0 ||xcp-rrdd] Parsing [debug]
    Jan  8 00:12:46 xenserver105 xcp-rrdd: [debug|xenserver105|0 ||xcp-rrdd] Parsing []
    Jan  8 00:12:46 xenserver105 xcp-rrdd: [debug|xenserver105|0 ||xcp-rrdd] Parsing [http]
    Jan  8 00:12:46 xenserver105 xcp-rrdd: [debug|xenserver105|0 ||xcp-rrdd] Parsing [err]
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [debug|xenserver105|0 ||xenopsd] xenopsd version 0.9 s
    tarting
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'eliloader'
    at '/usr/bin/eliloader'
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'pygrub' at
    '/usr/bin/pygrub'
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find qem
    u-system-i386 on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path op
    tion ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find qem
    u-dm-wrapper on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path opt
    ion ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find hvm
    loader on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path option (
    = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find vnc
    term on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path option ( =
    )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find vgp
    u on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path option ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find con
    vert-legacy-stream on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_pa
    th option ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find set
    up-pvs-proxy-rules on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_pa
    th option ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ warn|xenserver105|0 ||xenopsd-xc] Failed to find set
    up-vif-rules on $PATH ( = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) or search_path opt
    ion ( = )
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'ionice' at '/usr/bin/ionice'
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'umount' at '/usr/bin/umount'
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'mount' at '/usr/bin/mount'
    Jan  8 00:12:46 xenserver105 xenopsd-xc: [ info|xenserver105|0 ||xenopsd-xc] Found 'tune2fs' at '/usr/sbin/tune2fs'
    


  • @macaxenguy Each single host is its own pool, so you now have two pools, each containing one host.



  • Are you using XO to perform the patching? If so, does XO show any additional details in the logs?



  • @danp
    There was a pool before pool1 and in that pool i have host1 and host2

    so now i removed host2 from the pool and now i have only host1 in pool1
    that is what issue is
    so i will like to remove pool1 and have host1 in pool host1 and host2 in pool host2
    i normally use host name and pool name if single host pool



  • @danp
    yes i am using XO to perform patch updates and i did for all other hosts and they worked fine..never had any issue
    so i am suspecting the pool thing is not fully clean and that is why am getting the issues

    no logs in XO concerning this patch update issue



  • this is a task that is stuck for the host having the patch update issue

    0_1515456279675_ab3673e9-d5fb-4ff1-bf0a-ed999b792ea7-image.png



  • You just need to rename the pool. This can be done from within XO.



  • i renamed the pool already..just by editing the name
    or is there something else i need to do?
    so that part is done but this patch update issue is what i will like to fix
    not sure what the issue is coming from



  • Not sure why you are having issues patching on this one server. Has the server been rebooted since you removed the other host? Was this server the primary when you had the single pool.



  • yes it was the primary when i had the pool
    and yes it has been rebooted

    i may try to reboot again



  • Suggest that you try capturing the XS logs again if you are still having issues. Not sure that the one posted above is pertinent to this patching issue.



  • it is
    check the screesnhot and the error message
    you will see rdd stuff in both



  • When I use my googlefoo and search on rrd_updates, I get stuff related to performance metrics. <shrug>



  • ok i just restarted the host again and tried to install the patches in XO
    Here is screenshot of error message

    0_1515460405592_fdfa8a3e-a5cd-4f15-851f-e7e683f6cdcd-image.png

    Jan  8 20:16:25 xenserver105 xapi: [debug|xenserver105|1682 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"event.from","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3",["*"],"00000000000017717452,00000000000017716029",60.1],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1683 INET :::80||xapi] Here in jsoncallback
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1683 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"task.create","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3","[XO] Xapi#getResource /rrd_updates",""],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1683 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"task.create","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3","[XO] Xapi#getResource /rrd_updates",""],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [ info|xenserver105|1683 INET :::80|task.create D:8b315e69c18f|taskhelper] task [XO] Xapi#getResource /rrd_updates R:76b7f40ad8ff (uuid:5178101e-62ca-bd89-9453-9c3c29c7f9c0) created (trackid=de95b1830908300f6a5aee6d7fda2b33) by task D:8b315e69c18f
    Jan  8 20:16:30 xenserver105 xapi: [ info|xenserver105|1684 INET :::80||taskhelper] task [XO] Xapi#getResource /rrd_updates R:76b7f40ad8ff forwarded (trackid=de95b1830908300f6a5aee6d7fda2b33)
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1684 INET :::80|[XO] Xapi#getResource /rrd_updates R:76b7f40ad8ff|xapi] hand_over_connection GET /rrd_updates to /var/lib/xcp/xcp-rrdd.forwarded
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1684 INET :::80|[XO] Xapi#getResource /rrd_updates R:76b7f40ad8ff|taskhelper] forwarded task destroyed
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1685 INET :::80||xapi] Here in jsoncallback
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1685 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"task.destroy","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3","OpaqueRef:76b7f40a-d8ff-0636-46c9-c963a3a7693f"],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1685 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"task.destroy","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3","OpaqueRef:76b7f40a-d8ff-0636-46c9-c963a3a7693f"],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1686 INET :::80||xapi] Here in jsoncallback
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1686 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"event.from","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3",["*"],"00000000000017717460,00000000000017716029",60.1],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1686 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"event.from","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3",["*"],"00000000000017717460,00000000000017716029",60.1],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1687 INET :::80||xapi] Here in jsoncallback
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1687 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"event.from","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3",["*"],"00000000000017717462,00000000000017716029",60.1],"id":0}
    Jan  8 20:16:30 xenserver105 xapi: [debug|xenserver105|1687 INET :::80||xapi] Got the jsonrpc body: {"jsonrpc":"2.0","method":"event.from","params":["OpaqueRef:51b13d8f-6eb5-30ba-3dba-acba2bb99bb3",["*"],"00000000000017717462,00000000000017716029",60.1],"id":0}
    


  • I don't see any errors in that log.

    Anything in the xo logs under settings > logs?



  • you are right
    here is what i see

    0_1515462350113_5fcddef6-deae-4830-808f-d4f22cda69fa-image.png

    What is fix for this
    i do not have an SR

    that is the problem, it still thinks of multiple host pool..but this is now a single host pool
    and i don't know why it need SR
    i do not need SR for a single host pool



  • @macaxenguy You probably just need to set the default SR. Are you using local storage?


Log in to reply