mountd: refused mount request: unmatched host
Most likely the problem is on /etc/exports, add your IP or range after the directory you want to share.
vim /etc/exports
/opt/smr 172.17.0.0/16(rw,sync,no_root_squash)
Read more…
How to use the cdrom RedHat .iso
I tested using Vmware ESX and RedHat 5.7
1 . Mount or insert the RedHat CD
Read more…
change linux RedHat / CentOS hostname
vim /etc/sysconfig/network
HOSTNAME=servername
Read more…
Show your love for Nagios by voting in the poll! NOTE: If you haven’t participated on the LQ forum, before you’ll have to create an account and post a new message before you can vote.
Read more…
This is without using LVM.
try fdisk -l to find the new disk path (as in /dev/sdxx)
# fdisk -l
use fdisk /dev/sdxx to create partition.
# fdisk /dev/sdd1
n
p
1
,
t,83
w
Read more…
linux comand to show memory slots
To find out many hardware information on linux you can use the awesome
lshw but when not available also dmidecode.
To find out how many memory for examples:
-How many slots:
# dmidecode -t 16
Read more…
reset redhat 5 password +boot
When you lost your root password in a RedHat Linux Based systems you should first have access to the console, (the machine itself).
Power on, or reboot as needed.
Read more…
Script to check services, check_services.vbs
I tried developing it so the services could be passed via arguments, but
using check_nt (NC_Net) and vbscript I found it impossible when we came along
multiple arguments containing spaces, its a shame
Maybe someone out there has done it.
I know a SNMP plugin that does it and I use it, but some servers are in cluster and SNMP
checks dont work well.
Anyways here is the code ( hardcoded services are in an array)
Read more…
Slow ssh login
SSH session slow to start?
It’s the DNS fault!
Just add “UseDNS no” to /etc/ssh/sshd_config
service sshd restart
How varnish can identify mobile users
In this example it basically finds out via regex on the user-agent tag if the user
is mobile if so it redirect to a mobile site.
Read more…