Bu Blogda Ara

15 Aralık 2009 Salı

Sistemde yaşanan sorun nasıl giderilir ?

Sistemin herhangi bir noktasında yapılan ufak bir değişiklik adeta kartopu etkisi yapıp çok farklı problemler olarak karşımıza çıkabilir. Şunu söyleyebilirim ki benzer problemlerin %80'den fazlası yakın saat diliminde yapılan değişikliklerden dolayı olmuştur. O noktayı yeterince inceleyin ve gerçekten bu - basit yada basit olmayan - değişiklikten kaynaklanmadığından emin olun. Emin olamıyorsanız geri alıp, bi deneyin. Fakat sistemi benzer saat diliminde deneyin. Mağlum saate/yoğunluğa göre farklı tepkiler alabilirsiniz.

Muhtemel problemleri not alıp, aksiyonları belirleyin ve sıraya sokup, teker teker uygulayın. Uzun ve zor yapılabilecek değişiklikleri listenin sonuna ekleyin.

CD.

13 Kasım 2009 Cuma

Vmware High Availability (HA) de yaşanan problemler

Vmware High Availability de (HA) sorunlarınız varsa ilk önce kontrol etmeniz gereken network ve dns (/etc/hosts a da bakılmalı) ayarları sonuç getirmiyorsa muhtemelen HA servisi olan VMware-vpxa yani HA agent corrupt olmuş olabilir. Bu servisi yeniden kurmak için aşağıdaki Knowledge Base e bakabilirsiniz.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003714

12 Kasım 2009 Perşembe

Linux makinalarda "wmware tools old" uyarısı hk.

Vmware ESX 3.5 te Genel görünümde Bazı linux makinalarda "vmware tools old" uyarısı alabilirsiniz. Bu durumda önce vmware tools düzgün yüklenmişmi kontrol etmek gerek, örneğin "vmmemctl" servisi çalışıyor mu ve modul kontrolllerinizi yapmanız gerek.
" lsmod |grep vmxnet " komutu ile vmxnet interface modülünun sisteme yüklü olup olmadığını kontrol edebilirsiniz. Eğer yüklü değilse mutlaka enable etmeniz gerekir. Sanal sunucuda Consoldan "vmware-tools-upgrader" i çalıştırın. Yönergeleri onaylayın son olarak network bağlantınız kopacak, vmxnet modülünü yüklemeniz için sizden aşağıdaki işlemleri yapmanızı isteyecek. Aynen uygulayabilirsiniz.

/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start


ardından " lsmod |grep vmxnet " komutu ile vmxnet modulunun sisteme yüklendiğini "vmware tools old" ibaresinin "vmware tools ok" a dönüştüğünü göreceksiniz.

[root@sahiner ~]# lsmod |grep vmxnet
vmxnet 23168 0


interface in link mode unu öğrenmek için,

"ethtool eth0" komutunu çalıştırın. çıktı şu şekilde olmalı ,

Supported ports: [ TP ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Link detected: yes

9 Kasım 2009 Pazartesi

Mysql error "InnoDB: Unable to lock ./ibdata1, error: 11

Elektrik kesintisinden dolayı, üzerinde mysql servisi çalışan bir sunucuda bu hatayı aldım.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
InnoDB: Error in opening ./ibdata1

çözüm ,

orjinal ibdata1 in yedeğini aldıktan sonra,

mv ibdata1 ibdata1.bak
cp -a ibdata1.bak ibdata1

.

6 Kasım 2009 Cuma

LG X120 netbook - windows 7

lg x120 netbook üzerinde xp home edition la geliyor. gönül rahatlığı ile windows 7 kurabilirsiniz. Sadece wireless te sorun yaşayacaksınız. LG sitesinden xp wireless driver i indirip kurduğunuzda bu sorunda ortadan kalkıyor.

lgx120

4 Kasım 2009 Çarşamba

windows xp ve vmware ESX

Windows xp yi VMware esx te bir sanal makina olarak kurmak istiyorsanız lsi logic driver ını yüklemeniz gerekir. Bunun için bir flopy imajı gerekiyor şuradan indirebilirsiniz. sisteme driveri göstermenize rağmen kurulum devam etmiyorsa yani şöyle bir hata alıyorsanız "Setup did not find any hard disk drives installed in your computer." bu durumda sanal makinanın özelliklerinden scsi controller type i LSI logic olarak seçmeniz gerekmektedir.

27 Ekim 2009 Salı

Vmware Data Recovery

Vmware Data Recovery ovf import ile ücretsiz elde edebileceğiniz bir vmware backup sunucusu. Kurulum ve kullanımı oldukça basit. Genel çalışma mantığı şöyle. Belirlediğiniz guest in istediğiniz diskinin bir snapshot unu alıyor ve bu snapshot u data recovery diskine alıyor son olarak guest üzerinden snapshot u kaldırıyor. VMware Data Recovery Module Password = vmwar@ ... Uygun birzamanda kurulumunu hazırlayıp ayrıca buradan yayınlıyor olacağım.

Domuz Gribi

Sizlerinde bildiği gibi domuz gribi vakaları son dönemde hızla artış gösteriyor. Aşağıda linklerde yer alan, UzmanTV’de yayınlanan videoları uygun bir zamanınızda izleyebilirseniz, bu konuda daha bilinçli olabilir ve hem kendiniz hem de yakın çevreniz için bazı önlemleri alabilirsiniz.



• Domuz gribini normal gripten nasıl ayırt edebiliriz?
• Domuz gribi nasıl bulaşır?
• Domuz gribinin belirtileri nelerdir?

23 Ekim 2009 Cuma

Screen Capture Goview free

citrix in ücretsiz ve beta screeen recorder yazılımı gayet güzel, test etmenizi tavsiye ederim .

http://goview.com/goldwyn/spring/recordings?method=listRecordings&page=1

linux Open files configuration

Linux sunucunuzda çalıştırdığınız bazı servisler linux ta bulunan openfiles limitine takılırsa /etc/securty/limits.conf dosyasını editleyin ve aşağıdaki satırları olduğu gibi ekleyin, sistemi reboot edin.


* soft nofile 16384
* hard nofile 65535

Anlık artırım için ulimit -n 65535 'de yazabilirsiniz ancak logout sonrasında bu ayar değişecektir.

22 Ekim 2009 Perşembe

xenserver free vs xen enterprise features

Xen server product ’ lar arasındaki farklar şurada var:
http://www.citrix.com/English/ps2/products/subfeature.asp?contentID=1680964

Xen free edition da en önemli özelliklerden biri olan HA gelmiyor. Diğer olmayan özellikler linux host üzerinden bir şekilde halledilebilir aslında bunlar notification, provisioning, alarm sistemi ve performans reporting ...

14 Ekim 2009 Çarşamba

No Repository Found at the specified location

Xen server kurulumunda bu hatayı alıyorsanız , sunucunuzun LSI Logic firmware ini güncelleyin.
Ben sunx4600M2 de bu sorunla karşılaştım.

12 Ekim 2009 Pazartesi

Sony Ericsson telefonlar için süper bir yazılım ..

Bende w800i kullanıcısıyım. Telefonumun tamamiyle (mesejlar, çağrılar, kişiler, resimler, müzikler vs ...) yedeğini almak için myphoneexplorer yazılımını kullanıyorum. Sizlere de öneririm. Ayrıca türkçe dil desteği mevcut. F.J. Wechselberger e bu ücresiz yazılımından dolayı teşekkür ediyoruz tabi yada donate :)

http://www.fjsoft.at/en/downloads.php

9 Ekim 2009 Cuma

İntel ethertnet kartların virtualization uyumu

Sanallaştırma için IBM x3850 üzerinde 4 port intel ethernet card kullanıldığında sorun yaşayabilirsiniz. Bu kartları kullanmadan önce İntel ethertnet kartların virtualization uyumunu kontrol edebileceğiniz bir linki paylaşmak istiyorum.

http://www.intel.com/network/connectivity/products/server_adapters.htm

6 Ekim 2009 Salı

OpenVpn Kurulumu

Openvpn kurulumu

wget http://openvpn.net/release/openvpn-2.0.9.tar.gz

Yukarıdaki adresten son version u indiriniz.

kurulum işlemlerine başlamadan önce lzo-devel, pam-devel, openssl-devel paketlerini sisteme kurunuz,

yum install lzo-devel
yum install pam-devel openssl-devel


source dan rpm yapalım ,

rpmbuild -tb openvpn-2.0.9.tar.gz

cd /usr/src/redhat/RPMS/x86_64/

mv openvpn-2.0.9-1.x86_64.rpm /root/

cd /root/

rpm -ivh openvpn-2.0.9-1.x86_64.rpm

cd /usr/share/doc/openvpn-2.0.9/ dizinine kurulmuş oldu.

cd /etc/
rm -rf openvpn

ln -s /usr/share/doc/openvpn-2.0.9 openvpn /etc altına linklemiş olduk.

CA nın oluşturulması,

cd /openvpn/easy-rsa/2.0/
source ./vars
./clean-all
./build-ca


vim server.conf gerekli network ayarlarını giriniz.
vim client.conf gerekli network ayarlarını giriniz.

Bir sertifika oluşturmak için,

cd /openvpn/easy-rsa/2.0/

./build-key-server server
./build-dh

./build_key

/etc/rc.local içine aşağıdaki satırları ekleyiniz.

_______________________
#Openvpn
/sbin/iptables -t nat -A POSTROUTING -s 10.5.11.0/24 -o eth0 -j SNAT --to-source 192.168.10.132
/usr/sbin/openvpn /usr/share/doc/openvpn-2.0.9/sample-config-files/server.conf &
echo 1 > /proc/sys/net/ipv4/ip_forward
_______________________


openvpn in windows client ının makinanıza kurulumu yapıldıktan sonra gerekli sertifikaları c:/program files/openvpn/config klasörüne kopyalanır ve bağlantı kurululabilir.

Xen Server Kurulumunu bu video dan izleyebilirsiniz.

http://www.xenserver5.com/videos/Getting_Started_with_XenServer/Getting_Started_with_XenServer.htm

20 Ağustos 2009 Perşembe

windows uptime komutu

aşağıdaki komutla windows en son ne zaman restart olmuş öğrenebilirsiniz.

net statistics workstation

30 Temmuz 2009 Perşembe

BSA gelmeden kendinizi test edin.

BSA şirketlerde lisanssız kullanılan programları tespit etmek için link teki programı kullanıyor. Siz onlardan önce kendinizi bir test edin :)

7 Temmuz 2009 Salı

taze centos kitabı

Yurtdışında Apress, Centos kitabını çıkarmış , şuan online versionu indirmek-satınalmak için müsait. Kitap baskısıda yakında çıkar herhalde.

http://www.apress.com/book/view/9781430219309



23 Haziran 2009 Salı

anyremote

Bu projenin genel amacı, Linux üzerinde Bluetooth, kızılötesi, Wi-Fi ya da TCP / IP bağlantısı üzerinden uzaktan kumanda hizmet sunmaktır.

http://anyremote.sourceforge.net/

VMware e kurulabilecek guest listesi

Bu linkten VMware Compatibility Guide a erişebilirsiniz. Gayet güncel.

17 Haziran 2009 Çarşamba

sysadmin's rule

Asla cuma günü önemli bir değişiklik yapma hele birde yaz tatiline çıkmaya hazırlanıyorsan. :)

"Never make a major change on a Friday, nor before leaving for vacation."

Centos son kullanma tarihine dikkat :)

CentOS update support u 7 yıl boyunca devam ediyor. Centos' un iki update destek şekli var.

Full Updates (including hardware updates): Dikkat Centos 4 için bu update ler artık çıkmıyor. Feb 29, 2008 den beri.

Maintenance Updates:
Centos 4 için Feb 29, 2012 yılına kadar devam edecek. Bu update ler sadece security içeriklidir.

15 Haziran 2009 Pazartesi

Vsphere Client otomatik logon

pass though authentication kullanarak virtual center a otomatik login olabilirsiniz. VI client kısayolunu aşağıdaki gibi değiştirin.

şöyle olmalı,

"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -passthroughAuth -s virtualcenter.domain.local

Domain yoksa  username ve password belirtebilirsiniz.

"C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -s VCENTER_IP  -u username  -p password

24 Nisan 2009 Cuma

www.bilgikale.com

Kardeşimin sahibi olduğu www.bilgikale.com Elektronik & Bilgisayar online mağazası hizmete açıldı. :)

vmware eğitimi ( VCP )

Vmware infrastructure eğitimini bilgeadamın bünyesinde açtığı ilk sınıfta tamamladım. Bu eğitimin konu ve lablarında esx ssh komutlarından bahsedilmiyor. Müfredad dışına pek çıkılmadı. Eğitimin en önemli konuları bence resource management ve storage yönetimi idi. İlk sınıf olmanın verdiği eksiklikleri vardı tabi. Ama genel anlamda yararlı bir eğitim oldu.

16 Nisan 2009 Perşembe

How to resize disk LVM on the vitual machine guest in the ESX

Guest sunucunun edit setting ten disk boyutu artırılır.
bu işlem restart gerektirir.
ardından
ossec:~ :fdisk -l komutu ile diskin genişlediğinden emin olun.

ossec:~ :fdisk /dev/sda
sırasıyla aşağıdaki seçenekleri kendi sisteminize göre yapınız ,
new partition "n"
primary "p"
no : 3 "3"
print "p"
type "t"
no : 3 "3"
type 8e "8e"
print "p"
write "w"
restart gerektirir.

ossec:~ :pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 7.90 GB / not usable 23.41 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 252
Free PE 0
Allocated PE 252
PV UUID JKfbP2-Cn9A-bVCh-qKy1-VNcc-GHkU-BzVBzP


burada oluşan sda3 ü görmemiz gerekiyor bunun için;

ossec:~ :pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created

ossec:~ :pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 7.90 GB / not usable 23.41 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 252
Free PE 0
Allocated PE 252
PV UUID JKfbP2-Cn9A-bVCh-qKy1-VNcc-GHkU-BzVBzP

"/dev/sda3" is a new physical volume of "2.00 GB"
--- NEW Physical volume ---
PV Name /dev/sda3
VG Name
PV Size 2.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID CO2NZh-g01f-QKhQ-s4VW-Eo24-DY4k-NpzaXB

Artık /dev/sda3 ü görebiliyoruz.

vgdisplay komutu ile Free PE / Size alanına bakıyoruz "0" gözüküyor. burada ekelediğimiz boş alanı göstermek için ;

ossec:~ :vgextend VolGroup00 /dev/sda3

ossec:~ :vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 9.84 GB
PE Size 32.00 MB
Total PE 315
Alloc PE / Size 252 / 7.88 GB
Free PE / Size 63 / 1.97 GB
VG UUID hj2Jey-fzRJ-4I1d-sUA2-aVZM-fPhQ-6XDEWJ

şimdi Free PE / Size olarak 1.97GB görüyoruz.

lvdisplay komutu ile görünen /dev/VolGroup00/LogVol00 a Free PE size eklenir. Tüm free size i eklemek için ;

ossec:~ :lvextend -l +100%FREE /dev/VolGroup00/LogVol00

son olarak resize ediyoruz ve diskimiz kullanıma hazır hale gelecek.

ossec:~ : resize2fs /dev/mapper/VolGroup00-LogVol00

ossec:~ :df -h ile disk alanının genişlediğini görebilirsiniz.

6 Şubat 2009 Cuma

Centos Servisleri ve ne işe yaradıkları

acpid - off Advanced Configuration and Power Interface
event daemon. Shutdown applications if the power fails.

aep1000 - off AEP1000/AEP2000 coprocessor driver.

anacron - off Cron-like, but doesn't assume that the
machine is always on.

apmd - off Advanced Power Management. Only on for your
UPS to shutdown your computer when the power fails.

atd - off Run jobs queued for later execution by "at".

autofs - off Auto mount CDs and other file system-like
devices and media.

bcm5820 - off Hardware cryptographic accelerator support for
the BCM5820 Cryptonet driver.

cpuspeed - on for laptops, off for desktop computers.

crond - on Runs regularly scheduled system tasks, e.g. a
task that runs once a day.

cups - on Common Unix Printing System. Necesary if you
want to print.

cups-config-daemon - off(?) Works with HAL to dynamically manage printer
configuration. Might overwrite
/etc/cups/cupsd.conf. See:
http://www.cups.org/articles.php?L301

cxoffice - off Probably runs automatically if you have
Crossover Office and run an installed Windows application.

dc_client - off Distributed session cache client proxy.

dc_server - off Distributed session cache server.

gpm - off unless you want mouse cut/paste on the
non-graphical console.

haldaemon - on Auto-recognizes various kinds of hardware and
mountable media.

httpd - off The Apache web server. Only on if you need a
web server.

iptables - on The firewall.

irda - off Infrared wireless device daemon. For PDA, etc.

irqbalance - on If you have a multiprocessor system. Off on
all single cpu machines.

isdn - off Only used if you have an ISDN network connection.
kudzu - off Detects and configures new and/or changed
hardware on a system. Can be run manually if you need it.

lisa - off Scans your network to provide information
about hosts on your network, perhaps including
Windows shares. Some versions have security
problems. Part of kdenetwork utilities.

lm_sensors - off Monitor system sensors such as CPU and
motherboard temperature.

mDNSResponder - off Publishes and browses available network
services via Zeronconf (aka "Rendezvous").

mdmonitor - off Part of the mdadm package to administer
software RAID. See rpm -qi mdadm

mdmpd - off Monitor MD multipath devices, e.g. disks with
more than one controller. Apparently only for
RAID arrays.

messagebus - on Provides a communication bus for dbus. Programs
talk to other programs. Probably leave enabled.

microcode_ctl - on for Intel CPUs, off for AMD processors. Only works on Intel CPUs
(doesn't work with AMD). I'm not clear what the
updated microcode does. You can find out your cpu
info on Linux systems with this command:
cat /proc/cpuinfo
More info at:
http://www.urbanmyth.org/microcode/

mysqld - off A crash prone, slow, non-standard SQL
database server.

named - off A DNS server.

netdump - off Only for diagnosing kernel crashes.

netfs - off Automatically Mounts and unmounts all Network
File System (NFS), SMB/CIFS (Lan
Manager/Windows), and NCP (NetWare) mount points.
This is the only thing you need if you are an NFS
client (e.g. not an NFS server), since netfs will
run any other necessary daemons. Netfs may
automatically handle everything necessary for the
other (non-NFS) protocols, but I've only tested
it with NFS. Disable this if you don't use NFS,
Samba, or NetWare.

netplugd - off Automatic recognition of active/inactive
network interfaces.

network - on if you have an Ethernet connection. Off for
modem users.

nfs - off Network File System. Only on to allows other
unix systems to share your hard drive (volume, file system). Not
necessary if you are a client to a shared volume.

nfslock - off Provides NFS file locking functionality.
Disable if you aren't using NFS. Required by nfs.

nifd - off Network interface monitor. Calls
mDNSResponder if your IP address changes.

nscd - off Nscd provides cacheing for the passwd(5),
group(5), and hosts(5) databases.

ntpd - off Network Time Protocol. Easier to put this in
cron: /usr/sbin/ntpdate -s -u ntp1.virginia.edu

pcmcia - on for laptop users with PCMCIA cards. Off for
desktop machines.

portmap - off Netfs will start portmap as necessary.
Portmap is DARPA port to RPC program number
mapper. Required if you are an nfs client or
server (although netfs starts portmap for
clients, so you don't need it explicitly
enabled). If you're not using NFS or NIS, then
you should disable portmap. Some (?) versions of
portmap are highly insecure. You can run `rpcinfo
-p $hostname` against your system to see what
additional services it is providing. More info
at:
http://cert.uni-stuttgart.de/archive/suse/security/2003/04/msg00141.html

postgresql - off The most powerful, fastest, easiest to use SQL
database. Robust and has excellent documentation.

psacct - off Daemon used by several utilities for monitoring process
activities, including ac, lastcomm, accton, and sa.

readahead - off The readahead process preloads the buffer
cache with files that might be paged in one 'page
demand triggered' read at a time. This can speed
things up of boxes with enough memory. Config
file is: /etc/readahead.files

readahead_early - off See readahead. Config file is: /etc/readahead.early.files

rhnsd - off Queries the Red Hat Network for updates and
information.

rpcgssd - off Part of the nfs-utils package. Required by nfs.

rpcidmapd - off Required if you are running an nfs server.

rpcsvcgssd - off Required by nfs.

saslauthd - off unless you are using plaintext SASL password
authentication

sendmail - off Part of the mail server. Only on if you
machine is mail server.

sgi_fam - off FAM is a file monitoring daemon that detects
when files have changed and then performs some action.

smartd - off SMART Disk Monitoring Daemon. Monitor hard
drive and predict failure.

smb - off Samba Windows file sharing server.

snmpd - off Respond to SNMP request packets. Probably
only on if another machine is monitoring the
status of your machine.

snmptrapd - off Receive and log SNMP trap messages. SNMP is
for monitoring system status.

spamassassin - off Mail filter to identify spam using text
analysis. Only for mail servers(?)

squid - off Proxy caching server for web and ftp.

sshd - off SSH daemon. On if you want to ssh into your
machine.

syslog - on Handles logging of system events. It is good
to leave this turned on. Logs autorotate and will
not fill your hard drive.

tux - off Apparently a web server.

vncserver - off Remote desktop sharing.

winbind - off Related to Samba.

xfs - on X Windows font server. Use by X windows to
support a graphical desktop (including KDE and Gnome)

xinetd - on Super daemon (aka super server), launches network related daemons
on demand.

ypbind - off Disabled unless you are using and NIS server, usually
for password authentication

yppasswdd - off yppasswdd is the RPC server that lets users
change their passwords when you are using NIS
(a.k.a. YP).

ypserv - off ypserv is an implementation of the standard
NIS/YP networking protocol.

ypxfrd - off ypxfrd should be started in addition to ypserv to
accelerate transferring yp maps.

yum - off Yellow dog Updater, Modified. Updates
software packages (rpm and/or apt
packages). Some people run it nightly, some run
it manually.

ilk kurulum için açmanız gereken ve yeterli olan servisler ise ;

# chkconfig --list |grep 3:on

acpid 3:on
apmd 3:on
cpuspeed 3:on
crond 3:on
haldaemon 3:on
ipmi 3:on
irqbalance 3:on
messagebus 3:on
network 3:on
sendmail 3:on
sshd 3:on
syslog 3:on
xinetd 3:on