How can I compile a kernel module in the DRBL client so that I can use it for DRBL clients ? |
1. Make sure the client's IP address where you want to compile, you can get the ip address by:
/sbin/ifconfig -a
In this case, we take 192.168.120.1 for example.
2. In DRBL server, edit /etc/exports, find the following:
/tftpboot/node_root 192.168.120.1(ro,sync,async,no_root_squash,subtree_check)
Modify it, change ro to be rw like this:
/tftpboot/node_root 192.168.120.1(rw,sync,async,no_root_squash,subtree_check)
3. Reload your nfs service, like
/etc/init.d/nfs-kernel-server reload (in Debian-like system)
or
/etc/init.d/nfs reload (in RedHat-like system)
4. Now you can start to compile the module in you DRBL client, and install that in the system (make, make install...).
5. ///NOTE/// When you finish the compilation and installation, before rebooting the client, remember to restore the /etc/exports in the server, i.e. change rw to ro as you have done in step 2, and run step 3 to make it work. If you do not do it, you might mess the system up.
|
|