Cluster-Manager

From pressy's brainbackup
Jump to: navigation, search

Sun Cluster Manager

After a cluster upgrade the web BUI did not work:

root@server61 # dmesg 
[…]
server61 Sun Java(TM) Web Console[28374]: [ID 382600 daemon.warning] There was an IOException connecting to localhost
[…]

root@server61 # svcprop webconsole | grep tcp_listen
options/tcp_listen boolean false
root@server61 # svccfg
svc:> select webconsole
svc:/system/webconsole> setprop options/tcp_listen truetrue=true
svc:/system/webconsole> done
root@server61 # svcadm restart webconsole
root@server61 # cacaoadm status
default instance is ENABLED at system startup. 
Smf monitoring process: 
7870
7882
Uptime: 0 day(s), 0:36
root@server61 # smcwebserver status
Sun Java(TM) Web Console is running
root@server61 #  /usr/sbin/cacaoadm list-modules
List of modules registered:
[...]
root@server61 # cacaoadm  verify-configuration
root@server61 # echo $?
0

root@server61 #  /usr/sbin/wcadmin list
Deployed web applications (application name, context name, status):
    #######  No SunClusterManager ###############
    console  ROOT            [running]
    console  com_sun_web_ui  [running]
    console  console         [running]
    console  manager         [running]
    zfs      zfs             [running]
Registered jar files (application name, identifier, path):
    #######  No SunClusterManager ###############
    console  audit_jar     /usr/lib/audit/Audit.jar
    console  console_jars  /usr/share/webconsole/lib/*.jar
    console  jato_jar      /usr/share/lib/jato/jato.jar
[...]
root@server71:/etc# wcadmin list
Deployed web applications (application name, context name, status):
    SunClusterManager  SunClusterManager  [running]
    console           ROOT              [running]
[...]
Registered jar files (application name, identifier, path):
    SunClusterManager  cacao_jars    /usr/lib/cacao/lib/*.jar
    SunClusterManager  jdmk_jars     /opt/SUNWjdmk/5.1/lib/*.jar
[...]
root@server71:/etc# wcadmin list --detail -a
Deployed web applications (application name, context name, status):
    SunClusterManager  SunClusterManager  [running]
        Time:   04/22/10 16:37:05
        Base:   /usr/cluster/lib/SunClusterManager
        Debug:  0
        System: false
[...]

Sooo, copy the directory from one node to the other

root@server71:/usr/cluster/lib/SunClusterManager # tar cf SunClusterManager.tar ./SunClusterManager
root@server71:/usr/cluster/lib/SunClusterManager # scp SunClusterManager.tar edvhap@server61:/tmp

root@server61:/usr/cluster/lib/SunClusterManager # tar xf SunClusterManager.tar
root@server61 # wcadmin deploy -a SunClusterManager -x SunClusterManager /usr/cluster/lib/SunClusterManager
The SunClusterManager web application has been successfully deployed.
root@server61 # wcadmin list --detail -a 
Deployed web applications (application name, context name, status):
    SunClusterManager  SunClusterManager  [stopped]
        Time:   04/27/10 11:58:34
        Base:   /usr/cluster/lib/SunClusterManager
        Debug:  0
        System: false
[...]
root@server61 # wcadmin add -l -a SunClusterManager -n cacao_jars '/usr/lib/cacao/lib/*.jar'
Registered the cacao_jars resource for the SunClusterManager application.

root@server61 # wcadmin add -l -a SunClusterManager -n jdmk_jars "/usr/lib/cacao/lib/*.jar"
Registered the jdmk_jars resource for the SunClusterManager application.

root@server61 # wcadmin reload -x SunClusterManager
root@server61 # svcadm disable svc:/system/webconsole
root@server61 # svcadm enable svc:/system/webconsole
root@server61 #  wcadmin list
Deployed web applications (application name, context name, status):
    SunClusterManager  SunClusterManager  [running]
[...]
Registered jar files (application name, identifier, path):
    SunClusterManager  cacao_jars    /usr/lib/cacao/lib/*.jar
    SunClusterManager  jdmk_jars     /usr/lib/cacao/lib/*.jar

Should work again ;)