从 kernel v3.7 开始xfs文件格式中,默认使用inode64
将导致EBS 32-bit application 在linux7上报错,如:
Error: missing `server' JVM at `/example/oracle/fs1/EBSapps/10.1.2/jdk/jre/lib/i386/server/libjvm.so'. Please install or use the JRE or JDK that contains these missing components."
Doc ID 2573812.1
solution:
1. Backup the data in XFS filesystem.
2. Recreate the XFS filesystem:
NOTE: Usually, on Oracle Linux 7 the filesystem is created on LVM.
a. Unmount the filesystem "/example"
b. Remove the logical volume "lvexample" on volume group "vgexample"
c. Recreate the logical volume "lvexample" on volume group "vgexample"
d. Create the XFS filesystem on logical volume "lvexample"
e. Modify the /etc/fstab and add the option "inode32" to the XFS filesystem
# /dev/vgexample/lvexample /example xfs inode32 0 0
3. Mount the filesystem to "/example" with any of the following procedures:
a. Remounting the XFS filesystem using options in /etc/fstab:
# mount -a
b. Remounting the XFS filesystem manually:
# mount -o inode32 /dev/mapper/vgexample-lvexample /example
4. Query the mounted filesystem to make sure it's mounted with "inode32" option:
# mount | grep xfs
5. Copy the files back to the XFS filesystem or make a re-installation of the EBS utility.
注:remove逻辑卷和重建xfs挂载点,是为了清除原默认创建带inode64的挂载点中的已使用inode.
需要在安装EBS前,将计划给EBS使用的xfs挂载点,重建后挂载为inode32
另:如下:首次初始化,remount为inode32
xfs option inode32 doesn't work and is ignored at the initial mount:
# mount -t xfs -o inode32 /dev/sdb1 /u01
# mount | grep u01
/dev/sdb1 on /u01 type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
Remounting with inode32 option works:
# mount -o remount,inode32 /dev/sdc /u01
# mount | grep u01
/dev/sdb1 on /u01 type xfs (rw,relatime,seclabel,attr2,inode32,noquota)
或
chmod +x /etc/rc.d/rc.local
vi /etc/rc.d/rc.local
mount -o remount,inode32 /dev/sdc /u01




