ONTAP Discussions

snapshot cannot be deleted on Linux client on CDOT

netappmagic

-> pwd
/some/directory/.snapshot/hourly.2015-04-06_1205
-> rm file1
rm: remove write-protected regular file `file1'? y
rm: cannot remove `file1': Read-only file system

 

I can delete them from NetApp storage. 

 

Is there any way I can allow the user to delete their snapshots?

 

Thanks,

1 ACCEPTED SOLUTION

aborzenkov

No. Snapshots are read-only to clients.

View solution in original post

5 REPLIES 5

Gregorian

You know that the content of the snapshots are readonly right?

 

Do you really wan't the users to be able to delete the snapshots for the volume?

 

aborzenkov

 I can delete them from NetApp storage. 

No, you can not. You can drop the whole snapshot, but there is no way to delete individual file from snapshot.

netappmagic

Thanks a lot for your prompt response.

 

 

Understand that I cannot remove files under .snapshot on the client. 

So, can I then remove the entire snapshot "hourly.2015-04-06_1205" on the client?

Gregorian

Remove the snapshot from the client.. Well.. Both no and yes.

 

No.. not nativly

 

Yes. Note! that the snapshot is for the entire volume on the Filer and not on the export.

SSH --> Filer and delete the snapshot on the volume.

Perl API --> Filer

aborzenkov

No. Snapshots are read-only to clients.

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public