1834939 Members
2084 Online
110071 Solutions
New Discussion

Simple Querry

 
Dinesh_15
Frequent Advisor

Simple Querry

Hi Gurus

I need your help to clear my following queries.

1)How can we bypass system / user profile from execution while logging in?

2)Am having a two node cluster environment running with a SAP package.If my servers are indicated as A and B while package as C, then

By default package will be running on node A.If this node fails while package is running , package will be switched over to B. Now by some reason B is not able adopt the package and node A is down, so package is not running.If node A comes online and starts the SG daemon by cmrunnode, whether package will be run on node A or package will be in halted stae.

Rgds
Dinu
3 REPLIES 3
Bharat Katkar
Honored Contributor

Re: Simple Querry

Hi,

1. You can always check the username who is logging. You can put one IF statement in the begining of the /etc/profile to check the username e.g.

if [ "$LOGNAME" = "username" ]
then
exit
fi

Or if there are more usernames then use "for" loop.

2. Not very sure but as per my understanding it will remain FAULTED and would not start automaticaly on Server A. You may have to use cmhaltpkg, cmrunpkg commands.

Regards,

You need to know a lot to actually know how little you know
Florian Heigl (new acc)
Honored Contributor

Re: Simple Querry

2) when autoswitch is enabled but the package startup fails on NodeB (states starting,stopping,failed), the package will probably not be switched back to node A as MC/SG has to assume You're in trouble already ;)
consistency is chosen over availability, also I think a huge point is about avoiding deadlocking nfs-mounts and vg activation.

say, i.e. the vg is imported on node B but SAP didn't start (typo in a script or whatever or something looping [1]) - what would You think would happen if node A forcibly activated the vg with the SAP data and maybe two hours later nodeB finally managed to finish the startup?

Yepp, You go get the tapes.


[1] or waiting for a hard nfs mount to node A :)))
yesterday I stood at the edge. Today I'm one step ahead.
Dinesh_15
Frequent Advisor

Re: Simple Querry

Hi Bharath

1)Rgdg bypassing tyhe user profile:.. Seems question was not clear.After getting the login prompt and after or before entering the username, passwd whether it is possible to bypass the profile execution.

2)Hi Florian.. Thanks for the answer..
U mean to say that in my situation I will not be able to start the package untill I halt entire cluster..Is it so


Any inputs from anybody

Rgds
Dinu