Random thoughts, data, and things I like.
Tuesday, June 21, 2011
Primary instances on a node
Sometimes I need a space delimited list of instances on a Ganeti node. There isn't a direct command to get this but an easy bash one-liner:
gnt-node list --no-headers -opinst_list $node | tr ',' ' '
pinst_list fetches the primary instances on the node. You can replace this with sinst_list for the secondaries.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)