31 Temmuz 2012 Salı

Reset admin password

Reset admin password on a Windows Server

Windows Server 2008 çalışan sunucuda admin kullanıcısının şifresini unuttuğumuzda

kurulum cd si ile makineyi boot edip, Command Prompt da aşağıdaki komutu çalıştırabiiliriz.

net user ile sistemdeki kullanıcıları görebilir, istediğimiz kullanıcıya yeni şifre verebiliriz.

Örnek:   net user      kullanıcı_adı    parolası

net user Administrator NewPassword

Admin kullanıcısının disable olduğunu düşünelim, kullanıcıyı enable yapmak için şu komutu kullanabiliriz

net user Administrator /active:yes

19 Temmuz 2012 Perşembe

NetBackup - Browse and select Virtual Machine time out

NetBackup - Browse and select Virtual Machine time out

NetBackup ile VMware üzerindeki sanal makinelerin imajını alma için oluşturduğumuz politikanın içerisinde  Client tabından yeni sanal makine eklemek istediğimizde time out hatası alabiliriz.

Bu durum VMware backup makinesinin sanal makinenin ip adreslerini çözmeye çalışması ve zaman aşımına uğramasından kaynaklanmaktadır.

Registry'e eklenecek bir kayıt ile ip çözümleme  işlemi devredışı bırakılarak time out sorunu giderilebilmektedir.

 HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config\BACKUP\disableIPResolution

Problem

Browsing vSphere inventory via clients tab in backup policy could be slow if VMware backup host cannot resolve IP addresses of virtual machines

Solution

NetBackup 7.0 for VMware lets users browse VMware vSphere inventory and select virtual machines. If refresh button in GUI is used, it might take a long time for the refresh to complete if the VMware backup host cannot resolve the IP addresses of virtual machines.

 A hotfix is available for use in those environments where NetBackup can be instructed not to attempt IP resolution. Please contact Symantec Technical Support and quote this TechNote number and defect e-track ET2005798 for the hotfix.

 Once the hotfix is applied, the following registry value needs to be set to disable IP resolution attempts for virtual machines.

 HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config\BACKUP\disableIPResolution


 If the key BACKUP does not exist please create Key 'BACKUP' under 'Config'. Then create a New -> DWORD Value (32 bits) -> disableIPResolution, under Key 'BACKUP.


*Note: This hotfix made it into 7.0.1 as per the 7.0.1 Release Notes, page 128.  Therefore, if already at 7.0.1, no need to request the hotfix, the following registry value can be set to disable IP resolution attempts for virtual machines.

 HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config\BACKUP\disableIPResolution

15 Haziran 2012 Cuma

NetBackup - media write error(84)

NetBackup - media write error(84)   Diske yazma hatası

Cause:

When the NetBackup Deduplication Engine (spoold) starts, it reads the file segment fingerprints from the deduplication pool. Store operations (that is, writing to the disk) are disabled while the cache is incomplete.  If NetBackup tries to start backup jobs while the cache is incomplete, the jobs fail.

Solution:

After the spoold cache loading is complete, backup jobs and compaction jobs are enabled again. Therefore, the solution is to wait until cache loading is complete.

To determine if spoold finished loading fingerprints:
  1. Use your favorite tool to monitor the memory usage of services and daemons on the storage server. Wait until the memory used by spoold does not increase for 5 minutes.  (When spoold loads fingerprints, it allocates memory as needed; spoold does not allocate the maximum amount of memory immediately.)
     
  2. Run the following command and examine the output for "put=Yes":

    UNIX: /usr/openv/pdde/pdcr/bin/crcontrol --getmode
    Windows: <install_path>\Veritas\pdde\crcontrol --getmode

    "put=Yes" means that cache loading is complete. Normal operations should resume.
     
  3. If "put=No," examine the <storage_path>/log/spoold/spoold.log file for the following message:

    Storage Cache Manager: load completed

    The message means that spoold finished loading the fingerprints. However, the new state probably has not been pushed to all processes yet.
     
  4. If the spoold.log has the message, wait 5 minutes then run "crcontrol --getmode" again.
     
  5. If "put=Yes," cache loading is complete and normal operations will resume.

    If "put=No," contact your Symantec support representative.
After the initial start of spoold after the upgrade to 7.5, spoold does not read the entire MSDP for fingerprints. Therefore, successive starts of spoold should occur much faster.
--------------------------------------------------------

NetBackup Deduplication Engine (spoold) başladığında, deduplication pooldan dosya segmetlerini okumaya çalışır.

Dedub disk üzerindeki keyc işlemi tamamlanmadığında diske yazma işlemleri devredışı bırakılır.

Keyc tamamlanmadığı durumda NetBackup üzerinde ki disk yazma işlemi disk yazma hatası verir.

Dedub disk üzerindeki keyc işlemi tamamlandığında diske yazma işlemleri yeniden etkinleştirilir.

NetBackup kurulduğu dizinde Veritas\pdde\ klasöründe " crcontrol --getmode " komutu çalıştırılarak "put=Yes": çıktısı kontrol edili, put değeri YES olmalıdır.

Put değeri No ise, Dedup diski üzerindeki Dedup\log\spoold\spoold.log dosyasında " load completed " mesajı araştırılır.

Log dosyası içerisinde load completed mesajı bulunması durumunda 5 dakika beklenrek "crcontrol --getmode"  komutu yeniden çalıştırılır.

Put değeri YES olduğunda keyc işlemi tamamlanmış demektir, diske yazma işlemleri gerçekleşecektir.

4 Haziran 2012 Pazartesi

How to Install ESXi 5.0 Driver for Brocade HBAs

How to Install ESXi 5.0 Driver for Brocade HBAs

New Installation
----------------
For new installs, you should perform the following steps:

1. Copy the VIB to the ESX server.  Technically, you can place the file anywhere that is accessible to the ESX console shell, but for these instructions, we'll assume the location is in '/tmp'.

Here's an example of using the Linux 'scp' utility to copy the file from a local system to an ESX server located at 10.10.10.10: scp VMware_bootbank_net-driver.1.1.0-1vmw.0.0.372183.vib root@10.10.10.10:/tmp

2. Issue the following command (full path to the VIB must be specified):
esxcli software vib install -v {VIBFILE}
      
In the example above, this would be:
esxcli software vib install -v /tmp/VMware_bootbank_net-driver.1.1.0-1vmw.0.0.372183.vib

Note: Depending on the certificate used to sign the VIB, you may need to change the host acceptance level.  To do this, use the following command:  esxcli software acceptance set --level=<level>

Also, depending on the type of VIB being installed, you may have to put  ESX into maintenance mode.  This can be done through the VI Client, or by adding the '--maintenance-mode' option to the above esxcli command.

Upgrade Installation
--------------------
The upgrade process is similar to a new install, except the command that should
be issued is the following:

esxcli software vib upgrade -v {VIBFILE}

#######################################################

ESXi 5.0 üzerinde Bracade driver yükleme


ESXi 5.0 kurulumu yaptıktan sonra HBA kart bilgilerini göremiyorsak driverı tanımamış olabilir.

VMware sitesinden Brocade HBAs driver indirmemiz gerekmektedir.

Dosya boyutu oldukça küçüktür, içerisindeki dosya yapılması gerekenler anlatılmaktadır.

Özetle aşağıdaki adımlar uuygulanarak driver yükleme işlemi gerçekleştirilebiliri.

1. Öncelikli olarak driverın ESXi üzerinde kopyalanması gerekmektedir.
vCenter arayüzünden ilgili ESXi sunucusunun ssh özelliği aktif edilerek SFTP ile dosya kopyalama işlemi gerçeleştirilebilir. vib uzantılı dosya /tmp altına kopyalanabilir.

2. driver kurulumu, putty ile ESXi sunucusuna erişilerek aşağıdaki konutun çalıştırılması ve sistemin restart edilemsi gerekmektedir.

esxcli software vib install -v /tmp/vib uzantılı dosyanın adı.vib


30 Mayıs 2012 Çarşamba

Gateway is Missing in Windows Server 2008

The default gateway is missing in Windows Server 2008 after the computer restarts

Windows 2008 sunucularda restart sonrası gateway adresinin kaybolması durumu oluşabilmektedir.

Çözüm yolu olarak aşağıdaki işlemler uygualanabilir.

Sorun Registry'de HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<GUID>\DefaultGateway paremetresinde boş karekterlerin oluşmasından kaynaklanmaktadır.

Bu değerin içerisine girilerek boş karaterler temizlenmeli sonrasında manuel olarak gateway ip si girilmelidir.

Consider the following scenario:
  • You use the netsh command to enable a network interface on a computer that is running Windows Server 2008 or Windows Vista. The computer retrieves IP addresses from a DHCP server.
  • You use the netsh command to set a default gateway for the network interface.
In this scenario, the default gateway is set successfully. You can verify it by running the ipconfig /all command. However, the default gateway of the network interface is missing after the computer restarts. If you double-click the following registry entry, you find that a null character exists in the value data of the DefaultGateway subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<GUID>\DefaultGateway
Note <GUID> is the interface value of the network card.

Raporları oluşturmak için Flex üzerindeki master server'a PuTTY üzerinden appadmin ile giriş yapın ve "sudo -i" ile root kulla...