Skip to main content

Enable NFS Mount after Reboot on linux CentOS

perkiraan ilustrasi yang memungkinkan
-- pra-kata-kata --
unnecessary mukodimah that needed is telling that we need an opening messege  message for opening article. and here we go i think it's enought for opening :D

--step one--
you need some .... yeah... you know what you need for comforting yourself. Back to topic, the real for what you need is some NFS server (nfs.server.com) or of course, and the client absolutly. 
preparation complete and now lets go to next level of this article

--step two--
for this configuration, all you have to do is open your /etc/fstab file. and it's will be something like this : 

# /etc/fstab
# Created by anaconda on Tue Apr 25 22:51:16 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-LogVol01        /              ext4    defaults         1 1
UUID=dd89f8e6                        /boot          ext4    defaults         1 2
/dev/mapper/VolGroup-lv_swap         swap           swap    defaults         0 0
tmpfs                               /dev/shm        tmpfs   defaults         0 0
devpts                              /dev/pts        devpts  gid=5,mode=620   0 0
sysfs                               /sys            sysfs   defaults         0 0
proc                                /proc           proc    defaults         0 0
nfs.server.com:/data                /Data           nfs     defaults,_netdev 0 0
just focus on the last line, thas is sample of nfs mount that we need. 
are we done here.... ??? no .. no... noo...  we need to enable one more service to make our hard work done. the service is netfs and make sure that service is load on booting.
chkconfig netfs on
-- check $ jajal --
and the final is to test our config.... reboot the mechine a.k.a server, and se what happen next.. ^_^.
the point is "ndang di jajal dewe dewe ben dong gitu...."

-- penutupan --
secara algorithm,your mount boot process should be something like this: 
- Automounter reads config on /etc/fstab 
- Ignores /Data since it has _netdev option set 
- Mounts all other filesystems 
- Finishes mount jobs and allows system to continue booting 
- Network comes up 
- Service netfs started, and service netfs reads /etc/fstab and finds an nfs filesystem 
- netfs mounts the /Data


* do with your own risk

Comments

Popular posts from this blog

Webalizer - Statistik trafik/kunjungan web (ubuntu)

--goal--
make subdomain trafik statistik

--install--
run this command :
sudo apt-get install webalizeredit "/etc/apache2/apache2.conf" , set
HostnameLookups Off into :
HostnameLookups On
--1--
All we need is already prepared, now set log of vhost in "/etc/apache2/sites-enabled" to spesifict folder.
exp. $sudo vi /etc/apache2/sites-enabled/monitor CustomLog ${APACHE_LOG_DIR}/access.log into: CustomLog ${APACHE_LOG_DIR}/vhost/monitor/access.logrestart service
$sudo /etc/init.d/apache2 restart
--2--
create another file config of webalizer in /etc/webalizer
exp. vi /etc/webalier/monitor.conf
set the LogFile to apache2 logfile:
LogFile /var/log/apache2/vhost/monitor/access.log # apache log OutputDir /var/webalizer/monitor/ #webalizer report Incremental yes ReportTitle Usage statistics for HostName monitor.brekele.co.cc
--3--
create script to run webalizer via crontab
exp. vi /etc/webalizer/cron_job
#!/bin/bash echo "di jalankan pada: `date +"%d-%B-%Y %r"…

pgpoolAdmin, web interface for pgpool

--preparation--
next capter of pgpool from my last post ( here), now i wanna post about a tool that can manage pgpool from web interface called pgpoolAdmin. next... enjoy the post... ^_^

--1--
first we need to download pgpooladmin from here, extrak and copy or move to http directory( for exp : /var/www) 
$wget http://pgfoundry.org/frs/download.php/2964/pgpoolAdmin-3.0.3.tar.gz $tar zxvf pgpoolAdmin-3.0.3.tar.gz $sudo cp -Rf pgpoolAdmin-3.0.3 /var/www/test
 --2--
install pgpooladmin via web on: http://localhost/test/install


make sure owner of that file is "www-data"(of course have write akses) and check again



login with user that you create on /etc/pcp.conf (for more detail see my last post



and done.ya.. tooo.......!!!
 ^_^

send oracle 11g audit log to syslog server ( on other PC)

--preparation-- 
well...... this time i will write about syslog, and for this experiment what we need is :
- kiwi syslog server get from here and install it on your PC( i use xp for this server syslog)
- oracle db
- and of course, a cup of coffee is a must and other thing that make you relax and comfortable ( :p )

--scema--
first thing to do is redirect oracle audit log to syslog, and than from syslog send to syslog server( kiwi syslog)

--1--
 edit initSID.ora and add this folowing config :
create "/var/log/oracle/" firs
audit_file_dest='/var/log/oracle/' audit_trail='OS' AUDIT_SYSLOG_LEVEL=local1.warning after that edit /etc/syslog.conf, and add this folowing config :
#Save oracle rdbms audit trail to oracle_audit.log local1.warning /var/log/oracle/oracle_audit.log #Send oracle rdbms audit trail to remote syslog server local1.warning @1.1.1.1 #<= ip your syslog server--2--
restart syslog service with command :
/sbin/service syslog restart …