the new world of nfspeople.redhat.com/steved/summits/summit14/thenewworldofn...security in rhel 7...

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

Upload: lamdan

Post on 25-Mar-2019

215 views

Category:

Documents


0 download

TRANSCRIPT

The New World of NFS

Steve Dickson Consulting Software Engineer, Red HatTuesday, April 15

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

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?

Parallel NFS

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

NFS front end to a Cluster

Red HatEnterprise Linux 7.0

Traditional NFS

NFS Client NFS Client NFS Client

Linux NFS ServerStorage

One Server for Multiple Clients= Limited Scalability

● Mount/Meta Data ● Read/Writes

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

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)

Meta DataServer

Data Server Data Server Data Server

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)

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)

●File Layout ●Object/Block Layouts – Tech Preview

Industry Leader

Red HatEnterprise Linux 7

The Layouts supported in RHEL7

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

NFS 4.1 Server Support ● Reliable only-once semantics

● No pNFS support :-(

Red HatEnterprise Linux 7

● Callback share client tcp connection using port 2049

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

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

NFS V4 Referrals

NFS V4NFS V4ClientClient

NFS v4NFS v4referralreferralServerServer

NFS V4NFS V4ServerServer

mount

referral

lookup

mount

Red HatEnterprise Linux 7

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

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

How FedFS works

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

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 ...

Secure NFS

Two Major Pains

Setup Ticket Renewal

IPA GSS-proxy

Red HatEnterprise Linux 7

= IPA

What is IPA??

Audit++ PolicyIdentity

Red HatEnterprise Linux 7

Red HatEnterprise Linux 7

Server Client

ipa-client-installipa-server-install

Ingredients of IPA

Secure NFS

GSS-Proxy

Keytabs for everybody!!

Long running jobs Solved!!

kinit is no longer needed

Which Means:

Which Also Means:

Red HatEnterprise Linux 7

How GSS-Proxy WorksClient

NFS Client

UserKeytab

RPCGSSDcat /nfs/foobar

Red HatEnterprise Linux 7

How GSS-Proxy WorksServer

NFS Server

NFSKeytab

mount server:/nfs/foobar

Red HatEnterprise Linux 7

NFS client Client Auth

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

Mailing List: [email protected]

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

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

Red HatEnterprise Linux 7

Email: [email protected]

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

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