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

Conference decwet::winnt-clusters

Title:WinNT-Clusters
Notice:Info directories moved to DECWET::SHARE1$:[NT_CLSTR]
Moderator:DECWET::CAPPELLOF
Created:Thu Oct 19 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:863
Total number of notes:3478

713.0. "How to install SQL AFTER the cluster software ?" by AEOENG::16.40.240.154::annecy::lehy () Tue Mar 25 1997 10:24

Instructions to install SQL on a cluster running 1.1 wanted. The doc 
recommends to install SQL before the cluster but this is not always 
possible (the customer might want to buy and install SQL on an existing 
cluster)

I have the case where someone re-installed SQL 6.5 on one of the cluster 
members (a demo cluster) The existing enrolled databases do not failover 
or even show up in the enterprise manager.

I had to "create procedure" for each sp_*.sql file I could find in the 
cluster directory (sp_DEC_*.sql and sp_fallback_DEC_*)

I used sp_fallback_withdraw_xxx to remove the entries in the fallback 
tables


Now, I have the situation where I have a .dat file (the database device) on 
a shared disk. This device and the database itself does not show up in 
Enterprise Manager. How can I do that ?



 
T.RTitleUserPersonal
Name
DateLines
713.1SQL & ClustersNETRIX::"harrisonbc@mail.dec.com"Brynn HarrisonTue Mar 25 1997 19:479
I don't know a direct answer to your question, but the way I got around the
problem was to remove Clusters from one machine, then re-install, joining the
current cluster.

After this the registries synchronise and the SQL databases are available on
both nodes.

Brynn Harrison
[Posted by WWW Notes gateway]
713.2move SQL db from local disk to shared diskAEOENG::16.40.240.154::annecy::lehyFri Mar 28 1997 15:3717
Another similar question

ServerA is running SQL with a database on a local disk
ServerB is running SQL with a database on a local disk

ServerA and ServerB are clusterized

I now want to move the SQL db onto shared storage and enroll the
existing DB for failover support. How do I do that ?

This is a real-life scenario.

Thanks



713.3Recovering from reinstallationDECWET::CAPPELLOFMy other brain is a polymerTue Apr 01 1997 22:4640
>I have the case where someone re-installed SQL 6.5 on one of the cluster 
>members (a demo cluster)
    
    That's a bad thing to do, but you can recover.
    
> The existing enrolled databases do not failover 
> or even show up in the enterprise manager.
    
    Probably because reinstalling SQL 6.5 overwrote your SQL master
    database, which contains the names of all other databases and their
    locations.
    
>I had to "create procedure" for each sp_*.sql file I could find in the 
>cluster directory (sp_DEC_*.sql and sp_fallback_DEC_*)
    
    There are two ways to re-install the sp_*.sql files you need:
    1) isql -Usa -Pxxxx -n -i sp_*.sql
    	for each .sql file in the cluster directory.  ("xxxx" is your SQL
    	sa password)
    
    or
    2) Use regedt32 to delete the following registry VALUE:
    machine\system\CurrentControlSet\Services\Cfmd\Database\FMtype\FMSql\Version
    then restart the Digital Clusters Failover Manager service.  Deleting
    the "version" value will cause the Cluster Failover manager to
    reinstall all the stored procedures from the cluster directory.
    
>I used sp_fallback_withdraw_xxx to remove the entries in the fallback 
>tables
    
    On the server where SQL 6.5 was reinstalled, you should see empty
    spt_fallback_xxx tables.  Did you execute the above procedure on the
    server where SQL 6.5 was NOT reinstalled?
    
>Now, I have the situation where I have a .dat file (the database device) on 
>a shared disk. This device and the database itself does not show up in 
>Enterprise Manager. How can I do that ?
    
    Look at SQL documentation for the DISK REINIT and DISK REFIT commands. 
    They may allow you to recover the database from the .DAT file.
713.4AEOENG::16.40.240.154::annecy::lehyTue Apr 08 1997 09:1343
Thanks Carl

I tried DISK REINIT and DISK REFIT successfully. 

Because of the many warning messages displayed by DISK REFIT, I would not 
recommend the following procedure to people running real data. I am only 
setting-up/running demos and I am not really concerned with the 
integrity of data.




	From isql/W

	select the master db
	disk reinit
		NAME = 'DeviceName',
		PHYSNAME = 'x:\sqlData_Web.DAT'
		VDEVNODE = <vdevno>,
		SIZE = <size in 2kbytes units>
		
	if sqlData_Web.DAT is 51200kb then size must be 25600
	use sp_helpdevice to get a free vdevno

		

	stop sqlserver service
	start sql server service from the console (in standalone mode)

	sqlservr -m
	isql /U sa /P <password> /Q "DISK REFIT"

		if you are prompted, type quit to exit

	

	stop sqlservr (ctrl-c)

	start sqlserver service with control panel

	Check with Enterprise Mgr (for example) that your db is there
	again.