Solved

corrupted directory

Posted on 2003-12-02
3
331 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

738 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