trident icon indicating copy to clipboard operation
trident copied to clipboard

how to specify clone method in storage class or storageprofile when using trident as CSI?

Open eselvam opened this issue 1 year ago • 2 comments

Describe the solution you'd like How to specify clone method in storage class or storage profile when using trident csi in Openshift 4.14?

Describe alternatives you've considered Nothing alternative available but we can use virtual to upload the image to Datavolume however it is taking too much of time as we don't have the clone capability defined in storage class nor storage profile.

Additional context NA

eselvam avatar Jun 29 '24 11:06 eselvam

A bit more context might be helpful. I assume this question relates to OpenShift Virtualization? And more specifically to the Containerized Data Import (CDI)?

With Trident, you can set the cloneStrategy to either snapshot or csi-clone. I personally prefer the snapshot approach, using the snapshot as an immutable golden image from which you clone (and easily keeping multiple versions of that golden image in different snapshots).

Trident should be among the "well known storage providers" and automatically detected correctly. But you can always define your own StorageProfile as well (https://docs.openshift.com/container-platform/4.14/virt/storage/virt-configuring-storage-profile.html).

Not sure if that answers your question, if not please provide some additional context :-)

wonderland avatar Jul 01 '24 07:07 wonderland

Thanks. It helps a lot. I am just looking for the cloneStrategy under stroageclass and storage profile.

Kindly close it. Thanks.

eselvam avatar Jul 01 '24 09:07 eselvam