No Such File

Management of storage subsystems: SAN, volume shadowing, logical disks, file systems, and more
Post Reply

Topic author
Posts: 21
Joined: Fri Jun 28, 2019 10:29 am
Reputation: 0
Location: Gary, Indiana
Status: Offline

No Such File

Post by vmskostoff » Wed Dec 11, 2019 1:27 pm

What is the best method or methods, to remove files that come up on a dir as "no such file"?

VSI Expert
Posts: 3
Joined: Thu Aug 29, 2019 1:44 pm
Reputation: 0
Status: Offline

Re: No Such File

Post by puder » Wed Dec 11, 2019 3:41 pm

You could simply DELETE them, but if that somehow fails, try SET FILE/REMOVE.

The only way I've seen directory entries which show "no such file" is when a file has been linked in multiple directories with SET FILE/ENTER and then one of them is DELETEd which leaves the other one dangling.

Summary advice to avoid the problem (if this was the cause): Don't use SET FILE/ENTER unless you (and everyone else with control over those files) will remember the multiply-linked nature of the file(s) and not DELETE one reference when you still have the other. Note that the admonishment against DELETE includes PURGE.

Post Reply