Jumat, 28 November 2014

bug HA


Kamis, 27 November 2014

Readding node proxmox

restart /etc/init.d/pve-cluster
pvecm updatecerts

and then selesai

Rabu, 26 November 2014

Script Backup On proxmox cluster

# declare destination directory
# memastikan destination directory sdh exist
if [ ! -d $folder ]
mkdir -p $folder
# memastikan destination directory sdh exist
if [ ! -d $folder2 ]
mkdir -p $folder2
# memastikan destination directory sdh exist
if [ ! -d $folder3 ]
mkdir -p $folder3
# 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 {} \
find /root/bekup/*.gz -mtime +30 -exec rm -f -- {} \+

jangan lupa chmod +x file sh nya

Selasa, 25 November 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

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.

Senin, 24 November 2014

Fencing and adding speed to read/write to glusterfs




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."

Minggu, 23 November 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

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.

Jumat, 21 November 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

Rabu, 19 November 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;

Selasa, 18 November 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

Senin, 10 November 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.

Jumat, 07 November 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 -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/

Kamis, 06 November 2014


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 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

Minggu, 02 November 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

Related Posts Plugin for WordPress, Blogger...