Friday, November 28, 2014

bug HA

http://forum.proxmox.com/threads/19719-Problem-with-migration-only-some-VM-s

Thursday, November 27, 2014

Wednesday, November 26, 2014

Script Backup On proxmox cluster

#!/bin/bash
# declare destination directory
folder=/root/bekup-etc
folder2=/root/bekup-var
folder3=/root/bekup-ssh
# memastikan destination directory sdh exist
if [ ! -d $folder ]
then
mkdir -p $folder
fi
# memastikan destination directory sdh exist
if [ ! -d $folder2 ]
then
mkdir -p $folder2
fi
# memastikan destination directory sdh exist
if [ ! -d $folder3 ]
then
mkdir -p $folder3
fi
# backup all configuration from ./etc.
tar -cvzf $folder/etc-`hostname`.`dnsdomainname`-`date | awk '{print $2$3$1$4$5$6$7}'`.tar.gz /etc
# backup .ssh
tar -cvzf $folder3/ssh-`hostname`.`dnsdomainname`-`date | awk '{print $3$2$6}'`.tar.gz /root/.ssh
#backup var/lib/pve
tar -cvzf $folder/etc-`hostname`.`dnsdomainname`-`date | awk '{print $3$2$6}'`.tar.gz /var/lib/pve-cluster

# menghapus file ketika isi folder sudah 30 lebih
find /root/bekup/*.gz -mtime +30 -exec rm -f {} \
atau
find /root/bekup/*.gz -mtime +30 -exec rm -f -- {} \+

jangan lupa chmod +x file sh nya

Tuesday, November 25, 2014

Gluster Volume Create and add brick

format hardisk.

/dev/sda1 dan /dev/sdc1 pada server221
/dev/sda1 dan /dev/sdc1 pada server222

tambahkan di /etc/fstab kedua server
/dev/sda1 /data/hdd4T-01/ xfs defaults 0 0
/dev/sdc1 /data/hdd4T-02/ xfs defaults 0 0

gluster volume create gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01
gluster volume start gv01
gluster volume profile gv01 start

untuk extend volume/add brick.
gluster volume add-brick gv01 server221:/data/hdd4T-02/gv01 server222:/data/hdd4T-02/gv01

untuk meremove brick
gluster volume remove-brick gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01 start

gluster volume remove-brick gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01 commit

untuk rebalance isi volume
gluster volume rebalance VOLNAME status

Ketika unmount volume, pastikan gluster di kedua server, mati atau service stop
/etc/init.d/glusterfs-server stop



gdisk partitioning

Create a new partition. This command is modelled after the equivalent fdisk option, although some differences exist. You enter a partition number, starting sector, and an ending sector. Both start and end sectors can be specified in absolute terms as sector numbers or as positions measured in kibibytes (K), mebibytes (M), gibibytes (G), tebibytes (T), or pebibytes (P); for instance, 40M specifies a position 40MiB from the start of the disk. You can specify locations relative to the start or end of the specified default range by preceding the number by a '+' or '-' symbol, as in +2G to specify a point 2GiB after the default start sector, or -200Mto specify a point 200MiB before the last available sector. Pressing the Enter key with no input specifies the default value, which is the start of the largest available block for the start sector and the end of the same block for the end sector.

Fencing On Proxmox

Many Thanks to : http://ahmad.imanudin.com/2013/08/18/tips-proxmox-configure-proxmox-high-availability-without-fencing-device/

di tiap2 server.

nano /etc/defaults/redhat-cluster-pve
FENCING_JOIN YES

fence_tool join
fence_tool ls

kemudian copy file, /etc/pve/cluster.conf menjadi /etc/pve/cluster.conf.new dan edit.

ccs_config_validate -v -f /etc/pve/cluster.conf.new

kemudian tambahkan ha di web gui nya, activate.

restart /etc/init.d/rgmanager tiap2 server.

Monday, November 24, 2014

Fencing and adding speed to read/write to glusterfs

http://forum.proxmox.com/threads/8623-Proxmox-2-node-cluster-fencing-device?p=48890#post48890

http://forum.proxmox.com/threads/16470-fencing-with-one-APC-Switch-Rack-PDU-node-with-redundant-power-supply

https://fedorahosted.org/cluster/wiki/FAQ/Fencing#fence_redundant_pwr

someone said :
"We currently use GlusterFS with our PHP app where the gluster volume is mounted under / (e.g. /dev/sda is already partitoned, then a gluster volume is created inside of it).  I've found a way to get the best performance from it is to read directly from the brick, but write to the volume."

Sunday, November 23, 2014

Sistem XFS

Sistem yang mendukung jurnaling file system. yaitu kemampuan untuk menjamin konsistensi(kepatuhan/ketaatan asas/kepatuhan) data dalam sebuah file, meskipun ada pemadaman listrik atau sistem crash yang mungkin terjadi.

Journaling(Ordered,journal and writeback)

write :
journal area
----------------- 
FileSystem

Metadata => sistem informasi lainnya yang disimpan, misal data dibuat, ukuran data, jumlah link file.

disk => beberapa blok (misal 6)
inodes => block yang ditentukan, misal block 2,4,5 (3 blocks), 1 inodes dengan ukuran 3 block.

Friday, November 21, 2014

Bash-Completion error gara-gara install tanpa update

To enable smart completion, edit your/etc/bash.bashrcfile. Uncomment the following lines, by removing the # in the beginning of the lines:

#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi

Wednesday, November 19, 2014

DNS Error, NS: got insecure response; parent indicates it should be secure

NS: got insecure response; parent indicates it should be secure


solusi : edit named.conf.options

adding dnssec-enable no; dnssec-validation no;

Tuesday, November 18, 2014

Permission Denied, Membuat website sederhana

chmod -R 755 /webfolder
chown -R www-data.www-data /webfolder

kemudian untuk error 403-404
ini permasalahan .htaccess
pertama enable mod_rewrite dengan perintah : 
a2enmod rewrite 
restart apache /etc/init.d/apache2 restart

kalu belum bisa juga :
rubah AllowOveride none 
menjadi AllowOveride all di file /etc/apache2/sites-available/default

Monday, November 10, 2014

[Solved] Grub Error

1. set root=(hd0,gpt2)
2. set prefix=(hd0,gpt2)/grub
3. insmod (hd0,gpt2)/grub/normal.mod
4. normal



tested and work.

Friday, November 7, 2014

Alsa Error. ketika ganti ISP dan Setting IPMI on dell server T110

alsactl init

The T110 II has three options: BMC/iDRAC Express/iDRAC Enterprise. The only option of the three that does not support the web-based GUI you are trying to access is the BMC.

apt-get update; apt-get install ipmitool

for i in ipmi_msghandler ipmi_si ipmi_devintf ; do modprobe $i; done

ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr {YOUR DESIRED IP}
ipmitool lan set 1 netmask {YOUR NETMASK}
ipmitool lan set 1 auth ADMIN MD5,PASSWORD
ipmitool lan set 1 arp respond on
ipmitool lan set 1 access on
ipmitool user list 1
ipmitool user set password 2 {YOUR PASSWORD}
ipmitool lan print 1

fungsi ipmi adalah hard-reset ing komputer server.

ipmitool -H {YOUR BMC IP} -U {YOUR USER} shell 
# ipmitool -I lan -H 192.168.1.200 -U root -P kuciang sel list

tested and work.
sumber : http://www.alleft.com/sysadmin/ipmi-sol-inexpensive-remote-console/

and thanks to : http://ahmad.imanudin.com/2013/08/18/tips-proxmox-configure-proxmox-high-availability-without-fencing-device/

Thursday, November 6, 2014

FTP and TFTP

FTP, exchange file over TCP/IP network. same with TFTP
FTP session oriented, TFTP kosongan(bare bones), no authentication.
TFTP unidirectional, searah, transfer file.
FTP TCP, TFTP udp.

FTP tcp port 20 data,21 connection dialog, TFTP udp 69

TCP Connection


TCP establish and Termination

TCP con :
1. send sync (client)
2. syn-ack (server)
3. send ack (client)

TCP terminate :
1. send fin (client)
2. send ack last (server)
3. send fin (server)
3. send ack (client)

TCP why reliable ??
karena adanya teknik ACK(paket data sesuai/sudah diterima) dan sliding windows(buffer sesuai) untuk membuat lebih reliable koneksinya.

OSI RM layer VS TCP/IP stack Model(versi huawei)

Application layer
Presentation layer
Session layer
Transport layer
Network layer
Data link layer
Physical layer

Provide communications between applications
Deal with data format problems Establish, maintain and manage sessions
Establish, maintain and manage end to end connection
Addressing and routing
Provide link medium access and link management
Bit flow transmission

Application layer
Transport layer
Network layer
Data link layer
Physical layer

Provide application program network interfaces
Establish terminal to terminal connection
Addressing and route selecting
Physical media access
Binary data flow transmission

Sunday, November 2, 2014

Masakan Yang Sehat dan Bergizi, bukan Fast Food

To be a good meal, food has to have be prepared with love, dedication, certain hygiene standards and proper cook time.

so, lihat-lihat dulu ya siapa yang masakin :3


http://naturalsociety.com/how-bolivia-triumphed-over-mcdonalds/