What is the recommended way to setup Linux with iSCSI targets
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.