Done this many times from the systemshell. Also useful for searching for moved files or files in snapshots;
set d
y
systemshell -node <nodename>
password = admin password
sudo find /clus/<vserver>/<volume>/ -name "*filename*"
you can’t cd into folders in the traditional way, but you can ls;
sudo ls -lhRrt /clus/<vserver>/<volume>/ .snapshot/hourly.2020-09-25_1305/<foldername>/
and then rm;
sudo rm -r /clus/<vserver>/<volume>/foldername
Kind Regards,
Chris
From: Toasters <toasters-bounces@teaparty.net>
On Behalf Of Scott Classen
Sent: 26 March 2021 18:55
To: Toasters <toasters@teaparty.net>
Subject: Removing files directly on filer?
[EXTERNAL]
Hello Fellow Toasters,
I have several files that have an unusual characters in their names. Here are 3 examples.
99027496 -rwxr--r--. 1 fereyes sibyls 138284 Dec 17 2012
_Volumes_fereyes_Pm12_img12_data1_pxuser_cech3_px07-0106_Pm12_7_process_mr_AutoMR_run_9__combined_refine_001.pdb_Mon_Dec_17_15"17"10_2012_modification_0.pdb.gz
99027497 -rwxr--r--. 1 fereyes sibyls 137894 Dec 17 2012
_Volumes_fereyes_Pm12_img12_data1_pxuser_cech3_px07-0106_Pm12_7_process_mr_AutoMR_run_9__combined_refine_001.pdb_Mon_Dec_17_15"17"10_2012_modification_1.pdb.gz
99027498 -rwxr--r--. 1 fereyes sibyls 137467 Dec 17 2012
_Volumes_fereyes_Pm12_img12_data1_pxuser_cech3_px07-0106_Pm12_7_process_mr_AutoMR_run_9__combined_refine_001.pdb_Mon_Dec_17_15"17"10_2012_modification_2.pdb.gz
I would like to delete them. I have tried all the tricks I know of to delete them from the NFS client side including the usually-bullet-proof method of deleting them by inode:
ls -li
To get the inode then:
find . -inum 99027498 -exec rm -i {} \;
and this is not working.
Is there some way to remove folders/files from the NetApp itself?
Thanks,
Scott