Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot ingestion procedure for CSI Unity Driver #1043

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions content/docs/csidriver/features/unity.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,63 @@ spec:

>The Kubernetes Volume Expansion feature can only be used to increase the size of a volume. It cannot be used to shrink a volume.


## Snapshot ingestion procedure

1. Create a snapshot for existing volume using Unisphere

2. Create a VolumeSnapshotContent explained below

```yaml
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotContent
metadata:
name: snap1-content
spec:
deletionPolicy: Delete
driver: csi-unity.dellemc.com
volumeSnapshotClassName: unity-snapclass
source:
snapshotHandle: snap1-<protocol>-<array_id>-<snapshot_id>
volumeSnapshotRef:
name: snap1
namespace: unity
```
>Exampple snapshot handle format: snap1-FC-apm00123456789-3865491234567 .

3. Create a VolumeSnapshot explained below

```yaml
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: snap1
namespace: unity
spec:
volumeSnapshotClassName: unity-snapclass
source:
volumeSnapshotContentName: snap1-content
```

4. Create a PersistentVolumeClaim explained below
```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: restore-pvc-from-snap
spec:
storageClassName: unity-nfs
dataSource:
name: snap1
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
```

## Raw block support

The CSI Unity XT driver supports Raw Block Volumes.
Expand Down
Loading