Wednesday, September 30, 2009

interview questions

(1) You are booting off a san disk. And you have problems with the san driver, what ya gonna do?

A: of course, you need to change the module (a trivial answer); in linux, you need to find a way to load that new module before mounting / partition. This means, creating initrd image, which gets mounted in memory--be it initrd (ramdisk file system--block device exe2 driver) or initramfs (no need for caching, tmpfs driver). Note the chicken-egg problem in the boot process: ext2/tmpfs kernel modules are part of kernel.

use mkinitrd to create the image.

(2) Can subnet A's gateway IP be part of subnet B?

Yes; in fact, look at the gateway of your cable connection. This is done using proxy-arp.

No comments: