Hi, Thanks for your reply.
The contents of initiatornam.iscsi is one line: GenerateName=yes iscsi.initramfs has the following contents: ISCSI_TARGET_NAME="iqn.2004-04.com.qnap:ts-412:iscsi.littlesister.c83a5e" ISCSI_TARGET_IP="192.168.15.251" ISCSI_TARGET_PORT="3260" ISCSI_TARGET_GROUP="1" I don't use any user authentication in the current setup since I want to minimize things that can go wrong. I also only use ip-addresses when I communicate with the NAS which acts as the iSCSI target. Looking at the kernel parameters there is no mentioning of any ip settings. I have tried supplying static ip settings, initiatorname and target name as kernel parameters but to me it looked liked those settings where ignored. So based on that I guess that the initramfs in this case runs its own DHCP client and grabs its config from some other place then the kernel parameters. I have also tried to set the target name via the dhcp root-path option, which is then written out on the console at boot time, but the result is still the same error message and a drop to the initrams shell. Regards Fredrik 2016-08-19 13:29 GMT+02:00 Christian Seiler <christ...@iwakd.de>: > Hi, > > (writing this from my phone, so please pardon my bottom quote) > > For reference: I co-maintain open-iscsi in Debian. > > Could you provide the contents of the initiatorname.iscsi and > iscsi.initramfs files in the initramfs verbatim? (Anonymizing > users/passwords is OK of course.) > > Also: did you specify the target as a host name or IP address? IIRC only > IP addresses work for rootfs on iSCSI. (Not sure though and I am not in > front of a computer to check.) > > Furthermore: does the initramfs run its own DHCP client? Do you have > ip=dhcp (or an equivalent static config) in your kernel command line args? > (The installer should set this.) > > Regards, > Christian > > > Am 19. August 2016 08:27:00 MESZ, schrieb Fredrik Nilsson < > afredr...@gmail.com>: >> >> Hi, >> >> I have installed Debian Jessie (8.5) on an iscsi disk but I am having >> difficulty booting the system afterwards. (The installation itself went >> smoothly although a bit slow.) >> >> The Supermicro server I have at my disposal mounts the iscsci target fine >> via bios/nic firmware and grub loads then up nicely. But the problem starts >> after grub when the the ip-address has been retrieved via dhcp. >> >> iscsistart then tries to mount the iscsi device but fails with the >> following line >> >> iscsistart: TargetName not set. Exiting iscsistart >> >> It then drops me into the initramfs shell. From there I have been able to >> find /etc/iscsi.initrams and /etc/initiatorname.iscsi which seems to >> contain the correct information to mount the target. >> >> Any additional parameters I add to the kernel command line via grub seems >> to be ignored. >> >> When I googled this error message I found an old error that was caused by >> the network not bein available at the time iscsistart was started, but it >> was several years that particular issue was resolved. >> >> Any help on how I can debug and fix this is much appreciated. >> >> Thanks! >> >> /Fredrik >> >> >>