Solved

corrupted directory

Posted on 2003-12-02
3
337 Views
Last Modified: 2013-12-27
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
Comment
Question by:mcmiles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 24

Assisted Solution

by:shivsa
shivsa earned 60 total points
ID: 9864203
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
 
LVL 18

Accepted Solution

by:
liddler earned 65 total points
ID: 9865256
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
 

Author Comment

by:mcmiles
ID: 9882240
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question