April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Categories

April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

mount.nfs: rpc.statd is not running but is required for remote locking

I think i found the answer; even though chkconfig reported that “rpcbind” was setup to start in run level 3, for some reason it was not running. After this was started; I was able to mount the NFS share. # who -r run-level 3 2012-02-16 19:19 # chkconfig –list rpcbind rpcbind 0:off 1:off 2:on 3:on […]

Repair filesystem” prompt

How to edit /etc/fstab when at Centos/Redhat “Repair filesystem” prompt?

Now system was unable to boot the system because it was reading /etc/fstab file was unable to find the device for it. This can also happen when you have some external hard-drive attached with your linux system and you remove device but forgot to clean […]

Scan for New Scsi Device to Detect New Lun Without Reboot -Centos

This will scan the scsi host and no need to reboot to make devices(luns) visible.

echo “- – -” > /sys/class/scsi_host/host#/scan

June 15th, 2014 | Category: Centos, Linux | Leave a comment

e2label, fdisk, /etc/fstab, mount, linux rescue, rescue disk, CentOS

Tutorial: e2label, fdisk, /etc/fstab, mount, linux rescue, rescue disk, CentOS Let’s run through an example of a fresh disk, that needs to be configured, going through partitioning with fdisk, make filesystem, filesystem labelled using e2label, /etc/fstab edited, and mounted using mount. This is relevent for CentOS 3.x, 4.x 5.x; YMMV for other flavours.

First, […]

Add Proxy Server on Linux and Unix Server

When you need to have proxy connection available to whole system, so dont bother with settings for firefox, yum proxy and similar, its simple as just plain file 😉

just copy & paste following code to terminal window. if you need other shell , like csh , just add another file with csh extension. This […]

How-To disable IPv6 on RHEL6 / CentOS 6

in /etc/sysctl.conf : net.ipv6.conf.all.disable_ipv6 = 1

in /etc/sysconfig/network : NETWORKING_IPV6=no

in /etc/sysconfig/network-scripts/ifcfg-eth0 : IPV6INIT=”no”

disable iptables6 – chkconfig –level 345 ip6tables off

reboot

In /etc/grub.conf edit the kernel lines to include:

1 ipv6.disable=1 The “trick” here, as described by TrevorH1 in #linux, is that programs can still load the module as they wish. You can […]

How to block ssh users after 3 failed login attempts using pam_tally2.so

ock user login after failed login attempts in Red Hat 6.x and CentOS 6.x

Earlier in RedHat based distro we used to setup pam_tally.so for locking the user login after some failed login attempts.

Now in Red Hat 6.x and CentOS 6.x we will use pam_tally2.so .

# cd /etc/pam.d # cp -p password-auth-ac password-auth-ac.bak […]

Shrink root partition using LVM

While I installed my OS long back, I had partitioned more space in the root file system, because of which I was unable to use other file systems due to lack of disk space. So, incase if few are facing the same issues, here is the tutorial to decrease your space in root partition. Once […]

Logical Volume Snapshots

Environment: CentOS release 6.3 (32-bit). Descriptions: By LV snapshot you will be able to freeze your logical volumes. In other words, you can easily backup and rollback to a original logical volume state. This is almost similar to VMware where you can the snap shot of the VM and revert in-case if anything goes wrong. […]

Missing fonts in VNC Centos Redhat

Symptoms

xauth: (stdin):1: bad display name “rhel:1? in “add” command

WARNING: The first attempt to start Xvnc failed, possibly because the font catalog is not properly configured. Attempting to determine an appropriate font path for this system and restart Xvnc using that font path … Could not start Xvnc.

/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined […]