hello, everyone!
this post i will introduce you some installation Faults of " Incorrect File Permissions Causing an OS Optimization Failure", Let's discuss it together.
Applicable Versions
6.5.x
Symptom
During preinstall script execution, OS optimization fails, resulting in a preinstallation failure.
Fault Locating
Analyze the preinstall log (/tmp/fi-preinstall.log) and find that.
Modify /etc/sysctl.conf failed for kernel.sysrq.sed: cannot rename /etc/sedEVdcVQ: Operation not permitted[192.X.X.39]Error: run /tmp/fi-preinstall/modules/050.setup/centos-6.x/setup.sh failed[192.X.X.39]Error: run setup_main 050.setup in [/tmp/fi-preinstall/modules/050.setup] failed[Thu Apr 9 18:16:16 CST 2015] Debug: [/opt/patch/packages:m2crypto.x86_64:0] Enter [get_rpm_file:23]Debug: Missing:bind.x86_64[192.X.X.39]Error: install failedError: Execute failed on 192.X.X.39 (50)[Thu Apr 9 18:16:16 CST 2015] Debug: [/opt/patch/packages:python-simplejson.x86_64:0] Enter [get_rpm_file:23][Thu Apr 9 18:16:16 CST 2015] Info: Run ./script//function/remote.sh -i 192.X.X.39 -P 22 -u root -a /tmp/fi-preinstall-ctrl/preinstall-p.bin -k /tmp/fi-preinstall-ctrl/known_hosts -t 18000 -m ssh-cmd -c bash /tmp/fi-preinstall/modules/install.sh -i "192.X.X.39" -p "0" -c "" -s "1" -d "1" -k "1" -o "redhat-6.3;redhat-6.4;redhat-6.5;suse-11.1;suse-11.2;centos-6.4;centos-6.5" failed, ret code:50[Thu Apr 9 18:16:16 CST 2015] Debug: Leave [exec_cmd_r:60][Thu Apr 9 18:16:16 CST 2015] Debug: Leave [check_rpms_dir:86][Thu Apr 9 18:16:16 CST 2015] Error: [192.168.17.39] Setup os failed
The /etc/sysctl.conf file is granted with the hide permission (i permission). As a result, the file fails to be modified
Solution
Run the lsattr -a /etc/sysctl.conf command to view the hide permission.
Run the chattr -i /etc/sysctl.conf command to delete the hide permission (i permission).