tip for delete cifs share
chrisiq
4 Posts
June 29, 2020, 7:40 pmQuote from chrisiq on June 29, 2020, 7:40 pmIf 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 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
admin
2,930 Posts
June 29, 2020, 10:44 pmQuote from admin on June 29, 2020, 10:44 pmIf 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 ?
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 ?
chrisiq
4 Posts
June 30, 2020, 5:56 amQuote from chrisiq on June 30, 2020, 5:56 amYes, 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 !
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 !
tip for delete cifs share
chrisiq
4 Posts
Quote from chrisiq on June 29, 2020, 7:40 pmIf 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 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
admin
2,930 Posts
Quote from admin on June 29, 2020, 10:44 pmIf 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 ?
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 ?
chrisiq
4 Posts
Quote from chrisiq on June 30, 2020, 5:56 amYes, 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 !
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 !