Skip to content

Instantly share code, notes, and snippets.

@AbdullahGhani1
Last active August 29, 2022 23:20
Show Gist options
  • Save AbdullahGhani1/295b5167cc9343a310ffbcc5b27f2634 to your computer and use it in GitHub Desktop.
Save AbdullahGhani1/295b5167cc9343a310ffbcc5b27f2634 to your computer and use it in GitHub Desktop.
NFS Troubleshooting

NFS Troubleshooting - KodeKloud

The Nautilus production support team was trying to fix issues with their storage server. The storage server has a shared directory /webdata, which is mounted on all app servers at location /var/www/html so that whatever data they store on storage server under /webdata can be shared among all app servers. Somehow NFS server is broken and having some issues. Identify the root cause of the issue and fix it to make sure sharing works fine among all app servers and storage server.

Click on ✔ and Do Task Again

Solution:

Open 4 terminal

ssh on all 4 terminal

ssh tony@stapp01
ssh steve@stapp02
ssh banner@stapp03
##to storage server
ssh  [email protected]	 #Bl@kW

Run bellow Commands on All Server

sudo systemctl enable nfs-server
sudo  chkconfig nfs-server on && sudo systemctl start nfs-server 
sudo systemctl status nfs-server && sudo systemctl enable rpcbind 
sudo  chkconfig rpcbind on && sudo systemctl start rpcbind 
sudo systemctl status rpcbind

On storage server

sudo vi /etc/exports

Delete the line by press dd and then press i and add below line

Change /web according to Task

/web 172.16.238.10(rw,sync,no_root_squash) #change webapp according to task
/web 172.16.238.11(rw,sync,no_root_squash) #change webapp according to task
/web 172.16.238.12(rw,sync,no_root_squash) #change webapp according to task

Run Bellow command on each app server

change /code according to task

sudo mount -t nfs ststor01:/code /var/www/html/  

Valid Task using df -h on each app server

Click on ✔ and Do Task Again

Solution: Click on below Link (Word)

NFsTroubleshooting

@faiz-git
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment