Been a while since I've had some free time to play with iscsi, but I
have some time again now (mainly because it ties in with a few bits at
wokr) and I was wondering if there is still interest in a script for
setting up a diskless boot?
I've got quite a bit of it already done in terms of little scripts here
and there that I've written to help me along today, such as modified
mkinitrd for RH, to build a correct ramdisk etc. (Down from my previous
16MB at the start of the year, to a much nicer 2.4MB with a 1.5MB
Kernel (2.6.17.11).
One thing that would make it easier, would be to have a latest item
symlinked to the latest version of the tools and core-iscsi itself - Or
at the least a latest file containing the filename of the latest
version - Possibly the latter something like:
VERSION:3.5
FILE:core-iscsi-tools-v3.5
Would make it easier for any such script to check if a new version of
the tools or core were available and what filename they are in (I know
we could just use the VERSION, but the naming format may change
sometime, so this is more future-proof).
Any thoughts?
Thanks,
Karl
If you need a place to "put it", http://www.linux-iscsi.org has a wiki
section already existing that this would fit nicely into. This
newsgroup (and other iscsi newgroups) would be appropriate.
On a similar note, there is a solution already existing with diskless
iscsi boot as provided by OpenQRM that may be a good comparison or
reference point (but it's a little more "heavy weight" than a home
grown approach because it does more stuff).
Regards,
Mike
Thanks for the reply. Was starting to think all life had gone from
Core-iSCSI for a minute :)
I can only really offer advice from the Redhat camp, as that's all we
use (Well, CentOS).
Busybox - I chose to use busybox to keep the initrd size down, ended at
about 2.55MB. Had to put a static compile of bash in as well -
Although I think if I fiddle the Core-iSCSI shell scripts enough, I can
probably remove the need for it and nash will do the job fine.
Libs - Not an issue as far as I am aware, everything used was
statically compiled, including the initiator.
CleanShutdown - Quite a simple one for RH, just a case of removing the
network script from the shutdown and reboot run-levels.
Grub - Looking in to this at the moment, although a similar solution to
a menu based boot selection can be created with PXE.
Basically the way I have my initrd built, it takes everything it needs
to boot, from the kernel args, those args being:
Interface name
Interface address+prefix
iSCSI Target IP
iSCSI Target Name
iSCSI Initiator Name
Will try and get some time at the weekend to write it up a bit.
Thanks,