From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 20:24:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18BAA106564A for ; Thu, 20 Sep 2012 20:24:53 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id CD8E58FC08 for ; Thu, 20 Sep 2012 20:24:52 +0000 (UTC) Received: from www.dweimer.net (webmail.dweimer.net [192.168.5.1]) by webmail.dweimer.net (8.14.5/8.14.5) with ESMTP id q8KKOkt4064492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 20 Sep 2012 15:24:46 -0500 (CDT) (envelope-from dweimer@dweimer.net) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Sep 2012 15:24:46 -0500 From: dweimer To: Organization: dweimer.net Mail-Reply-To: In-Reply-To: <505B2B3E.8010607@unsane.co.uk> References: <505B2B3E.8010607@unsane.co.uk> Message-ID: X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/0.8.1 Subject: Re: Anyone Tried to use iPXE to boot with iSCSI? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dweimer@dweimer.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 20:24:53 -0000 On 2012-09-20 09:42, Vincent Hoffman wrote: > On 19/09/2012 06:53, dweimer wrote: >> I was just trying some proof of concept testing to see if I could >> get >> a system booting with no local disk using iSCSI running from my >> FreeNAS box. >> >> I got started, by first booting a 9.1-RC1 CD, into live CD, created >> a >> /tmp/iscsi.conf used kldload to load the iscsi initiator, connected >> to >> the target, created a gpt boot partition, swap partition and just a >> single / volume using remianing space. Copied the bootcode, created >> the file system, extracted the system etc. Created a loader.conf >> file, added the iscsi_initiator_load="YES" option, copied my >> /tmp/iscsi.conf file to the new file system at /etc/iscsi.conf >> created >> a /etc/fstab file using the gpart labels to mount / and swap >> partitions. >> >> Booted the system from the iPXE.iso, ran the necessary configuration >> options, connected to the iscsi volume, and booted from it. It does >> launch the bootcode, as expected, and then breaks failing to mount >> root. >> >> Whoch I actually expected, I have proved I can install to an iSCSI >> volume, I can connect to that iSCSI volume prior to loading the >> kernel, and load the kernel from it. >> >> What I can't seem to find any information on is how to mount iSCSI >> volumes at boot on FreeBSD, so that the kernel can mount the root >> partition. Does anyone have any idea how to do this, or if its even >> possible? >> > Sounds like you need this > > http://freebsd.1045724.n5.nabble.com/iSCSI-boot-driver-0-2-5-isboot-ko-has-been-released-td5736301.html > > > Vince That's looking promising, I had actually ran across an earlier version of this last night, of course that was all dealing with 8.1. Will definitely do more looking into it, however it doesn't seem to be at a point I would consider running anything more than a test environment from it. My actual goal with this project if the proof of concept panned out was to replace the old aging internal SATA Mirrored drives in my Home web/email server (They are showing a decent number of smart pre-fail indicators, but still working for now). I have fairly new SATA drives in my FreeNAS box, and thought maybe since my Gig network is barely being taxed, that I could save some cash for new disk drives, to be put towards future upgrades to the FreeNAS box instead. However I am not ruling out the possibility altogether yet, and am going to run some tests with booting from a very minimal set of required files on a USB thumb Drive, and mounting everything else from iSCSI. I am already running all my VMware Test Virtual Machines on my workstation from an iSCSI volume mounted from my FreeNAS box, and know that it performs well enough in my network to handle the small amount of traffic to my website and my email without any problems. -- Thanks, Dean E. Weimer http://www.dweimer.net/