gluster volume create DFS-DATA replica 2 transport tcp dfs-master:/DATA dfs-node:/DATA
gluster volume start distribute
gluster volume info
gluster volume delete dist-volume
umount -t glusterfs dfs-master:/DFS-DATA
mount -t glusterfs dfs-master:/DFS-DATA/ok /mnt/test/
gluster volume create test replica 2 transport tcp dfs-master:/DATA/DFS-103.241.5.100-1 dfs-node:/DATA/DFS-103.241.5.100-1
mount -t glusterfs dfs-master:/DFS-103.241.5.100 /gluster
###INI JIKA VOLUME ALREADY
setfattr -x trusted.glusterfs.volume-id $brick-path
setfattr -x trusted.gfid $brick-path
rm -rf $brick-path/.glusterfs
Socialabel
[Facebook]
Sunday, June 5, 2016
Wednesday, April 27, 2016
Raspberry Pi, Error Compile Asterisk
Makefile:50: recipe for target 'gsm/lib/libgsm.a' failed
make[1]: *** [gsm/lib/libgsm.a] Error 2
Buka file makeopts setelah melakukan ./configure pada source code asterisk
Replace armv6l dengan armv6 (ada 3 bagian)
Tuesday, April 5, 2016
CWP Firewall Error

FIle log dari csf dan lfd mengalamai
#csf -u Can't locate object method "ssl_opts" via package "LWP::UserAgent" at /usr/local/csf/lib/ConfigServer/URLGet.pm line 142.
Solusi
# sed -i "s/\$ua->ssl_opts/#\$ua->ssl_opts/" /usr/local/csf/lib/ConfigServer/URLGet.pm # csf -u
Monday, April 4, 2016
Access to Centos Web Panel not working with SSL / https
vi /usr/local/cwpsrv/conf.d/cwp-ssl.conf
Listen 2031
<VirtualHost 123.456.789.012:2031>
ServerName 123.456.789.012
SSLEngine on
SSLCertificateKeyFile /etc/pki/tls/cwp-123.456.789.012.key
SSLCertificateFile /etc/pki/tls/cwp-123.456.789.012.cert
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
change to:
Listen 2031
<VirtualHost *:2031>
ServerName *
SSLEngine on
SSLCertificateKeyFile /etc/pki/tls/cwp-123.456.789.012.key
SSLCertificateFile /etc/pki/tls/cwp-123.456.789.012.cert
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
service cwpsrv restart
Now it works fine with https.
Listen 2031
<VirtualHost 123.456.789.012:2031>
ServerName 123.456.789.012
SSLEngine on
SSLCertificateKeyFile /etc/pki/tls/cwp-123.456.789.012.key
SSLCertificateFile /etc/pki/tls/cwp-123.456.789.012.cert
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
change to:
Listen 2031
<VirtualHost *:2031>
ServerName *
SSLEngine on
SSLCertificateKeyFile /etc/pki/tls/cwp-123.456.789.012.key
SSLCertificateFile /etc/pki/tls/cwp-123.456.789.012.cert
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
service cwpsrv restart
Now it works fine with https.
Sunday, April 3, 2016
REVERSE PROXY APACHE HTTP DAN HTTPS
========================================
MODE 1
========================================
<VirtualHost *:*>
ProxyPreserveHost On
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
ServerName localhost
</VirtualHost>
=====================================
MODE 2
=====================================
<Proxy balancer://mycluster>
# Define back-end servers:
# Server 1
BalancerMember http://0.0.0.0:8080/
# Server 2
BalancerMember http://0.0.0.0:8081/
</Proxy>
<VirtualHost *:*>
# Apply VH settings as desired
# However, configure ProxyPass argument to
# use "mycluster" to balance the load
ProxyPass / balancer://mycluster
</VirtualHost>
=========================================
MODE 3 - SSL ON
========================================
Listen 443
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine On
# Set the path to SSL certificate
# Usage: SSLCertificateFile /path/to/cert.pem
SSLCertificateFile /etc/apache2/ssl/file.pem
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
# Or, balance the load:
# ProxyPass / balancer://balancer_cluster_name
</VirtualHost>
Subscribe to:
Posts (Atom)