search
Categories
Archive
Blogroll

Microsoft PowerShell MVP

Cozumpark Bilisim Portali
AdvancedInstaller
Posted in Windows Server | No Comment | 86 views | 14/04/2013 17:28

Boot into command prompt with Windows Server 2008 R2 DVD.

1
2
3
4
C:\
cd windows\system32
ren utilman.exe utilman.exe.bak
copy cmd.exe utilman.exe

Change windows password by using Utilman (Windows Key + U) on logon screen.

net user Administrator NewPassword

After that, you should revert changes.


Posted in Windows Server | No Comment | 997 views | 11/04/2013 15:49

You can disable “Restrict each user to a single session” on Windows Server 2008 by using “Remote Desktop Session Host Configuration”. But that tool is not available on Windows Server 2012. So we should disable it from local policy to enable 2 sessions at the same time.

Open run and type “gpedit.msc” for Local Group Policy. Go to:

Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections

RDP

Simply disable “Remote Desktop Services users to single remote desktop session” option.

After that you will be able to connect your server with 2 different session.


Posted in Windows Server | No Comment | 246 views | 10/04/2013 21:33

You may get Restricted User warning after a database restore if source database is MSSQL Server 2005.
You can remove that warning by this SQL query:

ALTER DATABASE Your_Database SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE Your_Database SET MULTI_USER
GO

After that, there will be no warning on your database.


Posted in Windows Server | No Comment | 173 views | 17/02/2013 12:31

Merhaba,

Herhangi bir sebepten ötürü MySQL replikasyonunuz durmuş ve devam etmiyor ise -ki bunun nedeni master’ın bin logunun crash olması ya da disk problemi nedeniyle slave’e gönderilen son logun master tarafındaki loga işlememiş olması olabilir- aşağıdaki şekilde slave’i tekrar ayağa kaldırabilirsiniz.

Bu tarz problemlerde genelde replikasyon 1236 hatasını verir. Benim karşılaştığım problem ise aşağıdakiydi:

Got fatal error 1236 from master when reading data from binary log: ‘Client requested master to start replication from impossible position’

Slave’i tekrar ayarğa kaldırabilmek için öncelikle master’dan en son hangi pozisyonun okunduğunu öğrenmeliyiz. Bunun için slave üzerinde öncelikle:

SHOW SLAVE STATUS\G;

komutu çalıştırıp, output üzerinden Relay_Master_Log_File ve Exec_Master_Log_Pos değerlerini not edin. Benim çıktımda Relay_Master_Log_File “mysql-bin.000098″ olarak görünüyordu. Ayrıca Exec_Master_Log_Pos değeri ise “964685688″ idi.



Posted in Windows Server | 1 Comment | 571 views | 17/01/2013 23:41

Son bir kaç gündür bir projem nedeniyle Cloud servis sağlayıcılarını inceliyorum. Bu yüzden alternatif servis sağlayıcıları incelemeye çalıştım. Aşağıdaki inceleme Amazon, Azure ve RackSpace’i kapsıyor. Aradaki farkları objektif olarak yansıtmaya çalışacağım. Sıralamayı isme göre yaptım.

1. Kontrol Panel / Kullanım Kolaylığı:

a. Amazon EC2:

Kendi kontrol panelini kullanan Amazon, diğer servis sağlayıcılarına oranla en kötü tasarıma sahip olmasına rağmen, işlevselliği ve arayüzün hızlı olması nedeniyle benden artı puan aldı. Amazon EC2 kullanacak olursanız karşınızda böyle bir kontrol panel olacak:

Sanal sunucularınızın alt alta dizildiği bir tablo görünümüne sahip. İsterseniz bu tablo görünümüne ekstra alanlar ekleyerek özelleştirebiliyorsunuz.

Sanal sunucunuz üzerine sağ tıkladığınızda ise karşınıza gelen seçenekler aşağıdaki gibi:

Gördüğünüz gibi “Change Instance Type” kapalı durumda. Yani sunucu açık durumda iken kaynak arttırımı yapamıyorsunuz. Yine kontrol panel üzerinden sunucularınız için CloudWatch ile monitoring eklemeniz çok kolay.



Posted in Windows Server | No Comment | 1,015 views | 06/01/2013 09:15

If you want to create SQL Server 2012 Always On group, you may get this error when you setup listener.

None of the IP addresses configured for the availability group listener can be hosted by the server ‘$X’. Either configure a public cluster network on which one of the specified IP addresses can be hosted, or add another listener IP address which can be hosted on a public cluster network for this server. (Microsoft SQL Server, Error: 19456)

Screenshot for this error:

If you get this error, probably your SQL collation is not “SQL_Latin1_General_CP1_CI_AS”. You should remove your SQL servers and re-install them with “SQL_Latin1_General_CP1_CI_AS” collation. After that, you will be able to add listener. I’m not sure why error is related with IP address but my problem is fixed after collation change. My previous collation was “Turkish_CI_AS”.


Posted in Windows Server | No Comment | 718 views | 05/12/2012 17:43

Hello,

This is a self documentation to remember installation steps in future.

1. Install 2 Standalone SQL Server 2012 Enterprise Edition on 2 Windows Server 2012.
2. Enable Failover Clustering feature on both Windows Server 2012.
3. Configure SQL servers to run with domain admin account.

Jedi\sqlservice is a normal domain user without any domain-wide custom privileges.
But I joined them to local administrators group of my Windows Servers.
Also you should add Jedi\sqlservice to SQL logins. I joined it to “sysadmin” user role.

4. Go to Failover Cluster Manager and create a cluster.

Note: If you are using Windows Server 2008 / 2008 R2, then you should apply this hotfix first.
http://support.microsoft.com/kb/2494036

5. You have to change quorum settings for Dynamic quorum model.

Select “Advanced Configuration” for Dynamic quorum settings.

Allow Dynamic quorum.

6. Go to “SQL Server Configuration Manager” and enable Always On feature.
You can enable Always On from SQL Service properties.

7. Open SQL 2012 Management Studio, create a database with a Full recovery model.

8. Take a full backup of this database.

9. Expand Availability Groups and click “New Availablity Group Wizard”.

10. Specify an availability group name.

11. Add your SQL replicas.

12. Create listener.

13. Create a shared folder for first sync.

14. If everything goes well, you should see this screen :)

Now you should use vListener name in your connection strings.




Powered by DorukNet