Professional Documents
Culture Documents
FlexCache Technical FAQ
FlexCache Technical FAQ
FlexCache Technical FAQ
FlexCache in ONTAP
ONTAP 9.13.1
Elliott Ecton, NetApp
May 2023
Abstract
This technical FAQ is meant to assist NetApp systems engineers, professional services,
support and partners by providing answers to frequently asked questions about the use and
implementation of the NetApp® FlexCache® feature.
TABLE OF CONTENTS
Purpose ........................................................................................................................................................ 4
2 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
How do I configure the atime-update-period? ............................................................................................ 7
Does FlexCache support nested volumes? ............................................................................................... 7
Does FlexCache support FlexClones as an origin? ................................................................................... 7
Does FlexCache support mixed-security style? ......................................................................................... 8
Are SMB Change Notifies supported at the cache? .................................................................................. 8
Can I change the name of the FlexCache origin without breaking the FlexCache relationship? ............... 8
I would like to join the public preview for FlexCache Write Performance (Writeback) available in ONTAP
9.12.1. How do I go about this? ................................................................................................................. 8
I need the FlexCache volume to always maintain a size relative to the origin. Can I do that? ................... 8
Can I enable ‘is-relative-size-enabled’ on an existing FlexCache volume? ............................................... 8
Can I modify the ‘relative-size-percentage’ after it has been set? ............................................................. 8
What happens to the size of the cache if I disable ‘is-relative-size-enabled?’ ........................................... 8
Why does a READ operation at the cache fail if the origin is full? ............................................................. 8
3 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
Purpose
The purpose of this technical FAQ is to answer questions surrounding the use and implementation of
FlexCache technology in NetApp ONTAP®.
Do I need a license?
Answer: For ONTAP 9.5 and ONTAP 9.6, yes. FlexCache licenses are a subscription-based capacity
license. The license cost is $0, but it is still required to create FlexCache volumes. For ONTAP 9.7 and
later, no license is required.
General
Can I write to a FlexCache volume?
Answer: Yes. Writes do not write to the FlexCache volume but are forwarded to the origin volume by
ONTAP due to the write-around nature of the cache.
Will the FlexCache volume still work when the origin and FlexCache volume can’t communicate?
Answer: There are some resrtrictions but FlexCache software has a disconnected mode that will allow
already cached data to be served.
4 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
What protocols can I use to access the origin volume?
Answer: Any NAS protocol ONTAP supports is supported at the origin.
Can I create a FlexCache volume and then sever the relationship to make it an independent
volume?
Answer: You can only create and delete a FlexCache volume. There is no provision to break the
relationship and make it an independent volume.
5 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
Can I create a FlexCache volume from a FlexGroup origin volume?
Answer: ONTAP 9.7 and later supports a FlexGroup volume as an origin volume. Both the cluster hosting
the cache and the origin need to run ONTAP 9.7 or later.
How long does it take for changes at the origin to reflect to the FlexCache volume?
Answer: Unless the FlexCache volume is disconnected, meaning the cluster owning the FlexCache
volume cannot communicate with the cluster owning the origin, changes at the origin immediately
invalidate the cached files. Therefore, the next read of those cached files result in fetching it from the
origin. This means that changes at the origin are virtually immediate.
Is the FlexCache volume persistent (Does a reboot, failover or other event clear the cache)?
Answer: FlexCache technology is a persistent cache. No node event (HA failover, reboot, and so on)
evicts cached files.
6 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
Is the FlexCache volume traffic encrypted over the wire?
Answer: Beginning with ONTAP 9.6, you can encrypt cluster peer traffic if both clusters are running
ONTAP 9.6. If the cluster peer relationship was created before either cluster ran ONTAP 9.6, then after
both clusters are upgraded, the peer relationship settings must be modified to begin in-flight encryption.
Any new peers that are created when both clusters run ONTAP 9.6, in-flight encryption is enabled by
default.
Is the entire file evicted from the cache if a change is made at the origin?
Answer: In releases earlier than ONTAP 9.8, any modification to a file at the origin causes the entire file
to be evicted from the cache. Beginning with ONTAP 9.8, block level invalidation is introduced. Only the
modified blocks within a file are evicted from the cache when this option is enabled. This option is
disabled by default. To enable it, run the following command for the ONTAP CLI in advanced mode:
flexcache origin config modify -origin-vserver <svm> -origin-volume <volume> -is-bli-enabled true
How many caches can be associated with a single FlexCache origin volume?
Answer: In releases earlier than ONTAP 9.8, only ten caches are allowed per FlexCache origin. In
ONTAP 9.8 and later, the limit is increased to 100 caches per FlexCache origin.
If the atime is updated on a file after a read at the origin, does that evict the file at the cache?
Answer: In releases earlier than ONTAP 9.11.1, NetApp recommends that you disable atime update on
the origin volume to prevent cache evictions after a read operation. Beginning in ONTAP 9.11.1, there is
an option to set the -atime-update-period on the origin. When the atime-update-period value is set greater
than zero, no read operations invalidate the cache until the atime-update-period expires.
7 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
Does FlexCache support mixed-security style?
Answer: Yes. FlexCache supports mixed-security style
Can I change the name of the FlexCache origin without breaking the FlexCache relationship?
Answer: Yes. You may rename the origin at will without any impact on the cache(s) associated with it
I would like to join the public preview for FlexCache Write Performance (Writeback) available in
ONTAP 9.12.1. How do I go about this?
Answer: Please go here for information on how to get involved in the public preview of FlexCache Write
Performance (writeback).
I need the FlexCache volume to always maintain a size relative to the origin. Can I do that?
Answer: ONTAP 9.13.1 introduces ‘Follow the Origin’ to FlexCache. To enable this feature, use the
following command in advanced privilege mode: flexcache config modify -volume flexcache
-vserver <svm> -is-relative-size-enabled true -relative-size-percentage
<1..100>
Why does a READ operation at the cache fail if the origin is full?
Answer: A read at the cache requires an entry be written to the remote entry metafile (REM) file at the
origin. If the origin is full, the REM entry can’t be created, and ONTAP has to fail the operation. Starting in
ONTAP 9.13.1, READ operations can be serviced directly by the origin, eliminating the need to log an
entry in the REM file. This results in NFSv3 successfully reading a file when the origin is full, and NFSv4.x
and SMB possibly being able to read a file when the origin is full.
8 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
• TR-4571: NetApp FlexGroup Volume Best Practices and Implementation Guide
http://www.netapp.com/us/media/tr-4571.pdf
• TR-4557: NetApp FlexGroup Volumes A Technical Overview
http://www.netapp.com/us/media/tr-4557.pdf
Version history
Version Date Document version history
Version 1.0 November 2018 Initial release for ONTAP 9.5
Version 1.1 April 2019 Updates for ONTAP 9.6
Version 1.2 August 2019 FlexCache Licensing updates
Version 1.3 December 2019 Updates for ONTAP 9.7 – Chris Hurley
Version 2.0 June 2022 Updates for ONTAP 9.8, 9.9.1, 9.10.1, and 9.11.1 – Elliott Ecton
Version 2.1 April 2023 Updates for 9.12.1
Version 2.2 May 2023 Updates for 9.13.1
9 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL
Refer to the Interoperability Matrix Tool (IMT) on the NetApp Support site to validate that the exact
product and feature versions described in this document are supported for your specific environment. The
NetApp IMT defines the product components and versions that can be used to construct configurations
that are supported by NetApp. Specific results depend on each customer’s installation in accordance with
published specifications.
Copyright information
Copyright © 2023 NetApp, Inc. All rights reserved. Printed in the U.S. No part of this document covered
by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior
written permission of the copyright owner.
Software derived from copyrighted NetApp material is subject to the following license and disclaimer:
THIS SOFTWARE IS PROVIDED BY NETAPP “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WHICH ARE HEREBY
DISCLAIMED. IN NO EVENT SHALL NETAPP BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
NetApp reserves the right to change any products described herein at any time, and without notice.
NetApp assumes no responsibility or liability arising from the use of products described herein, except as
expressly agreed to in writing by NetApp. The use or purchase of this product does not convey a license
under any patent rights, trademark rights, or any other intellectual property rights of NetApp.
The product described in this manual may be protected by one or more U.S. patents, foreign patents, or
pending applications.
LIMITED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions
as set forth in subparagraph (b)(3) of the Rights in Technical Data—Noncommercial Items at DFARS
252.227-7013 (FEB 2014) and FAR 52.227-19 (DEC 2007).
Data contained herein pertains to a commercial product and/or commercial service (as defined in FAR
2.101) and is proprietary to NetApp, Inc. All NetApp technical data and computer software provided under
this Agreement is commercial in nature and developed solely at private expense. The U.S. Government
has a non-exclusive, non-transferrable, non-sublicensable, worldwide, limited irrevocable license to use
the Data only in connection with and in support of the U.S. Government contract under which the Data
was delivered. Except as provided herein, the Data may not be used, disclosed, reproduced, modified,
performed, or displayed without the prior written approval of NetApp, Inc. United States Government
license rights for the Department of Defense are limited to those rights identified in DFARS clause
252.227-7015(b) (FEB 2014).
Trademark information
NETAPP, the NETAPP logo, and the marks listed at http://www.netapp.com/TM are trademarks of
NetApp, Inc. Other company and product names may be trademarks of their respective owners.
10 FlexCache in ONTAP © 2023 NetApp, Inc. All rights reserved. NETAPP CONFIDENTIAL