Hello

During the power failure my file system was probably corrupted. But the problem is strange for me. Here is fsck:


# fsck
** /dev/rwd0a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=1686  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

UNREF FILE I=1689  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

UNREF FILE I=1691  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

** Phase 5 - Check Cyl groups
1690 files, 14295 used, 61088 free (56 frags, 7629 blocks, 0.1% fragmentation)
** /dev/rwd0d (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
96 files, 96 used, 25183 free (7 frags, 3147 blocks, 0.0% fragmentation)
** /dev/rwd0e (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
83681 files, 525918 used, 2568933 free (1045 frags, 320986 blocks, 0.0% fragmentation)
** /dev/rwd0f (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
15026 files, 2102174 used, 4192337 free (4777 frags, 523445 blocks, 0.1% fragmentation)

So if I understand correctly, some files are corrupted and all partitions are in read-only status. Interesting is that I can write files to all partitions.
Here is a mount output:

/dev/wd0a on / type ffs (local)
/dev/wd0d on /home type ffs (local, nodev, nosuid)
/dev/wd0e on /usr type ffs (local, nodev)
/dev/wd0f on /var type ffs (local, nodev, nosuid)

Because file owned by mysqld are on /var I decided to unmount /var repair it by fsck and then mount it again. But it is really strange.


# umount -f /dev/wd0f

# fsck /dev/wd0f
** /dev/rwd0f
** File system is clean; not checking

it means that /var is ok, i rather forced fsck but same result:

# fsck -f /dev/wd0f
** /dev/rwd0f
** File system is already clean
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
15024 files, 2102173 used, 4192338 free (4778 frags, 523445 blocks, 0.1% fragmentation)

Now I performed fsck for all mount points again and corrupted files have gone:

# fsck
** /dev/rwd0a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1687 files, 14295 used, 61088 free (56 frags, 7629 blocks, 0.1% fragmentation)
** /dev/rwd0d (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
96 files, 96 used, 25183 free (7 frags, 3147 blocks, 0.0% fragmentation)
** /dev/rwd0e (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
83681 files, 525918 used, 2568933 free (1045 frags, 320986 blocks, 0.0% fragmentation)
** /dev/rwd0f
** File system is clean; not checking

I rebooted but fsck shows same problem as before. All mount point are read-only, they are not marked as clean and I see corrupted files.

# fsck
** /dev/rwd0a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=1686  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

UNREF FILE I=1689  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

UNREF FILE I=1691  OWNER=_mysql MODE=100600
SIZE=0 MTIME=Oct 12 11:20 2005
CLEAR? no

** Phase 5 - Check Cyl groups
1690 files, 14295 used, 61088 free (56 frags, 7629 blocks, 0.1% fragmentation)
** /dev/rwd0d (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
96 files, 96 used, 25183 free (7 frags, 3147 blocks, 0.0% fragmentation)
** /dev/rwd0e (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
83681 files, 525918 used, 2568933 free (1045 frags, 320986 blocks, 0.0% fragmentation)
** /dev/rwd0f (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
15026 files, 2102174 used, 4192337 free (4777 frags, 523445 blocks, 0.1% fragmentation)


This situation is wired for me and I do not understand it. Can somebody help?
Thanks a lot
MK

Reply via email to