On centos5.4, compile the kernel of High Version according to the general method after restart will error, solution is cp/boot/config-2.6.18-164.el5. in make menuconfig, and then modify. config: Enable the CONFIG_SYSFS_DEPRECATED option. During make, the system will prompt whether to enable CONFIG_SYSFS_DEPRECATEDV2. After you select enable, make modules_install is complete. After restart, the system will still report an error: insmod: error inserting '/lib/dm-region-hash.ko':-1 File exits, then you need to modify the initrd File:
Cp/boot/initrd-2.6.36 +. img/tmp
Mkdir new
Cd new
Zcat./initrd-2.6.36 +. img | cpio-I
After unpacking, modify init to delete the redundant dm-region-hash information.
Rewrite and package initrd
Find. | cpio-c-o> initrd. new
Gzip-9 <initrd. new> initrd-2.6.36 +. img
Copy the new initrd-2.6.36 +. img to/boot and restart the system.