mkfs.ext4: symbol lookup error: mkfs.ext4: undefined symbol: ext2fs_numeric_progress_ops
vgextend vg_mysqlsoft /dev/sdc7
lvcreate -n lv_MariaDB_104 -L 3G vg_mysqlsoft
mkfs.ext4 /dev/vg_mysqlsoft/lv_MariaDB_104
mkdir /usr/local/MariaDB_104
mount /dev/vg_mysqlsoft/lv_MariaDB_104 /usr/local/MariaDB_104
报错:
[root@rhel6lhr ~]# mkfs.ext4 /dev/vg_mysqlsoft/lv_MariaDB_104
mkfs.ext4: symbol lookup error: mkfs.ext4: undefined symbol: ext2fs_numeric_progress_ops
[root@rhel6lhr ~]# ldd /sbin/mkfs.ext4
linux-vdso.so.1 => (0x00007fffdad90000)
libext2fs.so.2 => /lib64/libext2fs.so.2 (0x00007f53c9c61000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f53c9a5d000)
libblkid.so.1 => /lib64/libblkid.so.1 (0x0000003a43800000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003a4a400000)
libe2p.so.2 => /lib64/libe2p.so.2 (0x00007f53c9855000)
libc.so.6 => /lib64/libc.so.6 (0x0000003a3f800000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a3fc00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003a3f000000)
解决:
找一个正确的相同版本的OS,然后拷贝/lib64/libext2fs.so.2和/lib64/libcom_err.so.2,覆盖有问题的OS,再次运行即可。