You are on page 1of 20

WAFL Internals

Appendix A Data ONTAP 7-Mode Administration

Module Objectives
By the end of this module, you should be able to: ƒ Describe how data is structure within a WAFL® (Write Anywhere File Layout) file system on a traditional volume ƒ Explain how data is structure within a WAFL file system in a flexible volume on a 32-bit aggregate ƒ Describe how data is structure within a WAFL file system in a flexible volume on a 64-bit aggregate

© 2011 NetApp, Inc. All rights reserved.

2

Inc.WAFL Structure © 2011 NetApp. 3 . All rights reserved.

with the exception of the root inode © 2011 NetApp. Inc. 4 .WAFL File System ƒ Is the file system in the Data ONTAP® operating system ƒ Stores metadata in files and uses a buffer tree structure ƒ Allows the Data ONTAP operating system to write metadata files and blocks anywhere on disk (Write Anywhere File Layout) ƒ Is more flexible than traditional file systems. All rights reserved. because metadata is not in fixed locations on disk.

WAFL Block Structure ƒ The WAFL file system organizes data into blocks. Inc.-----------------. 5 . ƒ Use the vol status -b command to verify block size.----------------. system> vol status -b Volume Block Size (bytes) Vol Size (blocks) FS Size (blocks) -----.---------------vol0 4096 7058256 7058256 © 2011 NetApp. All rights reserved.

All rights reserved.WAFL Structure The WAFL file system is structured into volumes: Aggregate vol1 vol1 © 2011 NetApp. 6 . Inc.

7 . Inc. All rights reserved.WAFL File System and Inodes ƒ WAFL organizes some metadata into inodes. ƒ An inode: ± Is a collection of information about a file or directory ± Holds information including: ƒ ƒ ƒ ƒ Time and date stamp Size UNIX® permissions Windows® access control list (ACL) ± Has 192 bytes of data ± Is placed in an inode file (inofile) © 2011 NetApp.

´ Root inode volinfo block 1 volinfo block 2 Aggregate vol1 fsinfo block 0 ..WAFL Structure: Volinfo and Fsinfo Blocks Every volume has a root inode. Snapshot® definitions 8 . All rights reserved. which is the starting point of the inode ³tree. vol1 fsinfo block 255 Active file system © 2011 NetApp.. Inc.

WAFL Structure: Inofile Inode information is held in the inode file (inofile). Inc.. Root inode 0 .. 192-byte inode 20 21 Inode file Aggregate vol1 Blocks of 4096-byte each vol1 © 2011 NetApp. a hidden system file. All rights reserved. 9 .

10 . Root inode 0 . Inc. All rights reserved. the data is stored within the inode file.. Small file inode 20 Inode file Aggregate vol1 4-KB block Small file data inside the 192-byte inode vol1 © 2011 NetApp.Level 0 For files that are less than 65 bytes..

. All rights reserved. but less than or equal to 64 KB.. 32-bit pointers Root inode File inode 0 0 1 . a level-1 inode structure is used. Inc.Level 1 In Traditional Volumes For files that are greater than 64 bytes. 20 . 4-KB block 11 ... Inode file 15 4 bytes vol1 Direct Data Block Direct Data Block Direct Data Block vol1 © 2011 NetApp.

Inc. 12 . All rights reserved.Traditional Volume Data Structure Disk Physical Block Number (PBN) 500 block number Volume Block Number (VBN) 500 block number Traditional Volume © 2011 NetApp.

Level 1 In 32-Bit Aggregates For files that are greater than 64 bytes but less than or equal to 32 KB.. All rights reserved. because the physical and virtual VBNs are separate © 2011 NetApp. 20 . vol1 4-KB block 13 .. a level-1 inode structure is used.. Inode file 7 1 2x4 bytes* *NOTE: 2 x 4 bytes. Root inode 0 32-Bit Aggregate vol1 Direct Data Block Direct Data Block Direct Data Block 0 32-bit pointers File inode .. Inc.

Inc.Flexible Volume Data Structure Aggregate Disk vol1 PvBN 456 block number vol2 PvBN 123 block number Disk vVBN 500 block number vVBN 500 block number Physical Virtual Block Number (PvBN) Virtual Volume Block Number (vVBN) © 2011 NetApp. 14 . All rights reserved.

3 Inode file 2x8 bytes 64-Bit Aggregate vol1 Direct Data Block Direct Data Block vol1 © 2011 NetApp.Level 1 In 64-Bit Aggregates For files that are greater than 64 bytes but less than or equal to 16 KB... a level-1 inode structure is used. Root inode 0 0 64-bit pointers File inode . 20 . Inc. All rights reserved. 4-KB block 15 ...

but less than or equal to 64 MB.....Level 2 in Traditional Volumes For files that are greater than 64 KB.. 1023 0 . Root inode 0 0 1 32-bit pointers File inode . Inc. 1023 Direct Data Block Direct Data Block Direct Data Block vol1 © 2011 NetApp.. 16 . All rights reserved.. Inode file 15 Up to 16 indirect blocks vol1 0 .. a level-2 inode structure is used. 20 .

Inode file 7 1 Up to 8 indirect blocks 32-Bit Aggregate vol1 0 . 511 0 .. a level-2 inode structure is used. 511 Direct Data Block Direct Data Block Direct Data Block vol1 © 2011 NetApp.Level 2 in 32-Bit Aggregates For files that are greater than 32 KB but less than or equal to 16 MB. 20 ....... Inc. All rights reserved.. 17 . Root inode 0 0 32-bit pointers File inode .

Level 2 In 64-Bit Aggregates For files that are greater than 16 KB..... a level-2 inode structure is used. 3 Inode file Up to 4 indirect blocks 64-Bit Aggregate vol1 0 . 18 .. 255 0 . All rights reserved.. Root inode 0 0 64-bit pointers File inode . 255 Direct Data Block Direct Data Block Direct Data Block vol1 © 2011 NetApp.. but less than or equal to 4 MB.. 20 . Inc.

Inc.Directories Each directory inode points to at least one 4-KB block that holds the metadata for the block. 19 . Root inode Inode file Directory inode 4-KB block Entries Chunks Aggregate vol1 An array of entries containing 128 rows of 12 bytes An array of 160 sixteenbyte name chunks vol1 © 2011 NetApp. All rights reserved.

All rights reserved. 20 . you should be able to: ƒ Describe how data is structure within a WAFL file system on a traditional volume ƒ Explain how data is structure within a WAFL file system in a flexible volume on a 32-bit aggregate ƒ Describe how data is structure within a WAFL file system in a flexible volume on a 64-bit aggregate © 2011 NetApp.Module Summary Now that you have completed this module. Inc.