Jump to content
  • Announcements

    • admin

      PBS Forum Has Closed   06/12/17

      The PBS Works Support Forum is no longer active.  For PBS community-oriented questions and support, please join the discussion at http://community.pbspro.org.  Any new security advisories related to commercially-licensed products will be posted in the PBS User Area (https://secure.altair.com/UserArea/). 
Scott Suchyta

How do I add a socket-based license to a cluster that is already in production with a server-based license?

Recommended Posts

There are two ways that a socket-based license can be added to an existing cluster, and one way will allow you to avoid PBS Server downtime.

 

Configuring Socket-based Licenses Before Adding Nodes (Avoid PBS Server Downtime)

 

To avoid PBS Server downtime, you must resist adding the new nodes to PBS via qmgr before configuring the socket-based license. The steps below assume that the existing cluster is licensed via a server-based license and you want to add new nodes that are licensed via the socket-based license to it.

 

    1. Generate the socket-based license via https://secure.altair.com/UserArea/license_man.php 

    2. Copy the altair_lic.dat to /var/spool/PBS/server_priv/altair_lic.dat

    3. Mark ALL nodes offline, but note all nodes that are already offline to avoid putting them back into production once the license is installed. 



qmgr  -c "set node @default state=offline"


    4. Add the socket-based license to the existing pbs_license_info attribute


qmgr -c "set server pbs_license_info = /var/spool/PBS/server_priv/altair_lic.dat:6200@licsvr01"

    5. Add the hosts to be licensed via the socket-based license to the cluster via qmgr



qmgr -c "create node <nodename>"


    6. Verify the new nodes are licensed via the socket-based license by looking for the license = l attribute in the pbsnodes -av output.



pbsnodes -av | grep -e "^[[:alnum:]]" -e license


    7. Online the nodes that were marked offline in step 3. Note that it may take a while for the nodes to reflect the state=free. 



qmgr -c "set node @default state=free"


 

Configuring Socket-based Licenses After Adding Nodes (PBS Server Downtime)

 

If you had added the nodes to qmgr before configuring the socket-based license, then this will require a restart of the PBS Server. The steps below assume that the existing cluster is licensed via a server-based license and you want to add new nodes that are licensed via the socket-based license to it.

 

    1. Generate the socket-based license via https://secure.altair.com/UserArea/license_man.php 

    2. Copy the altair_lic.dat to /var/spool/PBS/server_priv/altair_lic.dat

    3. Mark ALL nodes offline, but note all nodes that are already offline to avoid putting them back into production once the license is installed. 



qmgr  -c "set node @default state=offline"


    4. Add the socket-based license to the existing pbs_license_info attribute



qmgr -c "set server pbs_license_info = /var/spool/PBS/server_priv/altair_lic.dat:6200@licsvr01"


    5. Online the nodes that supposed to use the socket-based license. 



pbsnodes -r <nodename> <nodename> ...


    6. Restart the PBS Server



qterm -t quick ; /opt/pbs/default/sbin/pbs_server


    7. Verify the new nodes are licensed via the socket-based license by looking for the license = l attribute in the pbsnodes -av output. 



pbsnodes -av | grep -e "^[[:alnum:]]" -e license


    8. Online the nodes that were marked offline in step 3. Note that it may take a while for the nodes to reflect the state=free.



qmgr -c "set node @default state=free"


 


Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×