Archive for March, 2013

How-To disable IPv6 on RHEL6 / CentOS 6 / etc

March 14th, 2013 15 comments

Proper way of disabling IPv6 subsytem in RedHat Linux 6 / CentOS 6 (dont unload modules or so)

in /etc/sysctl.conf  :  net.ipv6.conf.all.disable_ipv6 = 1

in /etc/sysconfig/network  : NETWORKING_IPV6=no

in /etc/sysconfig/network-scripts/ifcfg-eth0 : IPV6INIT=”no”

disable iptables6 – chkconfig –level 345 ip6tables off


done 😉

PS: if you have more eth interfaces, use brain 😉

Categories: Linux Tags: ,

Shrink Thin disk in ESX 5 (jelly-shot)

March 11th, 2013 No comments

just summary 😉

  1. fill with zeros empty space in runing VM OS
  2. Windows – SDelete from Sysinternal LINK
  3. Linux – fill up each mount point/partition with command
    dd if=/dev/zero of=ZEROFILE bs=1000000 ; rm -f ZEROFILE

  4. Check real size of allocated data in VM

    du -h MyVM.vmdk

  5. From ESX shell , run command to shrink vmdk disk (shutdown VM first)
    vmkfstools --punchzero MyVM.vmdk
  6. Check real size of allocated data in VM after (should be less)

    du -h MyVM.vmdk

  7. log off
  8. If not Thin provisioned disk, use another post 😉
Categories: Linux Tags: , , , ,

Migrating ESX Thick disk to Thin disk (ESX 5.1 is always special)

March 11th, 2013 2 comments

So,  in previous article I cleanup Linux virtual machine , zeroed all empty space. Thick file is 42 GB, lets see how it big I can make it.

Read more…

Categories: Linux Tags: , , , ,

Shrink Thick Linux virtual disk (vmdk) in ESX

March 11th, 2013 No comments

I have thick provisioned server, and I need move it and shrink it. As Thick option provides flat file of full size , even if OS is few GB, I have full size vmdk file ;( which is harder to copy around.  Thin provisioned vmdk disk is possible shrink via ESX shell command ( vmkfstools –punchzero *.vmdk) but what to do if disk is in Thick state ? Its possible, but little bit more complicated.

Excellent post to explain in depth dafuq –

Read more…

Categories: Linux Tags: , , ,

Brute force attack Dovecot IMAP server – blocking IP with TCP wrappers

March 5th, 2013 No comments

Trying brute force login to Dovecot IMAP server is happenning, log is filling up ;(

Lets block it 😉

Read more…

Categories: Linux Tags: , ,