暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

EBS在linux7上使用xfs文件格式

原创 杨金福 云和恩墨 2021-10-27
1419

从 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

最后修改时间:2021-10-27 12:25:41
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论