the new world of nfs - red hat › files › summit › 2014 › dickson_t_0230... ·...

27
The New World of NFS Steve Dickson Consulting Software Engineer, Red Hat Tuesday, April 15

Upload: others

Post on 28-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

The New World of NFS

Steve Dickson Consulting Software Engineer, Red HatTuesday, April 15

Page 2: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

The Path to RHEL 7

RHEL AS 2.1● UDP Default● V2/V3 protocols

Mar 2002

RHEL 3● TCP Default● V2/v3

Oct 2003

RHEL 4● V2/V3/V4 (client)

Feb 2005

RHEL 5● V2/V3/V4

Mar 2007

RHEL 6● V2/V3/V4/V4.1

Nov 2010

Page 3: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

NFS 4.1 Server Support

NFS 4.2 Labeled NFS

Federated File System

GSS-proxy

Red HatEnterprise Linux 7.0

pNFS Client Support

NFS v2

Why RHEL 7?

Page 4: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Parallel NFS

WHAT is it (in 6 word or less)??

NFS front end to a Cluster

Red HatEnterprise Linux 7.0

Page 5: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Traditional NFS

NFS Client NFS Client NFS Client

Linux NFS ServerStorage

One Server for Multiple Clients= Limited Scalability

● Mount/Meta Data ● Read/Writes

Page 6: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Parallel NFS

pNFS Client pNFS Client pNFS Client

pNFS ServerStorage

One Server for Multiple Clients that have direct access= Scalability

● Mount/Meta Data ● Read/Writes

Page 7: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Parallel NFS Layouts

Meta DataServer

Storage2

Node2

Storage3

Node3

Storage1

Node 1

pNFS Client1

pNFS Client2

pNFS Client3

●File Layout

●Object Layout

●Block Layout

●Normal everyday Cluster Storage

1● pNFS

open(2)

Page 8: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Parallel NFS File Layouts

Meta DataServer

Storage2

Node2

Storage3

Node3

Storage1

Node 1

●File Layout

Storage1

Data Server Data Server Data Server

●Netapp

pNFS Client1

pNFS Client2

pNFS Client3

NAS

open(2)

Page 9: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Parallel NFS Object/Block Layouts

Meta DataServer Storage

2

Node2

Storage3

Node3

Storage1

Node1

pNFS Client1

pNFS Client2

pNFS Client3

●Block Layout SAN

High End Fabric●Object Layout

open(2)

Page 10: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

●File Layout ●Object/Block Layouts – Tech Preview

Industry Leader

Red HatEnterprise Linux 7

The Layouts supported in RHEL7

Page 11: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Red HatEnterprise Linux 7

● Just over 250k Transactions per min w/ 100 users

● pNFS clients, 2 node cluster

● v4.1 R/W Delegations enabled

10 20 40 60 80 1000

500000

1000000

1500000

2000000

2500000

3000000

RHEL7 3.10.0.119 RC1 Kernel OracleR2 OLTP

Netapp 8.2 RC1

NFSv3NFSv4pNFS

Number of Users

Tran

sact

ion

s p

er M

inu

te

Page 12: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

NFS 4.1 Server Support ● Reliable only-once semantics

● No pNFS support :-(

Red HatEnterprise Linux 7

● Callback share client tcp connection using port 2049

Page 13: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Security in RHEL 7 beta by Dan Walsh Today at 4:50 pm

NFS 4.2 Labeled NFSSelinux context supported

Secure virtual machine on NFS servers

Limited access to Home dirs

Usages:

Industry Leader

Red HatEnterprise Linux 7

Page 14: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Federated File System

A way to manage NFS Namespace

What is a NFS Namespace???

What is an NFS v4 referral???

A group of NFS v4 referrals

What is FedFS???

Red HatEnterprise Linux 7.0

Let me show you

Page 15: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

NFS V4 Referrals

NFS V4NFS V4ClientClient

NFS v4NFS v4referralreferralServerServer

NFS V4NFS V4ServerServer

mount

referral

lookup

mount

Red HatEnterprise Linux 7

Page 16: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

FedFS Clients & Servers

● Autofs used to manage mounts

cd /nfs4/redhat.com/home

Red HatEnterprise Linux 7

Clients Domain Servers● DNS or LDAP Is how server is found

● Junctions determine where the mount goes

● /etc/auto.master● /etc/auto.fedfs

autofsDNS SRV

_nfs-domainroot._tcp SRV 10 10 2049 batman.nfsv4bat.org

Page 17: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

NFS V4NFS V4ClientClient

Root Root DomainDomainServerServer

NFS V4NFS V4/home/homeServerServer

cd /nfs4(autofs)

Junction/home

Lookupredhat.com

mount/lookup /home

cd /nfs4/redhat.com/home

Red HatEnterprise Linux 7

Page 18: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

FedFS Namespaces

/home /data

rdu.redhat.com

/home /data

bos.redhat.com

cd /nfs4/rdu.redhat.com/home cd /nfs4/bos.redhat.com/data

Red HatEnterprise Linux 7

Page 19: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Managing FedFS Namespaces

/home /data

rdu.redhat.com

/home /data

bos.redhat.com

Root Root DomainDomainServerServer

rdu.redhat.com bos.redhat.com

Red HatEnterprise Linux 7

Client Client Client Client Client Client ...

Page 20: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Secure NFS

Two Major Pains

Setup Ticket Renewal

FreeIPA GSS-proxy

Red HatEnterprise Linux 7

Page 21: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

= IPA

Defining IPA

Audit++ PolicyIdentity

Red HatEnterprise Linux 7

Page 22: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Red HatEnterprise Linux 7

Server Client

ipa-client-installipa-server-install

Parts of IPA

Page 23: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

GSS-Proxy

Keytabs for everybody!!

Long running jobs Solved!!

kinit is no longer needed

Which Means:

Which Also Means:

Red HatEnterprise Linux 7

Page 24: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

How GSS-Proxy Works

NFS Client

UserKeytab

RPCGSSDcat /nfs/foobar

Red HatEnterprise Linux 7

Page 25: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Home Page: http://linux-nfs.org

Mailing List: [email protected]

Upstream Bugs: https://bugzilla.kernel.org/

Red Hat Bugs: https://bugzilla.redhat.com

Page 26: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Red HatEnterprise Linux 7

Email: [email protected]

All Summit Slides: http://people.redhat.com/steved/Summits

Page 27: The New World of NFS - Red Hat › files › summit › 2014 › dickson_t_0230... · 2018-02-06 · The Path to RHEL 7 RHEL AS 2.1 UDP Default V2/V3 protocols Mar 2002 RHEL 3 TCP

Visit the all new social page to see all

THE 2013 RED HAT SUMMIT BUZZredhat.com/summit/social

TWEET ABOUT IT#RHSUMMIT & #REDHAT

FIND RED HAT ON TWITTER@redhatsummit, @redhatnews, @redhatevents, @redhatpartners