File system is bad


 
Thread Tools Search this Thread
Operating Systems Solaris File system is bad
# 1  
Old 10-30-2007
File system is bad

Hi all, we have a 280R with Solaris 10 11/06 and Oracle 10 installed.
For unknown reason the system become instable and after a reboot (init 6)
we got the message to run fsck manually. We did the check many time and now we have this result:

# fsck
/dev/md/dsk/d0 IS CURRENTLY MOUNTED READ/WRITE.
CONTINUE? y

** /dev/md/dsk/d0
** Currently Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILESYSTEM MAY STILL BE INCONSISTENT.
187189 files, 5282453 used, 7310544 free (272312 frags, 879779 blocks, 2.2% fragmentation)
***** FILE SYSTEM IS BAD *****

***** PLEASE RERUN FSCK *****
/dev/md/dsk/d5 IS CURRENTLY MOUNTED READ/WRITE.
CONTINUE? y

** /dev/md/dsk/d5
** Currently Mounted on /oracle
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILESYSTEM MAY STILL BE INCONSISTENT.
17664 files, 1923832 used, 8150704 free (47200 frags, 1012938 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS BAD *****

***** PLEASE RERUN FSCK *****
/dev/dsk/c1t1d0s6 IS CURRENTLY MOUNTED READ/WRITE.
CONTINUE? y

** /dev/dsk/c1t1d0s6
** Currently Mounted on /mint
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILESYSTEM MAY STILL BE INCONSISTENT.
2 files, 9 used, 10074527 free (15 frags, 1259314 blocks, 0.0% fragmentation)
***** FILE SYSTEM IS BAD *****

The system apparently looks good, but obviously something is still wrong.
Any suggestion?
Thanks in advance
Petrucci
# 2  
Old 10-31-2007
Hi,
are there any messages inside /var/adm/messages ?

And if you test the / file system please boot from CD or Network.
Then use the
fsck -Y -o f
This checks the fs regardless the super block clean flag.
Best regards
jeorg
# 3  
Old 10-31-2007
Hi
thanks for the reply.
Nothing special on messages, but after a reboot (no activity on this machine until the reboot) and fsck we got this message:

UNREF FILE I=17916 OWNER=oracle MODE=100600
SIZE=2 MTIME=Oct 29 10:48 2007
RECONNECT? yes

UNREF FILE I=35452 OWNER=oracle MODE=100640
SIZE=112 MTIME=Oct 29 11:17 2007
RECONNECT? yes

** Phase 5 - Check Cylinder Groups

CORRECT BAD CG SUMMARIES? yes

CORRECTED SUMMARY FOR CG 3
FILE BITMAP WRONG
FIX? yes

FRAG BITMAP WRONG (CORRECTED)
CORRECTED SUMMARY FOR CG 6
FILE BITMAP WRONG (CORRECTED)
FRAG BITMAP WRONG (CORRECTED)
FILESYSTEM MAY STILL BE INCONSISTENT.
17664 files, 1923832 used, 8150704 free (47200 frags, 1012938 blocks, 0.5% fragmentation)

***** FILE SYSTEM WAS MODIFIED *****
***** FILE SYSTEM IS BAD *****

***** PLEASE RERUN FSCK *****

I think the problem could be one hard disk.
# 4  
Old 11-02-2007
Power

Hi,
You know that you have to run fsck so long till there is no error message.

Sorry but there are several peope they do this mistake.

And you are right, it can be a physical error!

Otherwise you do the fsck on a meta device so it can be a problem of disksuite.
In this situation i normally break the mirror (If it is a mirror) and do the fsck on every effected disk of d0. After the file system check I suggest to repair the mirror and boot again.


Best regrads
joerg
# 5  
Old 03-27-2008
Hi,

We have installed 6 servers with Solaris 10 release 11/06 and after metattach completed mirror disks we got the exact same error descried in this topic on the 6 servers, we ran FSCK as suggested several times on the servers and always reports FILE SYSTEM IS BAD.

Do you know any news or solutions for this problem? I thinks is not a problem on the hardware, but perhaps Solaris patches missing or additional procedure steps needed for this version.

Regards
/Juan
# 6  
Old 03-27-2008
how you do and the way you do your metattach command can affect your data.

c0t1d0s3 d13 ---> data disk
c0t2d0s3 d23 ---> empty disk

metainit d30 -m d23
metattach d30 d13

If you try to sync an empty disk to a one that contains data you will end up with a empty mirrored filesystem, not sure whether it will cause your problem but you say all 6 servers having the same problem? maybe you like to recap and review what you did.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

File System Error: BAD SUPERBLOCK AT BLOCK 16: NUMBER OF DIRECTORIES OUT OF RANGE

Hi All, we are having a file system error in one of our servers. The server failed to boot in usual user mode. Instead boot with single user mode and requesting to run a FSCK manually to repair the corrupted. see the below output. Netra T2000, No Keyboard Copyright 2008 Sun Microsystems,... (5 Replies)
Discussion started by: Buddhike G
5 Replies

2. Solaris

Bad system call (core dumped) Solaris 11.2 (installation of Sybase 12.5.4)

Dear all, I am trying to install Sybase ASE 12.5.4 on a Sun OS Solaris 11.2 (sparcv9) machine but I am getting the following messages when launching the setup file : -bash-4.1$ ./setup InstallShield Wizard Initializing InstallShield Wizard... Searching for Java(tm) Virtual Machine...... (2 Replies)
Discussion started by: clement_te
2 Replies

3. Shell Programming and Scripting

Remove bad records from file and move them into a file then send those via email

Hi my requirement is that i want pull the bad records from input file and move those records in to a seperate file. that file has to be sent via email.. any suggentions please (1 Reply)
Discussion started by: sxk4999
1 Replies

4. Shell Programming and Scripting

Store and isolate bad pages from a file to new file

I have a file like below . The good pages must have 3 conditions : The pages that containing page total only must have 50 lines. The pages that containing customer total only must have 53 lines. The last page of Customer Total should be the last page. How can I accomplish separating good... (1 Reply)
Discussion started by: ehabaziz2001
1 Replies

5. Shell Programming and Scripting

Why I get bad bad substitution when using eval?

Why I get bad replace when using eval? $ map0=( "0" "0000" "0") $ i=0 $ eval echo \${map$i} 0000 $ a=`eval echo \${map$i}` !!!error happens!!! bash: ${map$i}: bad substitution How to resolve it ? Thanks! (5 Replies)
Discussion started by: 915086731
5 Replies

6. Emergency UNIX and Linux Support

Bad Address when adding system call

Hi guys. I have downloaded kernel 2.6.38-5 to add a system call. I did the following steps: 1. I have added my system call to system call table <src folder>/arc/x86/kernel/syscall_table_32.S .long sys_mycall 2. i have added the system cal number in <src... (5 Replies)
Discussion started by: majid.merkava
5 Replies

7. Shell Programming and Scripting

Searching for Log / Bad file and Reading and writing to a flat file

Need to develop a unix shell script for the below requirement and I need your assistance: 1) search for file.log and file.bad file in a directory and read them 2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file 4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies

8. Shell Programming and Scripting

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (2 Replies)
Discussion started by: shilendrajadon
2 Replies

9. UNIX for Advanced & Expert Users

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (1 Reply)
Discussion started by: shilendrajadon
1 Replies

10. UNIX for Dummies Questions & Answers

Bad PBR Sig Operating System Not Found...why ?

Well i install successfully Solaris on my Second Hard disk, although i had to make it primary Master and my orignal hard disk as pirmary slave, because solaris will not let Windows on primary master. Anyway after installation when i try to boot from hard disk , it shows message bad PBR Sig ... (3 Replies)
Discussion started by: abidmalik
3 Replies
Login or Register to Ask a Question