Mailing List Archive

Removing files directly on filer?
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
RE: Removing files directly on filer? [ In reply to ]
[AMD Official Use Only - Internal Distribution Only]

The easiest way I've found to do this from Windows via a CIFS share.

--rdp

From: Toasters <toasters-bounces@teaparty.net> On Behalf Of Scott Classen
Sent: Friday, March 26, 2021 2:55 PM
To: Toasters <toasters@teaparty.net>
Subject: Removing files directly on filer?

[CAUTION: External Email]
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
Re: [EXTERNAL] Removing files directly on filer? [ In reply to ]
use "rm -i <prefix>*" and answer "y" to the ones you want to delete.

-skottie


On Fri, Mar 26, 2021 at 11:57 AM Scott Classen <sclassen@lbl.gov> wrote:

> 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
>
>
> _______________________________________________
> Toasters mailing list
> Toasters@teaparty.net
> https://www.teaparty.net/mailman/listinfo/toasters
RE: Removing files directly on filer? [ In reply to ]
If you are on ONTAP 9.8, we have async delete.

TR-4571 – page 108

https://www.netapp.com/us/media/tr-4571.pdf

That allows you to delete directories (not files) from the ONTAP CLI.

Otherwise, no real way to do this.

For unusual characters, the vol language might be an issue; as of 9.5 and later, we added support for utf9mb4 characters, which can help translate those weird characters. Page 120 of that TR also covers it.

I would reproduce your issue, but I can’t seem to replicate the special characters in your list.

From: Toasters <toasters-bounces@teaparty.net> On Behalf Of Scott Classen
Sent: Friday, March 26, 2021 2:55 PM
To: Toasters <toasters@teaparty.net>
Subject: Removing files directly on filer?

NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.


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
RE: Removing files directly on filer? [ In reply to ]
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



This email is being sent by a subsidiary of Arthur J. Gallagher Holdings (UK) Limited, part of the Arthur J. Gallagher & Co. global group of companies. For details of the registered office, company number and, where applicable, regulated status of our subsidiaries, please visit https://www.ajginternational.com/legal-regulatory-information/.

We are the data controller of any personal information you provide to us or personal information that has been provided to us by a third party. We collect and process information about you in order to arrange insurance policies and to process claims. Your information is also used for business purposes such as fraud prevention and detection and financial management. This may involve sharing your information with third parties such as insurers, reinsurers, other brokers, claims handlers, loss adjusters, credit reference agencies, service providers, professional advisors, our regulators, police and government agencies or fraud prevention agencies.

We may record telephone calls to help us monitor and improve the service we provide. For further information on how your information is used and your rights in relation to your information please see our privacy notice at https://www.ajginternational.com/Privacy-Policy/. If you are providing personal data of another individual to us, you must tell them you are providing their information to us and show them a copy of this notice.

Where you are obtaining a non-consumer policy of (re)insurance, or cover for additional risks or renewal under an existing policy, you are required to make a fair presentation of the risk to a (re)insurer which discloses every material circumstance which you know or ought to know relating to the risk to be insured. A circumstance is material if it would influence the judgment of a prudent insurer in determining whether to provide insurance for the risk and, if so, on what terms. Disclosure must be reasonably clear and accessible to a prudent insurer and made in good faith. The aforementioned duty of disclosure is the applicable duty under the laws of England and Wales. If your policy is not subject to English law you are expected to disclose risk information in accordance with the requirements of the applicable law. In such circumstances we expect you will disclose risk information at least equal to the standard required under English law and where the applicable law requires you to disclose information over and above the level required under English law you will provide such information in accordance with that law.

Where you are obtaining a consumer policy of insurance, you must read each question and answer honestly and fully and must take reasonable care to not make a misrepresentation.

Failure to comply with the above disclosure requirements, as they apply to you, could mean that your policy of (re)insurance is void, its terms are materially altered or that (re)insurers are not liable to pay all or part of your claim(s). If you are in any doubt as to your obligations you should ask your usual contact.

This e-mail and any attachments are CONFIDENTIAL and may contain legally privileged information. If you are not the intended recipient of this e-mail message, please telephone or e-mail us immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. Although the above company has taken reasonable precautions to ensure this e-mail and any attachments are free of any virus or other defect that may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and the above company does not accept any responsibility for any loss or damage arising in any way from its use.
Re: Removing files directly on filer? [ In reply to ]
Hi Justin and all the other fellow toasters that offered suggestions,

Well I finally got around to upgrading our cluster to 9.8P3 and trying async-delete. It worked… poof… gone… the offending files are never to be seen again.

I did have a bit of confusion abut how to define the -path option. The volume name was “home” and the offending files were contained in "/home/fereyes/Pm12” as seen from the NAS client. The full command that worked was:

async-delete start -vserver our-svm-hs1 -volume home -path fereyes/Pm12

Thanks,
Scott

> On Mar 26, 2021, at 12:11 PM, Parisi, Justin <Justin.Parisi@netapp.com> wrote:
>
> If you are on ONTAP 9.8, we have async delete.
>
> TR-4571 – page 108
>
> https://www.netapp.com/us/media/tr-4571.pdf <https://www.netapp.com/us/media/tr-4571.pdf>
>
> That allows you to delete directories (not files) from the ONTAP CLI.
>
> Otherwise, no real way to do this.
>
> For unusual characters, the vol language might be an issue; as of 9.5 and later, we added support for utf9mb4 characters, which can help translate those weird characters. Page 120 of that TR also covers it.
>
> I would reproduce your issue, but I can’t seem to replicate the special characters in your list.
>
> From: Toasters <toasters-bounces@teaparty.net <mailto:toasters-bounces@teaparty.net>> On Behalf Of Scott Classen
> Sent: Friday, March 26, 2021 2:55 PM
> To: Toasters <toasters@teaparty.net <mailto:toasters@teaparty.net>>
> Subject: Removing files directly on filer?
>
> NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
>
>
> 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