Directory that fails Integrity Check

shortbus

Dabbler
Joined
Jan 4, 2016
Messages
15
Code:
# rm -rf e
rm: e: Integrity check failed


Code:
# find . -type d
.
find: ./e: Integrity check failed


I am doing a scrub now, but I don't need the directory and I can't remove it. If I remove the delete the jail will it remove this directory?
Is there another way to remove this directory?
I have done a search but the terms "Integrity Check" returns items for a pool, I want to remove this directory.

The directory in question is in a cache directory and the data will be rebuilt.

The directory is in a jail that stores information in a separate dataset. If I remove the dataset will the action of remove ignore 'integrity checks' and effectively delete the directory and I can start the cache fresh?

Thanks in advance.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
What's the full path for your directory e? By any chance is it a dataset? rm -rf won't work to delete a dataset; you'll need to zfs destroy e if it's a dataset.
 

shortbus

Dabbler
Joined
Jan 4, 2016
Messages
15
The full path is like /mnt/Main/jail_data/jail_name/appname/cache/sessions/3/1/e

Main is the pool
jail_data is a dataset
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Is the jail running when you try the deletion?
 

shortbus

Dabbler
Joined
Jan 4, 2016
Messages
15
I have been moving data off that dataset and into a new/replacement one, then I am going to try to delete that dataset. I plan to report back.
 

shortbus

Dabbler
Joined
Jan 4, 2016
Messages
15
I moved off the data to a new dataset and destroyed the old. No errors and everything seems to be running smoothly.
 
Top