Solved

corrupted directory

Posted on 2003-12-02
3
315 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
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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now