Build NFS Server on CentOS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Build NFS Server on CentOS
# 1  
Old 11-14-2018
Build NFS Server on CentOS

Dear All,

I'm using AWS EC2 instance for my application. My application is high disk I/O based and EFS could not be used in my case.

So, i need to build my own NFS server on Ec2 instance. I'm looking for High availability solution for my disk which i shared for NFS. Looking for builtin snapshot solution and 99.9% availablity. Is there any software raid or any solution which you can recommend to me?

Thanks
Bala
# 2  
Old 11-15-2018
Can you clarify, do you need two boxes with NFS as clustered resource or ?
For snapshots and stuff (outside cloud provider), ZFS filesystem should offer the same, if used on NFS server as filesystem.
There is also an options of LVM snapshots.

You can use it on open solaris implementations such as OmniOS or modern linux with openzfs implementation.
OpenZFS

This is what is proven and working.

There is BRTFS as well as a GPL COW filesystem, with snapshots, which i cannot suggest, since i'm not sure if it is mature enough for production usage.

Regards
Peasant.

Last edited by Peasant; 11-15-2018 at 08:03 AM.. Reason: Forgot lvm capabilities.
# 3  
Old 11-15-2018
Thank you Peasant.

I'm looking for

1. Built-in snapshotsolution (Daily, and weekly)
2. Yes. Two Clustered NFS server. So that if one NFS server goes down, i can bring another one.

Please suggest me

Thanks
Bala
# 4  
Old 11-15-2018
Will those 2 NFS boxes have same disk presented or data replication is required sided with NFS ?
What does high IO mean, are you running databases or ?

You do understand that NFS is not a clustered file system.
So writing in same file from multiple nodes will not work as you expect.

Can you elaborate a bit more about the architecture and application and what it does ?
Perhaps glusterfs, HDFS or ISCSI could be a better advice.

Regards
Peasant.
# 5  
Old 11-15-2018
Peasant - I'm trying to setup GitLab instance on AWS EC2. It requires shared file system such as NFS. This application will have high I/O transaction.

The GitLab vendor doesn't support AWS EFS file system due to its limitation by nature. So, i want to build custom NFS server which will be shared on 4 servers.

So, I'm looking for HA solution to my NFS share.

1. Built in sanpshot solution for accidental file deletion and curruption
2. Since the NFS share disk going to reside on EBS volume, i want to ensure the disk will be safe.
3. Looking for solution to replicate the EBS volume data to another disk on the same machine or different machine.

Thanks
Bala

------ Post updated at 03:23 PM ------

Peasant - I'm trying to setup GitLab instance on AWS EC2. It requires shared file system such as NFS. This application will have high I/O transaction.

The GitLab vendor doesn't support AWS EFS file system due to its limitation by nature. So, i want to build custom NFS server which will be shared on 4 servers.

So, I'm looking for HA solution to my NFS share.

1. Built in sanpshot solution for accidental file deletion and curruption
2. Since the NFS share disk going to reside on EBS volume, i want to ensure the disk will be safe.
3. Looking for solution to replicate the EBS volume data to another disk on the same machine or different machine.

Thanks
Bala
# 6  
Old 11-15-2018
I'm not sure what suggest here, since i have not worked with clouds so much.

But having replicated disks of any kind in cloud sounds bad.
As you depend on network latency for any kind of disk replication, your iops will suffer.
Similar as they suffer now using cloud builtin distributed disks, EFS.

Can you use just one gitlab instance, and amazon tools to backup / snapshot / copy the data around ?

If you said metal, things would be different since you control every aspect of implementation.

Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

FreeBSD vs CentOS as server

I have a HP Proliant server with centOS. This is the software that I run: - SSH + SFTP - NGINX - PHP7 - Bitcoind - MYSQL Would you recommend FreeBSD or CentOS for this software. Also how hard is it to set this up with FreeBSD compaired to CentOS? I never used FreeBSD before, is it hard... (3 Replies)
Discussion started by: jwz104
3 Replies

2. AIX

AIX NFS Server and NFS Client

Hi 2 ALL, try to run NFS Server in AIX 7.1 : 1. Step by step on NFS Server node mkdir /tmp/test chgrp staff /tmp/test chmod 775 /tmp/test-- create export directory (fs) mknfsexp -d /tmp/test -t ro exportfs -va show mount -e :/# exportfs -av exports: 1831-187 re-exported /tmp/test... (4 Replies)
Discussion started by: penchev
4 Replies

3. UNIX for Dummies Questions & Answers

NFS issue with autofs in CentOS 6.3

I am running CentOS 6.3 as a VM on a host which has the same installation. I configured my NFS server and I am guessing it works. I say guessing because I can mount the desired folder with mount command on my client machine. So, when I run: mount -t nfs -o vers=3 vm2.domain.com:/nethome /nethit... (7 Replies)
Discussion started by: bashily
7 Replies

4. Web Development

Building LAMP server from scratch (build a server with compiled LAMP from CentOS mini)

Hello everyone, I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself. I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help! First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies

5. Linux

Moving Whole OS Centos Server

I currently have a web server its on a small harddrive I didn't know my site would grow so fast but now I need a bigger hard drive. Instead of adding another harddrive (host charge monthly of how many hard drives connected to server) is there anyway to just move the whole os to a bigger hard drive... (2 Replies)
Discussion started by: awww
2 Replies

6. UNIX for Advanced & Expert Users

Mail server in centos!!

Hi all!! 1. I am totally new to Mail server but now in our management decided to run own mail server, still now we are running our mail server using godaddy!! if we transfer all mail accounts to here means what are the steps i need to do?? 2. I have basic idea in postfix , which... (2 Replies)
Discussion started by: anishkumarv
2 Replies

7. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

8. Solaris

NFS write failed for server.....error 11 (RPC: Server can't decode arguments)

Hello! I have a Linux nfs server (called server100 below) with a export nfs. My problem is that the Solaris client (called client100 below) doesn't seems to like it. In the Solaris syslog I got following messages (and after a while the solaris client behave liked its hanged/to buzy). Also see... (3 Replies)
Discussion started by: sap4ever
3 Replies
Login or Register to Ask a Question