查看计算节点能不能看到cell node上的磁盘,可以不安装GI就能看
第一步,首先将grid的安装包拷贝到一个目录下,将之解压
[crsusr@slcz01db04 bin]$ ls
grid_home.zip
第二步 设置LD_LIBRARY_PATH和ORACLE_HOME
[crsusr@slcz01db04 bin]$ export ORACLE_HOME=/u01/check_disk
export LD_LIBRARY_PATH=/u01/check_disk/lib
第三步:
检查看看磁盘是不是能够检索到
[crsusr@slcz01db04 bin]$ export LD_LIBRARY_PATH=/u01/app/check_disk/lib
不设置ORACLE_HOME会报下面的错
[crsusr@slcz01db04 bin]$ ./kfod.bin disks=all
Error 1 initializing CRS infrastructure
KFOD-00602: file not found; arguments: [kfodgpheap]
LEM-00031: file not found; arguments: [lempgmh] [lmserr]
不设置LD_LIBRARY_PATH会报下面的错
[root@slcz01db04 bin]# ./kfod.bin disks=all
./kfod.bin: error while loading shared libraries: libasmclntsh.so: cannot open shared object file: No such file or directory
不能调用kfod,要调用kfod.bin
[root@slcz01db04 bin]# ./kfod disks=all
./kfod: line 22: /scratch/app/user/product/21.0.0/grid/bin/kfod.bin: No such file or directory