SLES 11 and iSCSI

Gooberlx2

Lifer
May 4, 2001
15,381
6
91
So I'm testing out SLES11 in a VM for a server and iSCSI storage array on order.

Rack server (Dell R610), and an iSCSI unit (Dell Equallogic PS6500e 48T).

The rest of our lab workstations are using Opensuse (10.3 and 11.1), so I was looking at SLES11 to stay within that ecosystem while using the latest version.

Anyway, what I've found is that filesystems via iSCSI won't mount during boot:
- during boot portion of startup, there's /etc/init.d/boot.localfs which mounts and fscks all filesystems identified in /etc/fstab. Unmounted filesystems will fail the boot and require me to log in to a pseudo-rescue mode.
- as a result any iSCSI filesystems will fail the boot because network and open-iscsi aren't initialized until the runlevel 3 scripts.
- adding _netdev does nothing and it seems "hotplug" doesn't work either (I guess it was a feature in previous versions, as all the guides I've read mention it, but must no longer be available).

So I've commented out the test iSCSI filesystem (target created in an Ubuntu Server VM) from fstab and created a "luntab" script in /etc/ which indivdually runs a mount command for each LUN. Then I modified /etc/init.d/open-iscsi to run luntab after logging in to the iSCSI targets.

It works, but it's dirty. Anyone else have experience with SLES11 and iSCSI or ideas about making this a little more "clean".

I will also be trying out RHEL and SLES10 SP2, but the ISOs are still downloading.

edit:
Okay, one thing I did to clean it up a bit and stay within the suse/yast services ecosystem was to move luntab to /etc/init.d, fill out service description and dependency info and then run chkconfig --add luntab

Still...it's just the kind of thing you'd think would work properly out of the box with an established distro like SLES.

 

M00T

Golden Member
Mar 12, 2000
1,214
1
0
If suse has a netfs service like RHEL, then add the "_netdev" option to your iscsi mounts in /etc/fstab. Aftwards, "chkconfig netfs on".
 

Gooberlx2

Lifer
May 4, 2001
15,381
6
91
Originally posted by: Jamie M
Have you consider using iSCSI Target for Windows?
please answer me when you can.

I've played around with the iSCSI iniator in Windows in the past with a demo equallogic unit. It works fine. However, we're using, and sticking to Linux for various other reasons.

M00T, I did look around, but I don't think netfs is part of SLES. One mailing list post I read somewhere seemed to indicate that it may been part of it at one time, but no longer is.
 

Scarpozzi

Lifer
Jun 13, 2000
26,389
1,778
126
I always found that SLES iSCSI worked best using the initiator from the GUI to configure it. Once the configuration was saved, it started after the system booted without an issue...but I wasn't using it as a boot partition.

I'm assuming you're just trying to connect to a pre-existing share on the Equalogic via iSCSI... Is that the case or are you setting up a target for others to connect to? If you have ESX server, I'd probably let VMware do the iSCSI connection and share the iSCSI volume to the Virtual Machine as a virtual disk. Just pretend you have an iSCSI or TOE card to help your server and think of it that way.

iSCSI doesn't like to be 'shared' with other systems and needs about 600Meg to keep disk lag to a minimum. Also consider running jumbo-frames on your switch port to maximize performance.
 

Gooberlx2

Lifer
May 4, 2001
15,381
6
91
Originally posted by: Scarpozzi
I always found that SLES iSCSI worked best using the initiator from the GUI to configure it. Once the configuration was saved, it started after the system booted without an issue...but I wasn't using it as a boot partition.

I'm assuming you're just trying to connect to a pre-existing share on the Equalogic via iSCSI... Is that the case or are you setting up a target for others to connect to? If you have ESX server, I'd probably let VMware do the iSCSI connection and share the iSCSI volume to the Virtual Machine as a virtual disk. Just pretend you have an iSCSI or TOE card to help your server and think of it that way.

iSCSI doesn't like to be 'shared' with other systems and needs about 600Meg to keep disk lag to a minimum. Also consider running jumbo-frames on your switch port to maximize performance.

Right now I was just testing things in a VM. We haven't yet received the equipment. I wasn't planning on actually running SLES in a VM when things arrive....though now I'm going to ponder the idea (gee, thanks. ).

I posted this same issue on the Novell forums, and it seems I'm not the only one. I did use the GUI initiator to set things up, but it seems some things are simply missing, or out of order during the bootup sequence to properly mount and iSCSI filesystem. It's not the boot or root filesystem, just gets mounted to /data.

The crux of it is that network and iSCSI aren't initialized during the boot.xxx scripts. But boot.localfs tries to fsck all filesystems defined in fstab. adding a "hotplug" option in the fstab entry used to alleviate the problem in older SLES versions (it seems), but no longer works in recent versions.

*shrug* So I made my own workaround. I guess I could have ordered an iSCSI HBA on the system, I didn't realize I might need one, and apparently neither did the Dell people who had been in talks with us for quite some time....c'est la vie.

The R610 will access the iSCSI, and will provide NFS, SMB, FTP and web file services. It will also provide some webpages and database functions. The iSCSI won't be shared by multiple machines.

Our server room has a rather beefy backbone and jumbo frame support, and I'll be teaming gigabit NICs, so adequate communication between the two won't be a problem.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |