[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::ase

Title:ase
Moderator:SMURF::GROSSO
Created:Thu Jul 29 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2114
Total number of notes:7347

1911.0. " logging LSM commands from ASE internal scripts" by EVTAI1::POUSSARD () Mon Mar 03 1997 07:37


	Hi,



	Is there a way to have a log of LSM commands that ASE executes when 
putting a service offline or relocating a service ??

	We would know exactly see what LSM commands and their arguments ASE 
asks to LSM ??


	Thanks for replies
    
    
    

T.RTitleUserPersonal
Name
DateLines
1911.1Is this interesting?NETRIX::"[email protected]"Gregory P. MyrdalMon Mar 03 1997 11:4417
Generally we only log the low level commands that fail.  If we logged 
all of the commands that succeeded we would fill up daemon.log even more 
than we already are.

Basically we do the same thing that you have to do to get a disk group
online.  There is no magic here:

	voldisk online disk1 disk2 ... diskN
	voldg -fC import diskGroup1
	volrecover -sb -g diskGroup1

For what purpose would it help you to know what commands were being
run?

-- Greg
[Posted by WWW Notes gateway]
1911.2EVTAI1::POUSSARDTue Mar 04 1997 03:4917
    	Thanks for your reply,
    
    
    	The customer wants to have the trace of all LSM commands success or
    not through the ASE. He think that is missing a LSM log files
    (optionally configurable or not )
    
    	This customer had a problem referenced in note 1895, and I
    explained him he did bad ASE processing ( see 1895.2)
    
    	But he would be happy if he saw what LSM commands occurs when he
    does somrthing under asemgr like , modifying a service, relocarting,
    putting it offline
    
    
    
    	Gilles.
1911.3We do not echo the LSM configure commandsNETRIX::"[email protected]"Gregory P. MyrdalTue Mar 04 1997 11:0649
        The customer wants to have the trace of all LSM commands success or
    not through the ASE. He think that is missing a LSM log files
    (optionally configurable or not )
  
One would have to modify the scripts themselves to get these commands to
echo to some location.  There is no option right now to turn this action
on.
  
        This customer had a problem referenced in note 1895, and I
    explained him he did bad ASE processing ( see 1895.2)
    
        But he would be happy if he saw what LSM commands occurs when he
    does somrthing under asemgr like , modifying a service, relocarting,
    putting it offline

It might be OK for him to turn on informational logging and look for 
'lsm_dg_action start ...' run.  This script is the one that configures
the LSM diskgroup.  If this is run  with success he can assume that the 
commands I gave you in a previous note.

If indeed you have the same ase as in 1895, then the problem is not in
the start/configure of the LSM disk group.  It is in the failure to
stop/deconfigure the LSM disk group on another node.  When you force a
stop as in 1895 the administrator needs to do clean up himself before
the service should be put online anywhere.

If he really wants the exact commands, the other thing you/he can do is
read the shell scripts and follow the code path to see which ones get
run.  I know this is ugly, but we just do not echo them anywhere.  Here
is what you will find:

	LSM configure during the start of a service:

	        voldisk online disk1 disk2 ... diskN
       	 	voldg -fC import diskGroup1
        	volrecover -sb -g diskGroup1

	LSM deconfigure during the stop of a service:

		voldg deport diskGroup1
		(If this fails, we stop the LSM volumes if is OK to do so
		 volume -f -g Diskgroup1 stop volumeN
		 then retry the deport )
		volutil voldisk offline disk1 disk2 ... diskN


-- Greg

[Posted by WWW Notes gateway]
1911.4thanksEVTAI1::POUSSARDThu Mar 06 1997 11:524
    Thanks Greg for your help
    
    
    	Gilles.