记一次存储不可读修复

同事告诉我一AIX主机文件系统不可写
引用
# touch llll
touch: 0652-046 Cannot create llll.

怀疑是存储不一致引起,将其umount
引用
# pwd
/oracle
# cd /
# ps -ef|grep smon
    root 22538  9654   0 14:04:42  pts/3  0:00 grep smon
# umount /oracle
umount: 0506-349 Cannot unmount /dev/fslv03: The requested resource is busy.
# fuser -ck /oracle
/oracle:     6726c
# fuser -ck /oracle
/oracle:     6728c
# umount /oracle

采用fsck修复
引用
# fsck /oracle
The current volume is: /dev/fslv03
Primary superblock is valid.
*** Phase 1 - Initial inode scan
*** Phase 2 - Process remaining directories
*** Phase 3 - Process remaining files
Inode 14143 has incorrect link count; FIX? y
Superblock marked dirty because repairs are about to be written.
*** Phase 4 - Check and repair inode allocation map
File system inode map is corrupt; FIX? y
*** Phase 5 - Check and repair block allocation map
Block allocation map is corrupt; FIX? y
Inodes not connected to the root directory
         tree have been detected.  Will reconnect.
File system is clean.
Superblock is marked dirty; FIX? y
All observed inconsistencies have been repaired.

修复完成后,存储恢复正常
引用
# mount /oracle
# cd /oracle
# touch l

你可能感兴趣的:(oracle,AIX)