Documente Academic
Documente Profesional
Documente Cultură
1 INTRODUCTION ......................................................................................................................... 3
2 OPERATION ............................................................................................................................... 3
3 USES AND ADVANTAGES OF I2P ........................................................................................... 3
4 IMPACT OF I2P AFTER DATA ONTAP UPGRADE ................................................................. 4
5 DATA ONTAP USER INTERFACE ............................................................................................ 5
6 CONCLUSION ............................................................................................................................ 7
2 OPERATION
The i2p feature updates a small amount of data in all the file and directory inodes present in the volume and
creates a new metadata file for volumes with files that have hard links. This data allows every file inode to be
mapped to a storage system relative file system path for that particular file. For files with hard links, it gives
all the storage system relative paths pointing to that file. So, given the inode number and the volume name,
it gives the ability to find all path names, including hard-linked path names, in the volume for that inode.
Similar mapping can be obtained for inodes present in Snapshot copies, provided that i2p scan was fully
completed at the time when that Snapshot copy was created. This feature is enabled by default in Data
ONTAP 7.1 and later releases. The scan has minimal impact on the storage system performance, because it
was designed to be an efficient background operation.
Upon upgrading from a pre-7.1 release of Data ONTAP, one WAFL i2p scan is started in the background for
every volume present in the system. Each scan updates 8 bytes of data in every inode that is currently being
used in the volume. For volumes that have files with hard links, the scanner creates a metadata file and
adds 12 bytes of data for each hard link. The updated data in the inode and the metadata file hold the
necessary references to map an inode to all of its storage system paths. When the scan is complete, this
information is readily accessible from the inode. The i2p information is then updated every time a file system
operation that modifies this data is performed. The operations that generally trigger an update are creating,
deleting, and renaming a directory, file, or hard link.
EXTERNAL APPLICATIONS
FPolicy services: FPolicy refers to the storage systems file policy feature, which provides a flexible
way to implement file policies through the use of a specialized off-storage system server. It is an
infrastructure that allows external servers to register certain file system events (for example, file open,
create, remove, rename, and directory create) and to receive callbacks when these events actually
occur on the storage system as a result of a client access. FPolicy events triggered through NFS need
the i2p information to report the complete file path to the FPolicy servers. The i2p information is used to
convert the inode number reported by the NFS client to a complete file path.
Virus scanning services for UNIX and NFS clients: External virus scanning servers need a
complete file path to check for virus signatures. The i2p feature supplies this file path by converting the
inode number provided by NFS clients to a file path.
CIFS ChangeNotify requests: In a multiprotocol environment, the i2p feature allows CIFS change
requests to be posted for files that are being accessed by NFS clients for various NFS file operations.
File auditing: Auditing file accesses and other file-related operations requires a complete file path.
Some file operations reference a file by its inode number, so the i2p information is required to translate
the inode number back to the file path and to record the information for audit purposes.
The i2p feature is turned on by default in Data ONTAP 7.1 and later and should remain turned on for
improved and efficient performance. All features in Data ONTAP 7.1 work without the i2p information,
but i2p provides a more efficient method. However, in later versions of Data ONTAP, some features
require the i2p information in order to function properly. Also, if i2p is not enabled, the external
applications listed that depend on i2p might not function properly.
ON-DISK UPDATES
Obtain the inode usage information for the volume by using the df i command. The iused column in the
output gives the total inodes that are used in that volume, and the ifree column gives the number of free
inodes. So the total inodes in the volume is the sum of used and free inodes.
All disk reads and writes in Data ONTAP and WAFL are made in blocks of size 4KB. Each 4KB block can
have 21 inodes in it. The exact size of the data that is updated on the disk depends on the distribution of
inode file blocks on the disk.
After the i2p scan completes, the minimum amount of inode update-related data that will be written to the
disk is equal to ceiling((Used inodes/21)) * 4 KB
The maximum amount of inode update related data that might be written is equal to
ceiling((Total inodes possible in the volume /21)) * 4 KB
Note: The ceiling function returns the smallest whole number greater than or equal to the number given as
the parameter. Therefore, ceiling(2.2) = 3 and ceiling(2.8) =3
Assume that the file system has H number of hard links. The number of hard links that exist in a file system
can be found by using the UNIX find command. The amount of data that will be written to the disk for
creating the hard links metadata file is (ceiling((H*12)/(4*1024)) * 4) KB
Therefore the minimum mount of data that will be written to the disk for updating the i2p information is
[(ceiling((Used inodes/21))* 4) + (ceiling((H*12)/(4*1024)) * 4) ] KB
The maximum amount of data that might be written to the disk is
[(ceiling((Total inodes possible in the volume/21))* 4) +
(ceiling((H*12)/(4*1024)) * 4) ] KB
6 CONCLUSION
The information provided by the Data ONTAP i2p feature is used by a variety of external applications as well
as internal operations. The i2p feature also forms the basis for some of the Data ONTAP enhancements that
were introduced in releases after Data ONTAP 7.1. The i2p scan that happens in the background after
upgrade and its impact on other features of Data ONTAP is a one-time event and has minimal impact on
system performance.
For more information about the feature, contact your NetApp systems engineer.
2008 NetApp. All rights reserved. Specifications are subject to change without notice. NetApp, the NetApp logo, Go further, faster,
Data ONTAP, SnapMirror, Snapshot, SnapVault, and WAFL are trademarks or registered trademarks of NetApp, Inc. in the United States
and/or other countries. UNIX is a registered trademark of The Open Group. All other brands or products are trademarks or registered
trademarks of their respective holders and should be treated as such. TR-3679
www.netapp.com