Senin, 30 Mei 2016

ZIMBRA High Cpu Because of Java

Today.. i get a lil bit messy day. because my mail server made me to came to office while in Off Day.
cus the server stop responing. and after get a lot of works to access the HTOP. i got this number. What a Shit kan !!!!.


this is what ive got from HTOP.





what a mess usage...

a lot of alternatives to solve this.

First, I started with disabling services that I really wasn’t using ( not working in this version  maybe )

zmprov ms su********.com  -zimbraServiceEnabled snmpzmprov ms su********.com -zimbraServiceEnabled logger (Server Statistics and Server Status information is not captured.)
zmprov ms su********.com -zimbraServiceEnabled stats

But it did not help much fixing the CPU problem.

Second, because i see alot of watch dogs i did this  ( not working in this version  maybe )

$ su zimbra
$ zmlocalconfig -e zmmtaconfig_interval=3600 
change the interval on your own want.

and change the crontab to be like this.
0 * * * * /opt/zimbra/libexec/zmstatuslog

or the posiblest time on your mind.

Third, and the work way in my zimbra is doing this.
based on this paper.


[root]# su - zimbra
[zimbra]$ zmlocalconfig -e nio_imap_enabled=false
[zimbra]$ zmmailboxdctl restart


by the way, my zimbra is
Release 8.5.1.GA.3056.UBUNTU12.64 UBUNTU12_64 FOSS edition.







Senin, 23 Mei 2016

Restore Setting Veeam Backup & Replication

Today, cb restore setingan veeam dari server yg menurut gw ga oke buat jadi server veeam,ke server yang lain... sekalian test performance virtual win 7 based server dengan fisik.

setelah install os dll. sampe versi veeam2 nya di dapat kesimpulan :

1. saat mau migrasiin veeam versi veeam nya harus benar - benar sama, sampai versi updatenya. klo ngak, ga bakal bisa di restore tuh setingan.
2. semua job ga akan bisa jalan klo kita belum reinsert password account kita di veeam.

dah 2 hal itu aja  yg perlu digaris bawahi saat kita mau restore setingan veeam dari server 1 ke server lain.


dimana sih kita harus reset password itu account2, disini, menu veeam yg di pojok kiri atas ya.








nah kita tinggal reinsert aja semua password account2 dstu.

dah gtu aja.

semoga bermanfaat ya.

Kamis, 18 Februari 2016

Seting IP Static di Ubuntu Server

ini saya copy dari site nya ubuntu  yah, soalnya sering lupa saya nya juga :D
sudo vi /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
  address 192.168.1.24
  netmask 255.255.255.0
  network 192.168.1.1
  broadcast 192.168.1.255
  gateway 192.168.1.1
For these new settings to take effect you need to restart networking services using the following command

sudo /etc/init.d/networking restart

source  : https://help.ubuntu.com/community/NetworkConfigurationCommandLine/Automatic

Senin, 15 Februari 2016

How To Upgrade ESXi 5.5 to update 1,2,3...

today im trying to upgrade my esxi server, from 5.5 to 5.5 update 1,2 and 3

steps :

download the update from :
https://www.vmware.com/patchmgr/findPatch.portal

after that  : copy downloaded files into datastore
note* if you try to make new folder in the datastore, better without any space or other simbols.

then.. we go to SSH an login as root
- do check before, so we can check later if our esx upgraded or not, using the build number.
how to check ?   -- > type vmware -v in ur console

\

now we try to find the upgrade files in our datastore .
after we find it.. do the installation with esxcli command.

esxcli software vib install -d /vmfs/volumes/52f25d31-555e3b54-4de6-40f2e9248bc2/UPDATE-ESXI-5.5/update-from-esxi5.5-5.5_update03.zip

the format is
 esxcli software vib install -d ( /vmvs/volumes/datastorename/zip file location )
and when done, you need to restart your server. In this case im trying to upgrade to update 1,2,3 so i dont do restart every upgrading. 

just install update 1,2 and 3.. then i do restart.. ( im not finding any error / effect ).

like this picture below.



now we check, if it upgraded or not by sync it with the build version from the web



                          Version                                                                    Release date  Build number


finally my esxi upgraded...
cheers...



Kamis, 11 Februari 2016

CRONTAB.... scheduler nya LINUX

hallo , happy nu year...
ini post pertama nih di tahun 2016....

postingan tetep yg ga gtu kualitas sih... tapi karena yg saya post adalah part of my experiences... so i dont really care  :P

fokus !

CRONTAB

jika di windows ada SCHEDULER.. di linux ada juga. dan nama nya ya itu CRONTAB.
bedanya... windows pake GUI, crontab CLI ( Command line Interface ).
ini yang bikin gw dulu puyeng banget klo mau bikin scheduler untuk linux.. dmn server gw rata2 linux.. dan gw masih gagal paham how to command in crontab,
tapi mari kita belajar sama - sama.

contoh crontab command :

prox:~ # crontab --help
crontab: invalid option -- '-'
crontab: usage error: unrecognized option
Usage:
 crontab [options] file
 crontab [options]
 crontab -n [hostname]
Options:
 -u  define user
 -e         edit user's crontab
 -l         list user's crontab
 -r         delete user's crontab
 -i         prompt before deleting
 -n  set host in cluster to run users' crontabs
 -c         get host in cluster to run users' crontabs
 -s         selinux context
 -x  enable debugging

opsinya cuma dikit koq.

format untuk croning ( bahasa saya ) adalah :

prox:~ # crontab *  *  *  *  *  < script kita >


.---------------- menit (0 - 59)
 |  .------------- jam (0 - 23)
 |  |  .---------- hari dalam bulan (1 - 31)
 |  |  |  .------- bulan (1 - 12) OR jan,feb,mar,apr ...
 |  |  |  |  .---- hari dalam minggu (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
 |  |  |  |  |
 *  *  *  *  *  < script kita >




 contoh kasus :
1. saya mau run copy file pada pukul 3AM

crontab * 3 * * * * cp /Desktop/data1 /Document/data1

2. saya mau run copy file jam 3 lewat 5 menit.

crontab 5 3 * * * * cp /Desktop/data1 /Document/data1

3. saya mau run copy file setiap 1 jam.

crontab * */3 * * * * cp /Desktop/data1 /Document/data1
bisa juga
crontab * 0/3 * * * * cp /Desktop/data1 /Document/data1

dari 2 command di atas, jika salah 1 error tinggal gunakan yang lain saja, barusan saya buat cron d opensuse, untuk setiap 1 jam harus menggunakan * bukan 0.

terakhir, klo gamau pusing ada koq web untuk generate crontab. ref saya adalah :

http://crontab-generator.org/

http://crontab.guru/

dah gtu aja koq.. mudah2an berguna untuk kita semua...
sama - sama belajar ya...


thank you.