OPS535. NFS Servers and Clients. Advanced TCP/IP Network Administration. Raymond Chan Seneca College of Applied Technology

Similar documents
The Network File System

The Network File System

Advanced Network and System Administration

Network File System Andrew File System NetWare Core Protocol Server Message Block Common Internet File System

Introduction to the Network File System (NFS)

Introduction to the Network File System (NFS)

NFS Design Goals. Network File System - NFS

CIT 470: Advanced Network and System Administration. Topics. Filesystems and Namespaces. Filesystems

NFS Version 4 17/06/05. Thimo Langbehn


Take Command Starting Share Files with NFS

CSE 265: System and Network Administration

4. Note: This example has NFS version 3, but other settings such as NFS version 4 may also work better in some environments.

Maintenance of /etc/fstab in large network Crashed NFS server will make operation blocked

File systems: management 1

Lab #9: Configuring A Linux File Server

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 3.1 and 3.1.1

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 2.7.3

NetBackup Copilot for Oracle Configuration Guide. Release 2.7.1

Monitoring Network File Systems

Veritas NetBackup Copilot for Oracle Configuration Guide. Release 2.7.2

Operating Systems, Fall

Chapter 12 Distributed File Systems. Copyright 2015 Prof. Amr El-Kadi

Distributed File Systems: Design Comparisons

416 Distributed Systems. Distributed File Systems 1: NFS Sep 18, 2018

Project #4: Implementing NFS

System Administration. NFS & Web Servers

NFS Version 4 Open Source Project. William A.(Andy) Adamson Center for Information Technology Integration University of Michigan

Internet Systems Programming

Administring NFSv4 with Webmin

High Availability & Fault Tolerance of the Deployment Manager using NFS on Linux

Today: Distributed File Systems

NFSv4.1 Plan for a Smooth Migration

B. The configuration will deny access to /var/web/dirl/private.html, but it will allow access to /var/web/dirl/subdir2/private.html, for example.

SMB. / / 80-. /,,,, /scalability/ mainframe. / . ",,!. # $ " fail sharing,,. % ,,. " 90-, 12, /.! database.! /DBMS/.

16 More File-Sharing Services

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture)

ECE 598 Advanced Operating Systems Lecture 19

Root over NFS on User Mode Linux

Today: Distributed File Systems. Naming and Transparency

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

Distributed File Systems. CS432: Distributed Systems Spring 2017

Solaris 9 Mount Cdrom Manually

Today: Distributed File Systems!

Advanced Operating Systems

Distributed File Systems

D. Delete the /var/lib/slocate/slocate.db file because it buffers all search results.

DISTRIBUTED FILE SYSTEMS & NFS

Exam Questions Demo LPI. Exam Questions Linux Networking Administration.

RHCE BOOT CAMP. File Sharing Services. Wednesday, November 28, 12

Configuring NFSv4 on SUSE Linux Enterprise 10

Chapter 11: Implementing File

KillTest 䊾 䞣 催 ࢭ ད ᅌ㖦䊛 ᅌ㖦䊛 NZZV ]]] QORRZKYZ TKZ ϔᑈܡ䊏 ᮄ ࢭ

Serviceguard NFS Toolkit A , A and A Administrator's Guide

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

Chapter 11: Implementing File Systems. Operating System Concepts 9 9h Edition

File Systems. What do we need to know?

Linux System Administration

Data Block. Data Block. Copy A B C D P HDD 0 HDD 1 HDD 2 HDD 3 HDD 4 HDD 0 HDD 1

VERITAS Storage Migrator 3.4 VERITAS Storage Migrator Remote 3.4

File-System Structure

Accessing LINUX file systems from CMS. Metropolitan VM Users Association January 24, 2005

Mounting and Unmounting the CD-ROM Drive on Solaris

RHCSA BOOT CAMP. Filesystem Administration

DFS Case Studies, Part 1

Chapter 12 File-System Implementation

SIOS Protection Suite for Linux NFS Recovery Kit v Administration Guide

OPERATING SYSTEM. Chapter 12: File System Implementation

SysadminSG RHCSA Study Guide

Chapter 11: Implementing File-Systems

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9b: Distributed File Systems INTRODUCTION. Transparency: Flexibility: Slide 1. Slide 3.

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

Chapter 11: Implementing File Systems

Network File System (NFS)

About Backup and Restore, on page 1 Supported Backup and Restore Procedures, on page 3

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

Network File System. Network File System (NFS) NFS Advantages. Network File System Disadvantages

File systems: outline

Distributed Systems. Hajussüsteemid MTAT Distributed File Systems. (slides: adopted from Meelis Roos DS12 course) 1/15

We guarantee you can pass any IT certification exam at your first attempt with just hours study of our guides.

Distributed File Systems. Distributed Systems IT332

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Operating Systems Design 16. Networking: Remote File Systems

Chapter 11: File System Implementation

Practical 5. Linux Commands: Working with Files

What is a file system

UNIT V. Dr.T.Logeswari. Unix Shell Programming - Forouzan

Chapter 11: File System Implementation

Chapter 11: Implementing File Systems

Chapter 10: File System Implementation

Lecture 15: Network File Systems

Chapter 12: File System Implementation

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Distributed File Systems. Directory Hierarchy. Transfer Model

An NFS Replication Hierarchy

Distributed Systems - III

Checking Resource Usage in Fedora (Linux)

Using the Linux NFS Client with Network Appliance Filers Getting the Best from Linux and Network Appliance Technologies

Distributed Systems. Distributed File Systems. Paul Krzyzanowski

Transcription:

1 OPS535 Advanced TCP/IP Network Administration NFS Servers and Clients Raymond Chan Seneca College of Applied Technology 2005

2 What is NFS? NFS stands for Network File System NFS is one way for sharing disks over a network NFS is an Client/Server Application NFS enables filesystems physically residing on one computer system to be used by other computers in the network, appearing to users on the remote host as just another local disk.

3 NFS Servers Server and Client are used to describe the roles a process plays when interacts with other process. If a file system resides on a computer's disk and that a process running on the same computer makes the file system available to other processes (either running on the same computer or on a different computer), that process acts as a server. The processes that are accessing that file system

4 NFS Clients NFS Clients access files on the server by mounting the server's share file systems do not make a copy of the file system use a series of remote procedure calls (RPC) to access the file system transparently on the server's disk

5 Can be shared: Whole directory tree Partial directory tree NFS File Systems A file hierarchy including a single file Can not be shared: A file hierarchy that overlaps one that is already shared

6 NFS Environment NFS has been implemented on: Different hardware architectures Intel x86 Sun's SPARC Different operating systems MS-DOS VMS

7 NFS Benefits Centralize file storage Reduces store costs Provides data consistency Transparent remote access Supports heterogeneous operating environments Reduces system administration overhead

8 NFS Versions Version 2 The first widely used version Available on a large variety of platform All Solaris prior to 2.5 support only version 2 Version 3 Allows the server to cache client write request in memory Checks file access permission before file opened Removes the 8-Kbytes transfer size limit

9 NFS Administration Sharing and unsharing File Systems Modifying administrative files to update the lists of file systems your computer shares or mounts Setting up NFS Services Checking the status of the NFS Services Diagnosing and fixing NFS related problems

10 NFS administrative files Linux: /etc/exports Sun:/etc/dfs/dfstab Used by the system to tell NFS server which file systems on the local system are to be shared to the various computers on the network and under what conditions and restrictions. Linux: /etc/fstab Sun: /etc/vfstab Used by the system to tell NFS client which shared file system by a NFS server should be attached to which directory of the the local file system.

11 Share the file system Changes made to /etc/exports(l),etc/dfs/dfstab(s) will take effect after Rebooting the system, or Executing the exportfs -a (Linux) or shareall (Sun) command, or Restarting the NFS daemons

12 Server Componets nfsd handles file access requests from client process nfslogd provides operational logging (Sun only) mountd handles mount requests from client systems lockd manages file locking statd provides crash and recovery functions for the lock manager Portmapper(Linux), rpcbind(sun) facilitates initial connection between client and server

13 Client Components Normally implemented as file system driver (usually part of the kernel) mount command /etc/fstab(linux), /etc/vfstab(sun) allow remote filesystems to be automatically mounted at boot time.

14 Mounting File Systems Changes made to /etc/fstab(l), /etc/vfstab(s) will take effect after the system is rebooted, or an appropriate mount command is executed, or Activated by the automounter

15 Syntax for mounting NFS mount -t nfs [ -o options ] nfs_server:/r_dir /l_dir -t nfs : file system type -o options : ro rw, suid nosuid, bg, retry=n, timeo=n, retrans=n, soft hard, intr, rsize=n, wsize=n nfs_server : nfs server's host name/ip address r_dir : exported directory on nfs server l_dir : local directory on nfs client

16 NFS mount options ro, rw : mount for read only or read and write retran=n : retransmit a request n times before giving up hard : continue trying to connect even after the retrans value is met soft : quit after retrans value is met

17 Mount options (2) intr : allow an interrupt to kill a hung process rsize=n : the size of read buffer in bytes wsize=n : the size of the write buffer in bytes suid, nosuid : respect/not respect suid modes on the remote filesystem, if nosuid is used, SUID files on the remote filesystem will not run as root locally.

18 Sharing Local Filesystem(Sun) At boot time Add entries to /etc/dfs/dfstab with the following syntax: share [-F fstype] [-o options] e.g. [-d <text> > <pathname> Share -F nfs -o rw=pod1w1, access=pod1w2:pod1w3,anon=-1 /somefs

19 Sharing Filesystem (2) (Sun) At the command prompt Use the same share command syntax as in / etc/dfs/dfstab files share -F nfs -o rw=pod1w1, access=pod1w2:pod1w3,anon=-1 /somefs Allow pod1w1 to mount it for reading and writing and pod1w2 and pod1w3 to mount it read-only. Requests from users without matching accounts on the local system are denied.

Sharing Local Filesystem(Linux) At boot time Add entries to /etc/exports with the following syntax: share_path_name host(s)( options) e.g. /public 172.16.2.1(rw,root_squash) /share (ro) 20

21 Sharing Filesystem (2) (Linux) At the command prompt Use the exportfs command syntax exportfs [-avi] [-o options,..] client:path e.g. exportfs -o rw,root_squash 192.168.1.2:/public Allow 192.168.1.2 to mount it for reading and writing. Access by other hosts will be denied. e.g. exportfs -o ro :/share Allow any hosts to have read access the /share directory

22 Export Options (Linux) Read Write Options: ro rw User ID, group ID mapping options: root_squash, no_root_squash all_squash, no_root_squash anonuid, anongid Anonymous user: uid=65534, gid=65534

23 Mounting /somefs to /mnt (Sun) mount -F nfs pod1w0:/somefs /mnt mount -F nfs -o ro pod1w0:/somefs /mnt mount -F nfs -o wsize=16384 pod1w0:/somefs / mnt For more examples, see man mount_nfs

Mounting /somefs to /mnt (Linux) 24 mount -t nfs 192.168.1.1:/somefs /mnt mount -t nfs -o ro 192.168.1.1:/somefs /mnt mount -t nfs -o wsize=16384 192.168.1.1:/somefs /mnt For more examples, see man mount