AIX学习之--文件系统修复(/home)
系统环境:
操作系统:AIX 5.3.8
Oracle: Oracle 10gR2
案例:
在执行mount文件系统时出现以下错误:
[root@aix199:/]#mount /home
Replaying log for /dev/hd1.
Devices already mounted that are using /dev/hd8
Failure replaying log: 0
mount: /dev/hd1 on /home: Unformatted or incompatible media
The superblock on /dev/hd1 is dirty. Run a full fsck to fix.
查看逻辑卷:
[root@aix199:/]#lsvg -l rootvg
rootvg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINThd5 boot 1 1 1 closed/syncd N/Ahd6 paging 32 32 1 open/syncd N/Ahd8 jfslog 1 1 1 open/syncd N/Ahd4 jfs 128 128 1 open/syncd /hd2 jfs 96 96 1 open/syncd /usrhd9var jfs 32 32 1 open/syncd /varhd3 jfs 32 32 1 open/syncd /tmphd1 jfs 80 80 1 closed/syncd /homehd10opt jfs 16 16 1 open/syncd /optlv01 jfs 1 1 1 open/syncd /var/adm/csd
同步vg:
[root@aix199:/]#synclvodm -v rootvg
synclvodm: Physical volume data updated.synclvodm: Logical volume hd5 updated.synclvodm: Logical volume hd6 updated.synclvodm: Logical volume hd8 updated.synclvodm: Logical volume hd4 updated.synclvodm: Logical volume hd2 updated.synclvodm: Logical volume hd9var updated.synclvodm: Logical volume hd3 updated.synclvodm: Logical volume hd1 updated.synclvodm: Logical volume hd10opt updated.synclvodm: Logical volume lv01 updated.
[root@aix199:/]#lsvg -l rootvg
rootvg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINThd5 boot 1 1 1 closed/syncd N/Ahd6 paging 32 32 1 open/syncd N/Ahd8 jfslog 1 1 1 open/syncd N/Ahd4 jfs 128 128 1 open/syncd /hd2 jfs 96 96 1 open/syncd /usrhd9var jfs 32 32 1 open/syncd /varhd3 jfs 32 32 1 open/syncd /tmphd1 jfs 80 80 1 closed/syncd /homehd10opt jfs 16 16 1 open/syncd /optlv01 jfs 1 1 1 open/syncd /var/adm/csd
mount文件系统:
[root@aix199:/]#mount /home
Replaying log for /dev/hd1.
Devices already mounted that are using /dev/hd8
Failure replaying log: 0
mount: /dev/hd1 on /home: Unformatted or incompatible media
The superblock on /dev/hd1 is dirty. Run a full fsck to fix.
fsck修复文件系统:
[root@aix199:/]#fsck -y /home
** Checking /dev/rhd1 (/home) ** Phase 1 - Check Blocks and Sizes** Phase 2 - Check Pathnames** Phase 3 - Check Connectivity** Phase 4 - Check Reference Counts** Phase 5 - Check Inode Map** Phase 6 - Check Block MapSuperblock is marked dirty (FIXED)105 files 397841 blocks 10087919 free***** Filesystem was modified *****
重新mount文件系统:
[root@aix199:/]#mount /home[root@aix199:/]#ls /homeTT_DB dba guest lost+found oracle
执行sqlplus命令出错:
[oracle@aix199:~]$sqlplus
Could not load program sqlplus:
Cannot run a 64-bit program until the 64-bit
environment has been configured. See the system administrator.
查看系统内核版本:
[root@aix199:/]#bootinfo -K
64
查看系统信息:
[root@aix199:/]#prtconf |more
System Model: IBM,7028-6C4Machine Serial Number: 108570CProcessor Type: PowerPC_POWER4Processor Implementation Mode: POWER 4Processor Version: PV_4Number Of Processors: 2Processor Clock Speed: 1002 MHzCPU Type: 64-bitKernel Type: 64-bitLPAR Info: 1 NULLMemory Size: 1024 MBGood Memory Size: 1024 MBPlatform Firmware level: 3R080425Firmware Version: IBM,RG080425_d79e22_rConsole Login: enableAuto Restart: trueFull Core: false
系统内核应该为64位,所以重新启动系统,系统重启后问题解决!