Re: reboot hangs with "Reached target shutdown", who can help me?

2019-12-13 Thread Robert ECEO Townley
If you enter the mount command at this point, what mount points are still
mounted?   Screenshot has some contradictions.



On Thu, Dec 12, 2019 at 8:08 PM can zhu  wrote:

>
> @The Lee-Man  Thanks, In my environment, the default value of the
> node.startup is automatic in config
>
>
>
> The Lee-Man  于2019年12月13日周五 上午5:17写道:
>
>> Okay, I checked CentOS 8, and the services seem very similar to what I'm
>> familiar with.
>>
>> You do indeed need to make sure your nodes have startup set to automatic.
>>
>> Use something like:
>>
>> > zsh> sudo iscsiadm -m node --op update --name 'node.conn[0].startup'
>> --value automatic
>>
>> to update all nodes to start and stop automatically, and update startup
>> in /etc/iscsi/iscsid.conf to change the default.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "open-iscsi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to open-iscsi+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/open-iscsi/5bdc3a89-e685-453d-8908-5a5c0e2f7332%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/open-iscsi/CAGJK1K%3DU0UsEn9Sv0%3DtOFo2hgBeWEE4gDaRtsgEg3-08g829BA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/CACE8Fw%3D30hiKc%3DRm4%3Dk_2vPm%2BzTzponTMKt2um9xTmOc-qoTgA%40mail.gmail.com.


Re: reboot hangs with "Reached target shutdown", who can help me?

2019-12-12 Thread can zhu
@The Lee-Man  Thanks, In my environment, the default value of the
node.startup is automatic in config



The Lee-Man  于2019年12月13日周五 上午5:17写道:

> Okay, I checked CentOS 8, and the services seem very similar to what I'm
> familiar with.
>
> You do indeed need to make sure your nodes have startup set to automatic.
>
> Use something like:
>
> > zsh> sudo iscsiadm -m node --op update --name 'node.conn[0].startup'
> --value automatic
>
> to update all nodes to start and stop automatically, and update startup in
> /etc/iscsi/iscsid.conf to change the default.
>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/open-iscsi/5bdc3a89-e685-453d-8908-5a5c0e2f7332%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/CAGJK1K%3DU0UsEn9Sv0%3DtOFo2hgBeWEE4gDaRtsgEg3-08g829BA%40mail.gmail.com.


Re: reboot hangs with "Reached target shutdown", who can help me?

2019-12-12 Thread The Lee-Man
Okay, I checked CentOS 8, and the services seem very similar to what I'm 
familiar with.

You do indeed need to make sure your nodes have startup set to automatic.

Use something like:

> zsh> sudo iscsiadm -m node --op update --name 'node.conn[0].startup' 
--value automatic

to update all nodes to start and stop automatically, and update startup in 
/etc/iscsi/iscsid.conf to change the default.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/5bdc3a89-e685-453d-8908-5a5c0e2f7332%40googlegroups.com.


Re: reboot hangs with "Reached target shutdown", who can help me?

2019-12-12 Thread The Lee-Man
On Tuesday, December 10, 2019 at 6:25:00 AM UTC-8, can zhu wrote:
>
> os version:
>
> CentOS Linux release 7.4.1708 (Core)
>
> kernel version:  
>
> 3.10.0-693.el7.x86_64
>
>
> systemd version:
>
> *systemd*-219-42.el7.x86_64
>
>
> Mount iscsi devices on the node(iscsi client node) and reboot os, hangs:
> ...
>

Hello:

Such issue are common if the proper sequencing is not followed when 
shutting down iSCSI connections.

One has to (in order):


   - if iscsi devices are being used, stop using them. That generally means 
   unmounting any filesystems that use the devices.
   - logout of the iSCSI connection, i.e. end the iscsi session cleanly
   - stop the iscsi daemon
   - now the network can be shutdown

And this of course assumes your target(s) are on other systems that are not 
being shut down.

As mentioned by Ulrich, this sequencing is now handled by systemd on most 
Linux systems. And the way in which this is handled is that these different 
layers are handled by different services. For example, on SUSE, the daemon 
is controlled by iscsid.socket and iscsid.service, and the login/logout is 
handled by iscsi.service.

I do not have a CentOS 7 system, but I'm downloading CentOS 8 to see how RH 
has set up the iSCSI services there.

But, at a low level, you must have the "startup" value set to "automatic" 
for targets to be disconnected automatically at shutdown time. So you 
should be able to run:

> zsh> sudo iscsiadm -m node --op show | fgrep startup

to see the startup value.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/1cf29039-73ae-46df-8e0e-76c8f17fed15%40googlegroups.com.


Re: reboot hangs with "Reached target shutdown", who can help me?

2019-12-10 Thread can zhu
Have you encountered such a problem? Could you give me some suggestions?


Ulrich Windl  于2019年12月10日周二 下午10:31写道:

> Hi!
>
> I think the problem is more related to systemd, rather than iscsi.
> Personally I hate systemd, but you don't wnat to know that...
>
> Regards,
> Ulrich
>
> >>> can zhu  schrieb am 10.12.2019 um 15:25 in
> Nachricht
> <372db1a3-424d-4063-bcdb-ccb0b821d...@googlegroups.com>:
> > os version:
> >
> > CentOS Linux release 7.4.1708 (Core)
> >
> > kernel version:
> >
> > 3.10.0-693.el7.x86_64
> >
> >
> > systemd version:
> >
> > *systemd*-219-42.el7.x86_64
> >
> >
> > Mount iscsi devices on the node(iscsi client node) and reboot os, hangs:
> >
> > [image: WechatIMG2178.png]
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "open-iscsi" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email to open-iscsi+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/open-iscsi/372db1a3-424d-4063-bcdb-ccb0b821
> > df0b%40googlegroups.com.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/open-iscsi/5DEFAC4902A10003598D%40gwsmtp.uni-regensburg.de
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/CAGJK1Kk1LhxJHx0r9wVcfM4gjH8ypKnjHgu3Ne8cY_CcMkVhqw%40mail.gmail.com.


Antw: reboot hangs with "Reached target shutdown", who can help me?

2019-12-10 Thread Ulrich Windl
Hi!

I think the problem is more related to systemd, rather than iscsi.
Personally I hate systemd, but you don't wnat to know that...

Regards,
Ulrich

>>> can zhu  schrieb am 10.12.2019 um 15:25 in Nachricht
<372db1a3-424d-4063-bcdb-ccb0b821d...@googlegroups.com>:
> os version:
> 
> CentOS Linux release 7.4.1708 (Core)
> 
> kernel version:  
> 
> 3.10.0-693.el7.x86_64
> 
> 
> systemd version:
> 
> *systemd*-219-42.el7.x86_64
> 
> 
> Mount iscsi devices on the node(iscsi client node) and reboot os, hangs:
> 
> [image: WechatIMG2178.png]
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to open-iscsi+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/open-iscsi/372db1a3-424d-4063-bcdb-ccb0b821 
> df0b%40googlegroups.com.




-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/5DEFAC4902A10003598D%40gwsmtp.uni-regensburg.de.


reboot hangs with "Reached target shutdown", who can help me?

2019-12-10 Thread can zhu
os version:

CentOS Linux release 7.4.1708 (Core)

kernel version:  

3.10.0-693.el7.x86_64


systemd version:

*systemd*-219-42.el7.x86_64


Mount iscsi devices on the node(iscsi client node) and reboot os, hangs:

[image: WechatIMG2178.png]




-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/372db1a3-424d-4063-bcdb-ccb0b821df0b%40googlegroups.com.