this post was submitted on 05 Jun 2025
41 points (97.7% liked)

Linux

55468 readers
887 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

I've had two server oses here: alma linux and debian(currently). On both of them, they will hang when I shut them down from cockpit, and they hang at the end of the shutdown.

Also, it takes an hour to a day to have this issue start. if it's restarted two times in a row quickly, it works perfectly fine for some reason.

What I've tried:

  • setting "acpi=off" and "acpi=force" kernel parameters in grub
  • removing my nvidia gpu(i was using nouveau drivers)
  • changing distros

nothing worked. here are some things that both distros had in common with eachother:

  • systemd
  • cockpit
  • libvirt & qemu
  • docker

does anyone have advice? nothing i've seen online has worked. thank you for suggestions

top 50 comments
sorted by: hot top controversial new old
[–] catloaf@lemm.ee 6 points 2 weeks ago (1 children)

Hardware? Do they shut down properly if you do it from the console or ssh?

[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago (1 children)

I will try to restart it using the reboot command.

The computer consists of:

  • i3-10100
  • 16gb ddr4 ram
  • MSI h410m pro
[–] catloaf@lemm.ee 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Interesting. BIOS update? Maybe check through all the settings, or do a factory reset on the BIOS? I have a similar board (H510 something) running proxmox and it works fine.

[–] potentiallynotfelix@lemmy.fish 3 points 2 weeks ago* (last edited 2 weeks ago)

I would like to note that this may have been caused by a bios update, as it started sometime after it. i'll try another update now.

edit: already on the latest bios version.

[–] nanook@friendica.eskimo.com 4 points 2 weeks ago (1 children)

@potentiallynotfelix As a diagnostic, I would suggest trying shutting them down by ssh in and then using systemctl to shut them down, if that works then you know the issue is with cockpit. If it hangs even when systemd is asked to halt then I would consider reverting to the previous bios and see if the problem persists.

[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago (7 children)

Ok. Cockpit uses the shutdown command to shut down[src], but systemctl poweroff might work. I will also attempt to revert bioses if msi supports it. thank you very much!

load more comments (7 replies)
[–] CameronDev@programming.dev 3 points 2 weeks ago (2 children)

Is it actual server hardware? I've seen some very weird things with real servers that take ages to reboot (I was assuming it was self checking or something). Are you sure its hung, and not just very slow to shutdown/reboot?

Is there any serial/monitor output before the hang?

[–] potentiallynotfelix@lemmy.fish 9 points 2 weeks ago (5 children)

Monitor output after shutting down:

I've given it 6 hours or so to shut down, so it's almost 100% a hang not a slow shutdown

[–] AnEilifintChorcra@sopuli.xyz 5 points 2 weeks ago (2 children)

I had this issue: failed to finalise remaining DM devices. Which led me to here https://github.com/systemd/systemd/issues/15004 and Skinner927 mentions your issue in that thread

I'd try uninstalling nouveau completely and see if the issue persists for you

[–] potentiallynotfelix@lemmy.fish 3 points 2 weeks ago (2 children)

The xserver-xorg-video-nouveau package was not installed, how else would I remove nouveau?

[–] AnEilifintChorcra@sopuli.xyz 2 points 2 weeks ago (1 children)

I don't have an Nvidia GPU so I don't have any experience with it but a quick search brought me to Nvidias website and the instructions seem to line up with users answers on other forums.

Disable it here https://docs.nvidia.com/ai-enterprise/deployment/vmware/latest/nouveau.html or apparently installing Nvidias proprietary drivers automatically blacklists Nouveau.

[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago* (last edited 2 weeks ago)

lsmod | grep nouveau returns nothing, so I assume removing my gpu automatically stopped it from being loaded. that sorta rules out nouveau as an issue.

[–] ReversalHatchery@beehaw.org 2 points 2 weeks ago (1 children)

that's only the X11 "driver" for it. nouveau is built into the kernel, the way to "uninstall" it is to make it not get loaded, by blacklisting it

https://wiki.archlinux.org/title/Nouveau

but this does not seem to be the problem

[–] potentiallynotfelix@lemmy.fish 1 points 2 weeks ago

Agreed, lsmod | grep nouveau returns nothing, so I'm not concerned about nouveau or nvidia being the issue here.

[–] Aradia@lemmy.ml 3 points 2 weeks ago (1 children)

seems its a nvidia issue, i also have that issue, the gpu locks and i need to reboot while the VM with the nvidia passthrough freezes. i need a full reboot from baremetal machine to stop gpu using all his power stuck, don't let it be for hours being on or you will kill your hardware

[–] potentiallynotfelix@lemmy.fish 3 points 2 weeks ago (1 children)

I have removed my gpu and the issue is still present.

[–] Aradia@lemmy.ml 1 points 2 weeks ago (1 children)

yes sorry I read you after writting it, if you remove the GPU the log message is the same but without the GPU lockup line?

[–] potentiallynotfelix@lemmy.fish 2 points 1 week ago (1 children)

hi, a bios version revert solved the issue. thank you for the help!

[–] Aradia@lemmy.ml 2 points 6 days ago

Perfect! Thanks for the feedback, good to know BIOS could solve hardware issues also. Weird to see you needed to reverd to fix the problems.

[–] truthfultemporarily@feddit.org 2 points 2 weeks ago (7 children)

Yeah that seems like a mainboard issue.

load more comments (7 replies)
[–] ReversalHatchery@beehaw.org 1 points 2 weeks ago (1 children)

do you know that use device mapper? what kind of device is /dev/dm-1 ?

"dmsetup info" might help

[–] potentiallynotfelix@lemmy.fish 1 points 2 weeks ago (1 children)

sudo dmsetup info returns:

Name:              raven--vg-root
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 0
Number of targets: 1
UUID: LVM-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Name:              raven--vg-swap_1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        2
Event number:      0
Major, minor:      254, 1
Number of targets: 1
UUID: LVM-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[–] ReversalHatchery@beehaw.org 1 points 2 weeks ago (1 children)

did you make these yourself? if not, could you cdo an ls -l /dev/mapper? it shows which name corresponds to which dm device

Hi, thanks for your help! I fixed this with a bios update.

[–] BCsven@lemmy.ca 1 points 2 weeks ago (1 children)

Says reboot, are you issuing a reboot or a shutdown poweroff? Entering sleep state 5 shout be power off right?

[–] potentiallynotfelix@lemmy.fish 1 points 2 weeks ago (1 children)

I click the reboot button on cockpit, which issues a shutdown --reboot command as root. I agree that sleep state S5 is powered off. From the acpi docs:

A computer state where the computer consumes a minimal amount of power. No user mode or system mode code is run. This state requires a large latency in order to return to the Working state. The system’s context will not be preserved by the hardware. The system must be restarted to return to the Working state. It is not safe to disassemble the machine in this state.

This likely means my system is failing to reach that s5/g2 state.

[–] BCsven@lemmy.ca 3 points 2 weeks ago (1 children)

If you ssh login directly and issue same command, not In cockpit interface, does it react the same?

hi, a bios revert fixed this issue. thank you for helping!

[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago

no, sorry for not specifying. it's scrapped together from old consumer components.

  • i3-10100
  • 16gb ddr4 ram
  • MSI h410m pro
[–] FauxLiving@lemmy.world 2 points 2 weeks ago (1 children)

reboot: machine restart

This makes me think it's a motherboard issue.

The system is done with its shutdown process and issued the reboot command, but the motherboard didn't restart.

There could be some electronics components which get wedged over time. My sound card will occasionally not boot unless it has been completely powered off for 30 seconds or so.

[–] potentiallynotfelix@lemmy.fish 2 points 1 week ago (1 children)

a bios update revert fixed this. you were correct that it was mobo related.

[–] FauxLiving@lemmy.world 2 points 1 week ago

That's great, it beats having to buy new hardware!

[–] undrwater@lemmy.world 1 points 2 weeks ago (1 children)
[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago (1 children)

thanks for the suggestion, could you elaborate on what this would do differently from the regular shutdown command that systemctl uses? thanks again

[–] undrwater@lemmy.world 2 points 2 weeks ago (1 children)

My understanding is that 'halt' had been an alias for 'halt -p', but that changed recently. -p tells the command to power off. Without it, it just shuts down process.

[–] potentiallynotfelix@lemmy.fish 2 points 2 weeks ago

halt -p did nothing different. still hung on shutdown.

load more comments
view more: next ›