This is a small list of some really nice linux tools I recommend every sysadmin to have somewhere. dstat Combines vmstat, iostat, ifstat, netstat information and more http://dag.wieers.com/home-made/dstat/#documentation vnstat The best to monitor how much data was transfered tx/rxhttp://humdi.net/vnstat/ iftop […]
mountd: refused mount request: unmatched host
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) Check also /etc/hosts.allow /etc/hosts.deny Good material for troubleshooting: http://www.cs.bgu.ac.il/~arik/usail/network/nfs/tips.html http://osr507doc.sco.com/en/PERFORM/NFS_monitoring.html http://tldp.org/HOWTO/NFS-HOWTO/troubleshooting.html […]
yum cdrom repo
How to use the cdrom RedHat .iso I tested using Vmware ESX and RedHat 5.7 1 . Mount or insert the RedHat CD 2. Mount the cdrom mount /dev/cdrom /mnt/cdrom 3. Write the repo file vim /etc/yum.repos.d/rhel-cdrom.repo [rhel-cdrom] name=rhel-cdrom baseurl=file:/mnt/cdrom/Server […]
change linux hostname
change linux RedHat / CentOS hostname vim /etc/sysconfig/network HOSTNAME=servername vim /etc/hosts 10.10.10.10 servername hostname servername verify hostname service network restart
add new disk in linux
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 use mkfs to create a […]
linux comand to show memory slots
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 […]
reset redhat 5 password
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. and as soon as you get […]