Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #183877 > unrolled thread

Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem

Started byFranz Angeli <franz.angeli@gmail.com>
First post2017-07-19 07:50 +0200
Last post2017-07-20 07:20 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem Franz Angeli <franz.angeli@gmail.com> - 2017-07-19 07:50 +0200
    Re: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging  problem Dan Ritter <dsr@randomstring.org> - 2017-07-19 20:30 +0200
    Re: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging  problem Christian Seiler <christian@iwakd.de> - 2017-07-19 21:00 +0200
      Re: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem Franz Angeli <franz.angeli@gmail.com> - 2017-07-20 07:20 +0200

#183877 — Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem

FromFranz Angeli <franz.angeli@gmail.com>
Date2017-07-19 07:50 +0200
SubjectDiskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem
Message-ID<u4Q1X-49w-9@gated-at.bofh.it>
Hi,

i have one diskless server able to boot with ISCSI, uefi is configures
to reach iscsi target and volume correctly;

i installed Debian 9 with debian installer ad all works fine, at the
end of installation process i remount root filesystem with (chroot
/target) and edit initaramfs.conf with:

IP=10.10.200.150::10.10.200.1:255.255.255.0:ti******1.mk*******.it:eno1

and after i update initramfs with:

update-initramfs -u

system boot correctly and works fine.

Problem is during shutdown, system hanging with:

a stop job is running for ifup for eno1

a stop job is running for Raise network interfaces

and i have to reset the server...

I know i can do the same with:

"ISCSI_AUTO=true" on /etc/iscsi/iscsi.initramfs

but i need a static IP configured as i do.


Some suggestion?

Thanks in advance

[toc] | [next] | [standalone]


#183905 — Re: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem

FromDan Ritter <dsr@randomstring.org>
Date2017-07-19 20:30 +0200
SubjectRe: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem
Message-ID<u51Tr-3Yc-5@gated-at.bofh.it>
In reply to#183877
On Wed, Jul 19, 2017 at 07:40:01AM +0200, Franz Angeli wrote:
> Hi,
> 
> i have one diskless server able to boot with ISCSI, uefi is configures
> to reach iscsi target and volume correctly;
> 
> i installed Debian 9 with debian installer ad all works fine, at the
> end of installation process i remount root filesystem with (chroot
> /target) and edit initaramfs.conf with:
> 
> IP=10.10.200.150::10.10.200.1:255.255.255.0:ti******1.mk*******.it:eno1
> 
> and after i update initramfs with:
> 
> update-initramfs -u
> 
> system boot correctly and works fine.
> 
> Problem is during shutdown, system hanging with:
> 
> a stop job is running for ifup for eno1
> 
> a stop job is running for Raise network interfaces
> 
> and i have to reset the server...
> 
> I know i can do the same with:
> 
> "ISCSI_AUTO=true" on /etc/iscsi/iscsi.initramfs
> 
> but i need a static IP configured as i do.

I think that this is because systemd wants to shut down your
network before it unmounts the rootfs, but it also knows the
rootfs depends on the network.

I don't have an answer, just a possible clue.

-dsr-

[toc] | [prev] | [next] | [standalone]


#183909 — Re: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem

FromChristian Seiler <christian@iwakd.de>
Date2017-07-19 21:00 +0200
SubjectRe: Diskless Debian stretch ISCSI boot (uefi) and shutdown hanging problem
Message-ID<u52mu-4bx-5@gated-at.bofh.it>
In reply to#183877
Hi,

(I'm one of the maintainers of the open-iscsi package in Debian.)

On 07/19/2017 07:40 AM, Franz Angeli wrote:
> i have one diskless server able to boot with ISCSI, uefi is configures
> to reach iscsi target and volume correctly;
> 
> i installed Debian 9 with debian installer ad all works fine, at the
> end of installation process i remount root filesystem with (chroot
> /target) and edit initaramfs.conf with:
> 
> IP=10.10.200.150::10.10.200.1:255.255.255.0:ti******1.mk*******.it:eno1
> 
> and after i update initramfs with:
> 
> update-initramfs -u
> 
> system boot correctly and works fine.
> 
> Problem is during shutdown, system hanging with:
> 
> a stop job is running for ifup for eno1
> 
> a stop job is running for Raise network interfaces
> 
> and i have to reset the server...
> 
> I know i can do the same with:
> 
> "ISCSI_AUTO=true" on /etc/iscsi/iscsi.initramfs
> 
> but i need a static IP configured as i do.

Do you perhaps also have something in /etc/network/interfaces or
/etc/network/interfaces.d, perhaps even DHCP configured? Because
if that takes over IP configuration and systemd kills the DHCP
client (which in turn removes the IP of the interface at
shutdown), then you'll see a hang because the network is gone
even though you still need it.

(ifupdown _should_ detect rootfs on iSCSI and not try to down
the interface by script, but the SIGTERM from systemd might
cause the dhcp client to drop the IP anyway.)

(Also note that you'd need to reboot twice after changing this
to test if that works.)

Regards,
Christian

[toc] | [prev] | [next] | [standalone]


#183952

FromFranz Angeli <franz.angeli@gmail.com>
Date2017-07-20 07:20 +0200
Message-ID<u5c2u-2DM-9@gated-at.bofh.it>
In reply to#183909
Hi,

you are correct, in /etc/network/interfaces i have interface eno1
configured with DHCP and after removing configuration system shutdown
correctly.

Thank you!

BR

2017-07-19 20:50 GMT+02:00 Christian Seiler <christian@iwakd.de>:
> Hi,
>
> (I'm one of the maintainers of the open-iscsi package in Debian.)
>
> On 07/19/2017 07:40 AM, Franz Angeli wrote:
>> i have one diskless server able to boot with ISCSI, uefi is configures
>> to reach iscsi target and volume correctly;
>>
>> i installed Debian 9 with debian installer ad all works fine, at the
>> end of installation process i remount root filesystem with (chroot
>> /target) and edit initaramfs.conf with:
>>
>> IP=10.10.200.150::10.10.200.1:255.255.255.0:ti******1.mk*******.it:eno1
>>
>> and after i update initramfs with:
>>
>> update-initramfs -u
>>
>> system boot correctly and works fine.
>>
>> Problem is during shutdown, system hanging with:
>>
>> a stop job is running for ifup for eno1
>>
>> a stop job is running for Raise network interfaces
>>
>> and i have to reset the server...
>>
>> I know i can do the same with:
>>
>> "ISCSI_AUTO=true" on /etc/iscsi/iscsi.initramfs
>>
>> but i need a static IP configured as i do.
>
> Do you perhaps also have something in /etc/network/interfaces or
> /etc/network/interfaces.d, perhaps even DHCP configured? Because
> if that takes over IP configuration and systemd kills the DHCP
> client (which in turn removes the IP of the interface at
> shutdown), then you'll see a hang because the network is gone
> even though you still need it.
>
> (ifupdown _should_ detect rootfs on iSCSI and not try to down
> the interface by script, but the SIGTERM from systemd might
> cause the dhcp client to drop the IP anyway.)
>
> (Also note that you'd need to reboot twice after changing this
> to test if that works.)
>
> Regards,
> Christian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web