OpenSUSE: installing on and booting from iSCSI

From Perswiki
Revision as of 11:42, 11 December 2011 by Per Jessen (Talk | contribs) (Environment)

Jump to: navigation, search

iSCSI is probably not exactly the most exercised functionalitry in openSUSE (openSUSE 12.1 was even released with a buggy YaST iSCSI client module, which prevented installation on and/or configuration of iSCSI disks). Apart from that essentially quite minor hurdle, iSCSI works very well with openSUSE.

I've recently completed an exercise in installing openSUSE 12.1 on IBM HS20 blades without local disks, only iSCSI access, and it was suggested to me I do a short write-up.

Environment

Having a working iSCSI server is obviously essential - I have a server running openSUSE - not sure which version, but with the lastest iSCSI target software. The config looks roughly like this:

iSCSI target 
LVM
RAID5

Additionally, I have a DHCP+TFTP setup that allows me to boot/install machines without local media, i.e. PXE network boot. It's not a requirement as such, booting or installing from CD or a USB flash should work equally well.

Installing over ssh

I almost always install openSUSE from the NET version over an ssh session - our downstairs datacenter is not a really comfortable environment for longer periods of time, so I prefer getting the installation going, then return to the comforts of my office and continue from there. Installing over ssh also means we get access to a shell before starting YaST, which is quite important. I believe it is possible to achieve this with a command line argument too, but I'm not sure what it is.

Fixing yast2-iscsi-client

To the uninitiated, this may sound a little bit tricky, but it's really not. Unfortunately, openSUSE 12.1 was released with a buggy iscsi-client module, but we can fix this before we start the installation. 7Dec2011: I have submitted a fix for updating YaST, but it has not yet gone through.

Once you have booted the machine and logged over ssh:

mkdir -p /y2update/modules
cp /usr/share/YaST2/modules/IscsiClientLib.ycp /y2update/modules