Top Banner
Write and Read Request Processing Module 13 Data ONTAP® 7.3 Fundamentals
22

M13 Writes-Reads FINAL

Apr 14, 2018

Download

Documents

subhrajitm47
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 1/22

Write and ReadRequest Processing

Module 13

Data ONTAP® 7.3 Fundamentals

Page 2: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 2/22

© 2008 NetApp. All rights reserved. 2

Module Objectives

By the end of this module, you should be able to:

Describe how data is written from and read to

a WAFL file system on a volume

Describe the WAFL file system, including

consistency points, RAID management, andstorage levels

Describe how RAID is used to protect disk data

Describe how the WAFL file system processeswrite and read requests

Page 3: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 3/22

© 2008 NetApp. All rights reserved. 3

Data ONTAP Simplified

StorageRAIDProtocolsNetwork 

Client

Disks

   N  e   t  w  o  r   k

Data ONTAP

NVRAM

Client

Client

Client

Client

WAFL ® 

Physical

Memory

Page 4: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 4/22

© 2008 NetApp. All rights reserved. 4

Write Requests

Page 5: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 5/22

© 2008 NetApp. All rights reserved. 5

Write Requests

Write requests are received by Data ONTAP

through multiple interface protocols:

 – CIFS

 – NFS

 – FCP

 – iSCSI

 – HTTP

 – WebDAV Write requests are buffered into:

 – System memory

 – NVRAM

Page 6: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 6/22

© 2008 NetApp. All rights reserved. 6

Write Request Data Flow: Write Buffer 

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

NV

R

 A

M

NVRAM Full

WAFL

NVLOGNVLOG

NVLOG

NVLOG

NVLOG

Page 7: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 7/22© 2008 NetApp. All rights reserved. 7

Consistency Point

 A completely self-consistent image of the file

system. Although dynamic, if the file system

were frozen momentarily to capture its

structure –that is a consistency point

 A consistency point occurs when designateddata is written to a disk and a new root inode is

determined

 A consistency point occurs for multiple

reasons, including the following:

 – One bank of the NVRAM card is full

 – 10 seconds have elapsed

Page 8: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 8/22© 2008 NetApp. All rights reserved. 8

Consistency Point (Cont.)

During a consistency point, Data ONTAP

flushes writes to disk

 –  Always writes to new data blocks

 – The volume is always consistent on disk

When Data ONTAP flushes memory to disk: – It updates the file system ―atomically,‖ meaning

that the entire write must be completed or the

entire write is rolled back

 – This includes all metadata

 –  After checking, the NVRAM is cleared

Page 9: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 9/22© 2008 NetApp. All rights reserved. 9

WAFL

Write Request Data Flow: WAFL to RAID

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

NV

R

 A

M

NVLOGNVLOG

NVLOG

NVLOG

NVLOG

NVRAM Full

Page 10: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 10/22© 2008 NetApp. All rights reserved. 10

Consistency Point: WAFL to RAID

The RAID layer calculates the parity of thedata:

 – To protect it from one or more disk failures

 – To protect stripes of data

If a data disk fails, the missing information canbe calculated from parity

The storage system can be configured aseither:

 – RAID 4— Allows one disk failure in the RAIDgroup

 – RAID-DP— Allows up to two disk failures in theRAID group

Page 11: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 11/22© 2008 NetApp. All rights reserved. 11

Write Request Data Flow: RAID to Storage

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

NV

R

 A

M

NVLOGNVLOG

NVLOG

NVLOG

NVLOG

NVRAM Full

WAFL

4k

Page 12: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 12/22© 2008 NetApp. All rights reserved. 12

Consistency Point: RAID to Storage

Storage layer commits the data and parity to

the physical disks

Two atomic checksums are calculated to verify

that the data is written consistently on the disks

The root inode is updated to point to the newfile inodes on the disk

The NVRAM is flushed and made available

The consistency point now is complete

Page 13: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 13/22© 2008 NetApp. All rights reserved. 13

Write Request Data Flow: Storage Writes

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

NV

R

 A

M

NVLOGNVLOG

NVLOG

NVLOG

NVLOG

NVRAM Full

WAFL

Page 14: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 14/22© 2008 NetApp. All rights reserved. 14

NVRAM

Data ONTAP writes from system memory

 – NVRAM is never used for normal write

operations

 – NVRAM is backed up with a battery

If a system failure occurs before thecompletion of a consistency point, the data is

written from NVRAM when the system is

brought back online (or by the partner machine

in an active-active environment)

Page 15: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 15/22© 2008 NetApp. All rights reserved. 15

Read Requests

Page 16: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 16/22© 2008 NetApp. All rights reserved. 16

Read Requests

Every time a read request is received, WAFL

does one of the following:

 – Reads the data from the system memory, also

known as ―cache‖ 

 – Reads the data from the disks The cache is populated by:

 – Data recently written to disk

 – Data recently read from disk

Page 17: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 17/22© 2008 NetApp. All rights reserved. 17

Read Request Data Flow: Cache

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

N

V

R

 A

M

NVLOG

NVLOG

NVLOG

NVLOG

NVLOG

NVRAM Full

WAFL

Cache

Page 18: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 18/22© 2008 NetApp. All rights reserved. 18

Read Request Data Flow: Read from Disk

Network

SAN Host

UNIX

Client

WindowsClient

NetworkStack

RS-232

HBA

NIC

Protocols

SAN

Service

NFS

Service

CIFS

Service

Memory Buffer 

RAID

Storage

N

V

R

 A

M

NVLOG

NVLOG

NVLOG

NVLOG

NVLOG

NVRAM Full

WAFL

Cache

Page 19: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 19/22© 2008 NetApp. All rights reserved. 19

Module Summary

In this module, you should have learned to:

WAFL plans and manages storage

RAID protects data

The storage layer manages data transfer to

and from disk

Page 20: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 20/22

Exercise

Module 13: Write and Read Request

Processing

Estimated Time: 10 minutes

Page 21: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 21/22

Answers

Module 13: Write and Read Request

Processing

Page 22: M13 Writes-Reads FINAL

7/29/2019 M13 Writes-Reads FINAL

http://slidepdf.com/reader/full/m13-writes-reads-final 22/22

Check Your Understanding

What is a consistency point?

 –  A completely self-consistent image of the entire

file system

What is the purpose of RAID?

 – To protect data—RAID striping is the methodused to protect disk data by which a parity value

is calculated across the disks in 4-Kb blocks

What is the storage layer?

 – Handles the I/Os to disk and checks for disk

failures