3.5.3. Disabling ACPI Completely in the grub.conf File
chkconfigmanagement (節 3.5.1, “Disabling ACPI Soft-Off with
chkconfigManagement”). If the preferred method is not effective for your cluster, you can disable ACPI Soft-Off with the BIOS power management (節 3.5.2, “Disabling ACPI Soft-Off with the BIOS”). If neither of those methods is effective for your cluster, you can disable ACPI completely by appending
acpi=offto the kernel boot command line in the
grub.conffile of each cluster node as follows:
/boot/grub/grub.confwith a text editor.
acpi=offto the kernel boot command line in
/boot/grub/grub.conf(refer to 範例 3.2, “Kernel Boot Command Line with
acpi=offAppended to It”).
- Reboot the node.
- When the cluster is configured and running, verify that the node turns off immediately when fenced.
注意You can fence the node with the
fence_nodecommand or Conga.
範例 3.2. Kernel Boot Command Line with
acpi=off Appended to It
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_doc01-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/hda default=0 timeout=5 serial --unit=0 --speed=115200 terminal --timeout=5 serial console title Red Hat Enterprise Linux Server (2.6.32-193.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-193.el6.x86_64 ro root=/dev/mapper/vg_doc01-lv_root console=ttyS0,115200n8 acpi=off initrd /initramrs-2.6.32-131.0.15.el6.x86_64.img
acpi=offhas been appended to the kernel boot command line — the line starting with "kernel /vmlinuz-2.6.32-193.el6.x86_64.img".