Deleting Temporary User Profile on Windows Server 2008 R2

August 26th, 2010 admin Posted in Windows Server No Comments »

If every times you are logging as temporary user to Windows Server 2008 R2, you can do a registry trick to solve this problem. Run regedit.exe and navigate here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

You should see two entry as and .bak. Also check their home folder paths. If you are sure that .bak is your real profile, just delete the and rename .bak as . Then logoff. The next new logon will be your real desktop profile.

AddThis Social Bookmark Button

Windows SMTP server üzerinde Basic Authentication

August 7th, 2010 admin Posted in Hosting & IIS7, Windows Server No Comments »

Radore Hosting’te son olarak Cluster mimarisinde çalışan SMTP servisini hizmete aldım. Tabi güvenlik gereği Relay ayarlarını çok dikkatli yapmam gerekiyordu. Bu yüzden her site için ayrı bir kullanıcı ayarlamak gerekiyordu. Kullanıcı için de Active Directory yapısını kullanarak, yeni kullanıcı açma probleminden kurtulmuş oldum. Böylece müşterilerin FTP kullanıcıları, SMTP için kullanılabilir hale geldi. Şimdi SMTP üzerinde neler yapmamız gerektiğine göz atalım.

Öncelikle SMTP ayarlarında bulunan Access tabına geçiş yapalım. Access tabının altında bulunan Authentication bölümüne tıklayın ve karşınıza çıkacak menüden Basic Authentication seçeneğini seçin.

Bu bölümü Apply diyerek kaydettikten sonra yine Access tabı altında bulunan “Connection” kısmına giriş yapın ve sunucularınızın bağlı bulunduğu ip aralığını girin. Böylece dışardan erişimi engellemiş olacaksınız.

Son olarak yine “Access” tabı altından Relay ayarlarına giriş yapın.

Yukarda görebileceğiniz gibi “Allow all computers which successfully authenticate to relay, regardless of the list below” seçeneğini işaretleyin. Bu ayarları yaptıktan sonra bu sunucunuzu sadece kullanıcı adı ve şifre ile Relay’a açmış olacaksınız. Kullanıcı adı ve şifre uygulamasının çalışıp çalışmadığını telnet üzerinden aşağıdaki gibi test edebilirsiniz.

1
2
3
4
5
6
7
8
9
10
telnet 127.0.0.1 25
Helo
Ehlo
AUTH Login
eXVzdWZvenR1cmtpbmZv (kullanıcı adı)
eXVzdWY (sifre)
mail from: yusuf.ozturk@domain.com
rcpt to: yusuf@domain.com
Test maili
.

Test amaçlı denemede, kullanıcı adı ve şifre Base64′e göre şifrelenmelidir.

Yukardaki bağlantı üzerinden ücretsiz olarak şifreleme yapabilirsiniz.

AddThis Social Bookmark Button

Enable Cluster Shared Volumes for Hyper-V Server R2 Cluster

July 16th, 2010 admin Posted in Virtual Machine Manager, Windows Server No Comments »

Last post, I configured quorum configuration of Hyper-V Cluster. Now it’s time to enable Cluster Shared Volumes for Cluster. I created a 1 TB disk from SAN. Then I add it from Storage section.

Now we see it under the Available Storage.

Then enable Cluster Shared Volumes for Cluster.

Then add your disk to CSV with Add Storage.

Choose your 1 TB disk for Cluster Shared Volumes.

Done. Now your disk is available in Cluster Shared Volumes.

Now you can see your disk at C:\ClusterStorage.

AddThis Social Bookmark Button

Quorum settings for Hyper-V Server R2

July 16th, 2010 admin Posted in Virtual Machine Manager, Windows Server No Comments »

You need a quorum disk for Hyper-V Cluster. I’ll show you how to configure best quorum settings for Hyper-V Server R2. First of all, create a volume from your SAN for quorum disk. Microsoft recommends 500 mb of space for quorum disk for best ntfs performance. I give 600 mb for my quorum, then I attached same disk to all cluster nodes. Then you need to add that disk to available storage group in cluster.

You don’t have to give any letter for your quorum disk. Just initialize and format your disk as a NTFS partition. Be careful, leave your disk as a Basic disk.

To configure your disk as a quorum disk, use “Configure Cluster Quorum Settings” under the “More Actions” menu.

Choose Node and Disk Majority for the recommended Quorum configuration.

Choose your Quorum disk to assign it as a witness disk.

Done. Now you have a quorum disk for Hyper-V Cluster.

After this operation, you need to add a disk for Cluster Shared Volume.

AddThis Social Bookmark Button

Domain Controller ve Client’ların saat senkronizasyonu

May 30th, 2010 admin Posted in Windows Server No Comments »

DC ve Client’lar arasında saat senkronizasyon problemi varsa aşağıdaki adımları uygulayarak sorunu çözebilirsiniz. Öncelikle PDC Emulatoru bulmanız gerekiyor. PDC Emulator’u aşağıdaki komut ile bulabilirsiniz.

dsquery server -hasfsmo pdc

Sonrasında PDC Emulator’de aşağıdaki komutu uygulayın.

w32tm /config /update /syncfromflags:MANUAL /manualpeerlist:time.windows.com,0×1

Client’larda da aşağıdaki komutu uygulayarak, senkronizasyonu sağlayabilirsiniz.

w32tm /resync /rediscover

Eğer yukardakiler işe yaramıyorsa, bir de PDC emulator’de aşağıdaki komutları deneyin.

1
2
3
4
5
NET TIME /SETSNTP:time.windows.com
NET STOP W32TIME
NET START W32TIME
W32TM /config /reliable:YES
W32TM /resync /rediscover

Umarım çözer bunlar probleminizi. Bu saat problemi hakkaten sinir bozucu bir şey.

AddThis Social Bookmark Button

Upgrading SCVMM 2008 R2 database to MSSQL 2008 R2 Standard Edition

May 12th, 2010 admin Posted in Virtual Machine Manager, Windows Server No Comments »

We use SCVMM 2008 R2 for a long time to manage our virtual machines. We have exactly 180 active virtual machines on Hyper-V Cluster with 6 nodes and 13 standalone Hyper-V servers. SCVMM 2008 R2 is a real hero to manage and monitor our virtual machines. But a few days ago, we got some issues with SCVMM. We couldn’t add user roles for SSP, even couldn’t change owner of the vms. I checked the event logs, because SQL wasn’t responding to SCVMM.

‘VirtualManagerDB’ because the ‘PRIMARY’ filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

Another one:

CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.

At the same time SCVMM gave:

Error 2604 Ensure that the SQL Server is running and configured correctly, and try the operation again.

After that, I installed MSSQL Management Studio and checked the size of the database “VirtualManagerDB”. That was 4 GB. SCVMM installs MSSQL 2005 Express Edition and because of express edition license, you are limited to 4 gb for a database. Then I decided to upgrade database to MSSQL 2008 R2 Standard Edition.

First of all, I installed MSSQL 2008 R2 Standard Edition on the same machine. After installation, you need to move your mssql 2005 database to mssql 2008. It was really easy, just you need to detach from old SQL and then attach to new SQL server.

You can detach as here:

And you can attach to new SQL server as here:

You can find SCVMM database under this path:

C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2\DB

I used this simple nice article to move my database, you can also see the steps from here:

After moving your database, you need to set your SCVMM to use new SQL server.
Now you need to edit some registry keys to do that. In the registry, navigate to following subkey:

\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql

I used default instance name of MSSQL 2008 R2. Modify your registry key like here:

My connection string:

Integrated Security=SSPI;Application Name=SCVMM;Max Pool Size=500;Encrypt=true;TrustServerCertificate=true;Server=(local);database=VirtualManagerDB

After modifying connection string, you should change DependOnService configuration. Navigate to here:

\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\VMMService

Modify your registry key like here:

Now, our SCVMM 2008 R2 works on MSSQL 2008 R2 Standard Edition. Wohoo! Time to eat Whooper Menu :)

AddThis Social Bookmark Button

Centos 5.2 Benchmark Results on Hyper-V R2 (Linux IC v2.1)

May 12th, 2010 admin Posted in Linux Server, Virtual Machine Manager, Windows Server No Comments »

I installed Linux IC v2.1 on a fresh Centos 5.2 to make a benchmark test.

You can see detailed benchmark results from here:

I used unixbench-5.1.2 for benchmark tests. Also I tried this stress tool for cpu stress test:

Results are impressive. I upgraded our Centos vms to IC v2.1 successfully.

AddThis Social Bookmark Button

Hyper-V R2 üzerinde Centos 5.2 Benchmark Sonuçları (Linux IC v2.1)

May 12th, 2010 admin Posted in Linux Server, Virtual Machine Manager, Windows Server No Comments »

İşte uzun bir zamandır beklediğimiz sonuçlar gerçekleşmeye başladı. Artık Linux Integration Components v2.1 ile birlikte Hyper-V Centos 5.2 destekler durumda. Her ne kadar IC2 ile birlikte Centos desteklenmeye başlansa da başarılı sonuçlar elde edememiştik. Özellikle işlemci kullanımına yönelik bir gelişme söz konusu değildi. Fakat v2.1 ile birlikte Microsoft’tan Centos’a başarılı bir destek gelmiş durumda. Şuanki IC ile birlikte 4 CPU ve Shutdown desteğinin gelmesi önemli gelişmeler arasında. Aşağıda Centos’tan almış olduğum test sonuçlarını ve ekran görüntülerini paylaşıyorum.

Test sonuçlarının ayrıntılı çıktısına aşağıdaki bağlantıdan erişebilirsiniz:

Benchmark testleri için unixbench-5.1.2 kullandım. Ayrıca Cpu Stress için de aşağıdaki yazılımı kurdum.

Cpu Stress’de 4 işlemcinin de kullanıldığını görmek çok güzel. Eskiden işlemciler arasında yük dağılımı düzgün yapılamıyordu. Fakat yeni IC ile birlikte bu problem de giderilmiş gibi görünüyor.

Kişisel görüşüm, Hyper-V’nin Linux desteği konusunda çok yol aldığı. Fakat hala Linux üzerinde çalışan önemli bir projeniz olacaksa, vmware kullanmanızı tavsiye ediyorum. Hyper-V IC v2.1, henüz çok yeni çıkmış ve hala Beta olan bir IC. Ciddi projeler için henüz kullanılmaması gerektiğini düşünüyorum. Yalnız Microsoft’tan destek gelmeye devam ederse, Linux için daha iyi IC’ler çıkabilir ve biz de artık Hyper-V içersinde Linux kullanmaya başlayabiliriz.

AddThis Social Bookmark Button

Active Directory: Replication access was denied

May 2nd, 2010 admin Posted in Windows Server No Comments »

If you have a Windows Server 2008 R2 as a domain controller, when you type “dcdiag /fix” on cmd,
you may get access denied errors:

Replications:

[Replications Check,SERVER] DsReplicaGetInfo(PENDING_OPS, NULL) failed, error 0×2105 “Replication access was denied.”

Netlogons:

Starting test: NetLogons
[SERVER] User credentials does not have permission to perform this operation. The account used for this test must have network logon privileges for this machine’s domain.

Resolution:
Run cmd as an administrator :)

AddThis Social Bookmark Button

Perl and Geo-IP Installation on Windows for AWStats

April 25th, 2010 admin Posted in Hosting & IIS7, Windows Server 2 Comments »

It’s always a real nightmare to install Geo-IP for AWStats on Windows for me. Because finding geo-ip ppd file is too hard on the internet. Also if your version is not compatible with Perl version, you can’t install it. So i decided to write a post about this to help people who have same trouble with me. I’ll be very simple.

First, download Perl from here and install it (use x86 version):

Then open a cmd, then type this to update your db:

C:\Perl\bin\ppm.bat

Now, you are ready to install Geo-IP PurePerl:

ppm install http://www.yusufozturk.info/tools/Geo-IP-PurePerl.ppd

I hope it works for you. I installed this on Windows Server 2008 R2 and it works well.

AddThis Social Bookmark Button