Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

tip for delete cifs share

If you want to delete the CIFS share from GUI this will remove the folder too. So anything have inside the folder will be gone.

So,

Unless petasan give as an option to chose remove or not remove the share folder,  you can rename the share folder before remove the share.

Additional after rename you can create another empty folder with same name to share just for the next remove process.

For example :

Share name cifs_share --> share folder cifs_share

before remove the share :

mv /mnt/cephfs/cifs/share_folder share_folder_keep

mkdir /mnt/cephfs/cifs/share_folder

remove share from GUI (but this keeps data to "share_folder_keep" folder)

tnks

 

If i understand well, after you create a share and have clients write to it, you want to delete the share so not allowing any access yet keep the data folder.

correct ?

Yes, this is correct.

For example if I want to rename that share or to remove it permanent, but still wants to keep the data inside this share.

Best regards !