Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th February 2007, 01:40 AM
Kedarka Offline
Registered User
 
Join Date: Feb 2007
Posts: 5
Creating iSCSI initrd

mkinitrd script in FC6 is able to create initrd with iSCSI support. Does anyone know whether there is any reasonable way to force it to create initrd with iISCSI support without actually having root on iSCSI?
Reply With Quote
  #2  
Old 5th February 2007, 04:07 AM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
Try reading the first two paragraphs under "Description" on the mkinitrd man page and post back if you need more help.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #3  
Old 5th February 2007, 08:26 AM
Kedarka Offline
Registered User
 
Join Date: Feb 2007
Posts: 5
You mean these two paragraphs

DESCRIPTION
mkinitrd creates an initial image used by the kernel for preloading the
block device modules (such as IDE, SCSI or RAID) which are needed to
access the root filesystem. mkinitrd automatically loads filesystem
modules (such as ext3 and jbd), IDE modules, all scsi_hostadapter
entries in /etc/modprobe.conf, and raid modules if the system’s root
partition is on raid, which makes it simple to build and use kernels
using modular device drivers.

Any module options specified in /etc/modprobe.conf are passed to the
modules as they are loaded by the initial ramdisk.


?

I do not see any point how this relates to my question. I know what mkinitrd is but I am asking whether there is a way how to force mkinitrd to create ramdisk as if root were located on iSCSI device. I'm preparing initrd ramdisk for diskless boot and thought thath mkinitrd could be used as it has the ability to do it.
Reply With Quote
  #4  
Old 5th February 2007, 03:28 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
What would be different about a machine that has its root filesystem on an iSCSI disk than a machine that has its root on a local disk? Modules and mount point.

Modules are specified in /etc/modprobe.conf and mountpoints are specified in /etc/fstab. Mkinitrd reads /etc/modprobe.conf and accepts a command line switch for an alternate fstab.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #5  
Old 5th February 2007, 04:02 PM
Kedarka Offline
Registered User
 
Join Date: Feb 2007
Posts: 5
The difference is, that it is not enough for iSCSI to have modules and mountpoint.
The initrd needs also driver for proper network card, needs to start the network card (i.e. it may need dhcp client), it needs at least iscsistart binary (static one) and needs to run it, then wait for successfull connection and then it can mount the mountpoint.
And the initrd ramdrive needs to contain the information about network configuration, iSCSI target and CHAP secrets.
Reply With Quote
  #6  
Old 5th February 2007, 07:44 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
You're right, I was oversimplifying the problem.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
Reply

Tags
creating, initrd, iscsi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISCSI on Fedora Core 9 (netbsd-iscsi vanheemst Installation and Live Media 3 19th November 2008 05:11 PM
kernel panic with initrd=initrd.img in loadlin jules Installation and Live Media 4 8th July 2004 11:17 AM


Current GMT-time: 09:35 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat