LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-08-2011, 11:21 PM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Rep: Reputation: 38
Question 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.
 
Old 06-16-2011, 08:36 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
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!
 
Old 06-16-2011, 09:11 PM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 38
Just a thought, instead of PXE boot, booting from a read-only CD is another alternative.
 
Old 06-17-2011, 07:51 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
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.
 
  


Reply

Tags
iscsi, san



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL4 enumerate iSCSI targets joeldavis Linux - Enterprise 2 05-23-2011 09:04 AM
Loading iscsi targets on reboot Neruocomp *BSD 0 06-28-2010 10:03 AM
LXer: Linux Setup iSCSI Target ( SAN ) LXer Syndicated Linux News 0 11-12-2008 04:30 PM
iSCSI Targets for Tape (character) Devices ben.kuiper Linux - Networking 3 03-15-2007 10:18 AM
Recommended NIC For Easy Linux Setup? Petersko Linux - Wireless Networking 3 01-05-2004 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration