Work With Snapshots

2y ago
28 Views
2 Downloads
215.04 KB
8 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Oscar Steel
Transcription

Work with snapshotsAstra TridentamithaSeptember 19, 2021This PDF was generated from vol-snapshots.html onOctober 01, 2021. Always check docs.netapp.com for the latest.

Table of ContentsWork with snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Step 1: Set up a VolumeSnapshotClass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Create a snapshot of an existing PVC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Create PVCs from VolumeSnapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Find more information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Work with snapshotsBeginning with the 20.01 release of Astra Trident, you can create snapshots of PVs at the Kubernetes layer.You can use these snapshots to maintain point-in-time copies of volumes that have been created by AstraTrident and schedule the creation of additional volumes (clones). Volume snapshot is supported by theontap-nas, ontap-san, ontap-san-economy, solidfire-san, aws-cvs, gcp-cvs, and azurenetapp-files drivers.This feature is available from Kubernetes 1.17 (beta) and is GA from 1.20. To understand thechanges involved in moving from beta to GA, see the release blog. With the graduation to GA,the v1 API version is introduced and is backward compatible with v1beta1 snapshots.What you’ll need Creating volume snapshots requires an external snapshot controller to be created, as well as someCustom Resource Definitions (CRDs). This is the responsibility of the Kubernetes orchestrator that is beingused (for example: Kubeadm, GKE, OpenShift). Check with your Kubernetes orchestrator to confirm theserequirements are met.You can create an external snapshot-controller and snapshot CRDs as follows: . Create volume snapshot CRDs: cat snapshot-setup.sh#!/bin/bash# Create volume snapshot CRDskubectl apply -f apshot.storage.k8s.io volumesnapshotclasses.yamlkubectl apply -f apshot.storage.k8s.io volumesnapshotcontents.yamlkubectl apply -f apshot.storage.k8s.io volumesnapshots.yaml1. Create the snapshot-controller in the desired namespace. Edit the YAML manifests below to modifynamespace.1

kubectl apply -f ectl apply -f I Snapshotter provides a validating webhook to help users validate existing v1beta1snapshots and confirm they are valid resource objects. The validating webhook automaticallylabels invalid snapshot objects and prevents the creation of future invalid objects. The validatingwebhook is deployed by the Kubernetes orchestrator. See the instructions to deploy thevalidating webhook manually here. Find examples of invalid snapshot manifests here.The example detailed below explains the constructs required for working with snapshots and shows howsnapshots can be created and used.Step 1: Set up a VolumeSnapshotClassBefore creating a volume snapshot, set up a VolumeSnapshotClass. cat snap-sc.yaml#Use apiVersion v1 for Kubernetes 1.20 and above. For Kubernetes 1.17 1.19, use apiVersion v1beta1.apiVersion: snapshot.storage.k8s.io/v1kind: VolumeSnapshotClassmetadata:name: csi-snapclassdriver: csi.trident.netapp.iodeletionPolicy: DeleteThe driver points to Astra Trident’s CSI driver. deletionPolicy can be Delete or Retain. When set toRetain, the underlying physical snapshot on the storage cluster is retained even when the VolumeSnapshotobject is deleted.Create a snapshot of an existing PVC2

cat snap.yaml#Use apiVersion v1 for Kubernetes 1.20 and above. For Kubernetes 1.17 1.19, use apiVersion v1beta1.apiVersion: snapshot.storage.k8s.io/v1kind: VolumeSnapshotmetadata:name: pvc1-snapspec:volumeSnapshotClassName: csi-snapclasssource:persistentVolumeClaimName: pvc1The snapshot is being created for a PVC named pvc1, and the name of the snapshot is set to pvc1-snap. kubectl create -f c1-snap created kubectl get volumesnapshotsNAMEAGEpvc1-snap50sThis created a VolumeSnapshot object. A VolumeSnapshot is analogous to a PVC and is associated with aVolumeSnapshotContent object that represents the actual snapshot.It is possible to identify the VolumeSnapshotContent object for the pvc1-snap VolumeSnapshot bydescribing it.3

kubectl describe volumesnapshots shot Class Name:pvc1-snapSnapshot Content Name: urce:API eation Time: 2019-06-26T15:27:29ZReady To Use:trueRestore Size:3Gi.The Snapshot Content Name identifies the VolumeSnapshotContent object which serves this snapshot.The Ready To Use parameter indicates that the Snapshot can be used to create a new PVC.Create PVCs from VolumeSnapshotsSee the following example for creating a PVC using a snapshot: cat pvc-from-snap.yamlapiVersion: v1kind: PersistentVolumeClaimmetadata:name: pvc-from-snapspec:accessModes:- ReadWriteOncestorageClassName: goldenresources:requests:storage: 3GidataSource:name: pvc1-snapkind: VolumeSnapshotapiGroup: snapshot.storage.k8s.io4

dataSource shows that the PVC must be created using a VolumeSnapshot named pvc1-snap as thesource of the data. This instructs Astra Trident to create a PVC from the snapshot. After the PVC is created, itcan be attached to a pod and used just like any other PVC.When deleting a Persistent Volume with associated snapshots, the corresponding Tridentvolume is updated to a “Deleting state”. For the Astra Trident volume to be deleted, thesnapshots of the volume should be removed.Find more information Volume snapshots VolumeSnapshotClass5

Copyright InformationCopyright 2021 NetApp, Inc. All rights reserved. Printed in the U.S. No part of this documentcovered by copyright may be reproduced in any form or by any means-graphic, electronic, ormechanical, including photocopying, recording, taping, or storage in an electronic retrieval systemwithout 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 IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OFMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WHICH ARE HEREBYDISCLAIMED. IN NO EVENT SHALL NETAPP BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, ORPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OROTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFTHE 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 notconvey a license under any patent rights, trademark rights, or any other intellectual propertyrights of NetApp.The product described in this manual may be protected by one or more U.S. patents,foreign patents, or pending applications.RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject torestrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data andComputer Software clause at DFARS 252.277-7103 (October 1988) and FAR 52-227-19 (June 1987).Trademark InformationNETAPP, the NETAPP logo, and the marks listed at http://www.netapp.com/TM are trademarks ofNetApp, Inc. Other company and product names may be trademarks of their respective owners.6

Beginning with the 20.01 release of Astra Trident, you can create snapshots of PVs at the Kubernetes layer. You can use these snapshots to maintain point-in-time copies of volumes that have been created by Astra Trident and schedule the creation of additio

Related Documents:

snapshots and Hitachi Shadow Image clones, linked to remote synchronous and asynchronous replication. The Challenge: Realize the Potential of Storage-System-Based Snapshots Enterprises today increasingly turn to storage-system-based snapshots. They use the snapshots

NetApp Snapshots does not have any write impacts Same feature and same # of SnapShots across the entire FAS Series NetApp SnapShot is free of charge, base feature NetApp SnapShots can be used as part of DP, DR, Backup, HA, Test And Dev solutions simultaneously. 3rd Party vendors use NetApp SnapShots as fundament.

people. Television scenes, photographs of public spaces, magazine pages, and social media conversations are all examples of cultural snapshots. Representative sets of cultural snapshots can be coded to index the systematic patterns of information encountered by a collective (i.e., cultural patterns). These same materials can be used

Each kit contains CD and DVD test media, loopback adapters for serial, parallel, audio, and RJ45 ports, and a professional carrying case. In addition, the Service Center Premier Kit includes a power supply tester and PCI and miniPCI POST cards with remote display. System Snapshots Snapshots provide a one-click solution to save a detailed

ESX / vSphere snapshots are saved in the immediate vicinity of the original virtual data media. VMware snapshots are always thin- provisioned and thus have a detrimental effect on the performance of production environments. Snapshot, Backup or Replication While it is theoretically possible to create a chain of up to 32 snapshots,

Nimble Storage snapshots are based on highly efficient redirect-on-write technology and take advantage of universal compression, ensuring that snapshots consume minimal stor age space. The ability to take and store months of frequent application consistent snapshots drastically reduces the overhead incurred

SRDF/Metro Smart DR investment. SnapVX provides space-efficient local snapshots that can be used for localized protection and recovery and other use cases including development/test, analytics, backups, and patching. SnapVX secure snapshots prevent accidental or malicious deletion, securing them for a specified retention period.

Artificial Intelligence of December 2018 [5] and in the EU communication on Artificial Intelligence for Europe [6], including billions of Euros allocated in the Digital Europe Programme _ [7]. This is due to potential economic gains (e.g. see OECD reports on AI investments [8] and on AI patents [9]), as well as economic risks (such as the issue of liability – Liability for Artificial .