[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

corrupted directory

Hi all:

I have a box running solaris 9 and there are some problems in the /usr partition.
I can see in /var/adm/messages "notices" about problems in inodes. I have run fsck and one of the messages is about an internal subdirectory in /usr (/usr/local/nagios/libexec/tmp) which is corrupted. I've tried to delete it but it's not possible. Besides, in that directory, you can see if you enter ls "I/O error" warnings.

So, how can I delete that corrupted directory? I dont mind losing that data.

Regards
Mcmiles
0
mcmiles
Asked:
mcmiles
2 Solutions
 
shivsaCommented:
This is safe procedure to correct data.

go to run level 1. by typing init 1 as a root.

when it goes to level 1, login as a root.
mount  /usr as a read only partition.

like
mount -oremount,ro /dev/rdsk/cxtxdxsx /usr

fsck -y /usr

if u see any error at this time please post that error.
once fsck completes its job, it is upto if u want to delete that dir or not.
0
 
liddlerCommented:
I've seen this when I've resized a partition and not newfs'd it - have you done this?
I suggest you delete the directory - as the problem won't go away.
After you've done the fsck, you might want to use format to Analyze the disk to make sure there are no physical errors on the disk
0
 
mcmilesAuthor Commented:
Hi:

We have solstice disk suite, and the problem was in relation to a newfs made in one of the submirrors. We have made a new metadevice and restore the data.

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now