AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Can't mount showing 0506-342 The superblock on /dev/fslv00 is dirty

  • 1.  Can't mount showing 0506-342 The superblock on /dev/fslv00 is dirty

    Posted Sat February 16, 2008 09:00 AM

    Originally posted by: SystemAdmin


    Dear All

    Last day in Aix 5.2 server by executing
    1. df –g

    I found following:

    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    .
    .
    /dev/fslv00 58.00 136.70 -135% 212103 1% /sprod

    After shutting down by following command

    1. shutdown –h

    And when the Aix start there is no /sprod

    1. df –g

    result not showing /sprod

    I tried to mount it by

    1. mount /sprod

    and found

    Replaying log for /dev/fslv00.
    Failure replaying log: -1
    mount: 0506-324 Cannot mount /dev/fslv00 on /sprod: The media is not formatted or the format is not correct.
    0506-342 The superblock on /dev/fslv00 is dirty. Run a full fsck to fix.

    Then tried

    1. fsck

    Results like following …

    The current volume is: /dev/hd1
    File system is currently mounted.
    fsck: Performing read-only processing does not produce dependable results.
    **Phase 1 - Check Blocks, Files/Directories, and Directory Entries
    **Phase 2 - Count links
    **Phase 3 - Duplicate Block Rescan and Directory Connectedness
    **Phase 4 - Report Problems
    **Phase 7 - Verify File/Directory Allocation Maps
    File system inode map is corrupt (NOT FIXED)
    **Phase 8 - Verify Disk Allocation Maps
    2555904 kilobytes total disk space.
    1774 kilobytes in 533 directories.
    2484237 kilobytes in 21467 user files.
    68288 kilobytes are available for use.
    fsck: Performing read-only processing does not produce dependable results.

    And also tried with #fsck –p /sprod and fsck -p /dev/fslv00 and also # fsck -y /sprod and fsck -y /dev/fslv00
    but still faild.

    Then I tried to replace the first super block by second super block using

    dd count=1 bs=4k skip=1 seek=31 if=/dev/fslv00 of=/dev/fslv00
    But still failed to mount the /sprod and getting same error as before

    Failure replaying log: -1
    mount: 0506-324 Cannot mount /dev/fslv00 on /sprod: The media is not formatted or the format is not correct.
    0506-342 The superblock on /dev/fslv00 is dirty. Run a full fsck to fix.
    Please help me. Is there any way I can mount the /sprod directory or at least is there any data recovery software or what ever by using which I can recover those data from that directory?
    #AIX-Forum


  • 2.  Re: Can't mount showing 0506-342 The superblock on /dev/fslv00 is dirty

    Posted Tue February 19, 2008 10:03 AM

    Originally posted by: andycor


    Hi,

    try the following:

    fsck -y /sprod
    #AIX-Forum


  • 3.  Re: Can't mount showing 0506-342 The superblock on /dev/fslv00 is dirty

    Posted Fri February 22, 2008 06:47 AM

    Originally posted by: IBMFORUMS


    is this SCSI disk or SAN disk?
    check errpt and diag for H/W errors
    #AIX-Forum


  • 4.  Re: Can't mount showing 0506-342 The superblock on /dev/fslv00 is dirty

    Posted Sun February 24, 2008 11:37 PM

    Originally posted by: SystemAdmin


    Hi

    you may try this at your own risk

    fsck -vvy /filesystem name

    then if that doesnt work which i am sure it will not try the steps below

    #varyoffvg vgname
    #rmdev -dl hdisk3
    #cfgmgr
    #lsdev -Cc disk -> check hdisk3 now available #varyonvg vgname -> ok #lsvg -p vgname -> ok

    remount the filesystems and recheck.
    if that doesnt work i am prety sure you will need to delet the fs and recreate the fs and restore the data.

    good luck..
    #AIX-Forum