Categories
Linux Troubleshootings

pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer

If you are setting up NFS and stuck with this error, portmap is conflicting with other service.

If you run this
/etc/init.d/portmap restart

It will throw this error,
pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer
Stopping portmap: [FAILED]
Starting portmap: [ OK ]

Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd – part1

Our last post can be found here, where we described why did we chose DRBD along with heartbeat, lighttpd and NFS. It is recommended to read that first to have idea why we are setting up this.

In this article i will explain how to configure it step by step. This is copy, paste HowTo you will need to replace the IPs and other information according to your requirements.

Example scenario :

node1.hackersgarage.com - 192.168.0.61
node2.hackersgarage.com - 192.168.0.62

LAN Virtual IP for NFS Service
Virtual IP for LAN - 192.168.0.63

Internet Virtual IP for Lighttpd Service
static.hackersgarage.com - 75.127.109.111
Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd

In this article we will discuss how can you build a high availability storage solution to store your static data.

Case :
Client is running a business portal that have approx. 300-500 MB data uploads per day. There was NFS Storage server which had 500 GB drive which was running out of space. This Server was also running lighttpd web server to provide access for users to view these files.

Problems :
No Failover. (Except offline backup)
When ever server gets done, Users are unable to upload data.
Users are unable to access their data because lighttpd was also running on same server.

Categories
HowTos Linux

mount: wrong fs type, bad option, bad superblock

If you are mounting NFS share on your Cpanel WHM Server and see this error, here is the solution;

yum install nfs-utils
/etc/init.d/portmap start
/etc/init.d/nfslock start

and now try to mount it. e.g;

mount 192.168.0.10:/some-share /mnt

Thats it!