LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   What is the recommended way to setup Linux with iSCSI targets (http://www.linuxquestions.org/questions/red-hat-31/what-is-the-recommended-way-to-setup-linux-with-iscsi-targets-885335/)

the_gripmaster 06-08-2011 11:21 PM

What is the recommended way to setup Linux with iSCSI targets
 
I was playing with openfiler and RHEL 6 and managed to setup Red Hat Enterprise Linux on the iSCSI targets provided by openfiler. All partitions (including /boot) was setup on the on the iSCSI devices.

Only after I rebooted, and got a boot failure, and came to realize whatever I did wasn't the recommended way to install Linux on a diskless machine, there has to be some way the OS (RHEL) to know how to access the iSCSI devices, or the OS is to be installed on a locally attached disk media.

I would be glad if you let me know how you are using iSCSI devices, especially diskless machines relying solely on SAN for data storage.

carltm 06-16-2011 08:36 PM

Yes, it's a chicken and egg thing. You can't boot until you have
a filesystem, and you can't read a filesystem until after you've
booted. The only way I know to get around this is to enable pxe
booting and configure dhcp and tftp.

The boot process would start with the device requesting an IP
address and a server to load files from. After pulling down
the kernel and an initrd file, the system will again ask for
an IP address as it boots the kernel in memory. The initrd
file has to be preconfigured to know the scsi targets and to
finish the boot process.

Try searching for "linux boot diskless iscsi" and see if you
can find some instructions. It's more involved than it seems,
but you'll learn a lot in the process. And it's great having
a menu come up when you boot off the net! No more looking for
cds for installations or for troubleshooting!

the_gripmaster 06-16-2011 09:11 PM

Just a thought, instead of PXE boot, booting from a read-only CD is another alternative.

carltm 06-17-2011 07:51 AM

True. Or a floppy or a flash drive. But when I think of "diskless,"
I'm thinking no storage devices.

Incidentally, I'd suggest using a virtualization product such as
VirtualBox for setup and testing. The last few times I set up pxe
booting, it saved a lot of time when I tested on virtual hardware.


All times are GMT -5. The time now is 07:23 PM.