first commit
This commit is contained in:
parent
8b1cc8d94e
commit
17e7cb96fa
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>The web site of toastty</title>
|
||||||
|
<!-- The style.css file allows you to change the look of your web pages.
|
||||||
|
If you include the next line in all your web pages, they will all share the same look.
|
||||||
|
This makes it easier to make new pages for your site. -->
|
||||||
|
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to my Patate!</h1>
|
||||||
|
|
||||||
|
<p>Patate: <a href="https://neocities.org">Neocities</a>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>To learn more HTML/CSS, check out these <a href="https://neocities.org/tutorials">tutorials</a>!</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,211 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Server Issue Avril 2026</title>
|
||||||
|
</head>
|
||||||
|
<body style="font-size: 20px;">
|
||||||
|
|
||||||
|
<h1>Table of Contents</h1>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#Theproblem">The problem</a></li>
|
||||||
|
<li><a href="#Thefix">The fix</a></li>
|
||||||
|
<li><a href="#Conclusion">Conclusion</a></li>
|
||||||
|
<li><a href="#OtherPotentialFixes">Other potential fixes</a></li>
|
||||||
|
<li><a href="#References">References</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>After a power outage at the hosting location (3ti), the server wouldnt boot. <br>
|
||||||
|
Connected remotely to a computer located at the hosting provider, connected to IPMI/iDRAC then used virtual console to see what was being displayed on the server.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h1 id="Theproblem"><font color="Blue">The problem:</font></h1>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p>Error was:</p><br>
|
||||||
|
<pre>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
Time out for waiting the udev queue being empty.
|
||||||
|
Time out for waiting the udev queue being empty.
|
||||||
|
Gave up waiting for root file system device. Common problems:
|
||||||
|
- Boot args (cat /proc/cmdline)
|
||||||
|
- Check rootdelay= (did the system wait long enough?)
|
||||||
|
- Missing modules (cat /proc/modules; ls /dev)
|
||||||
|
ALERT! /dev/mapper/pve-root does not exist. Dropping to a shell!
|
||||||
|
|
||||||
|
|
||||||
|
BusyBox v1.35.0 (Debian 1:1.13.0-4+b7) built-in shell (ash)
|
||||||
|
Enter help for a list of built-in commands.
|
||||||
|
|
||||||
|
(initramfs)_
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This built-in shell lacks required tools to perform basic diagnostics let alone any rescue operations, but ls /dev wouldnt list the hard drives.<br><br>
|
||||||
|
I went on to check the DRAC/Perc/BIOS configuration to see if the drives we working, they did. The RAID and virtual disks are all healthy so there is probably no hardware failure.
|
||||||
|
When rebooting GRUB does load (until it fails with the aforementionned message), so the drives HAVE to be working... right...?<br><br>
|
||||||
|
A search for /dev/mapper/pve-root does not exist proxmox shows this is a common issue and there are a few ways people have fixed them:
|
||||||
|
<ol>
|
||||||
|
<li>Use a different kernel. When updating the kernel Proxmox keeps older kernel versions and they can be accessed by selecting the Advanced options for Proxmox Virtual Environment GNU/Linux boot option in GRUB
|
||||||
|
<ol type="a">
|
||||||
|
<li><a href="https://old.reddit.com/r/homelab/comments/1cetljo/i_need_help_devmapperpveroot_does_not_exist/">https://old.reddit.com/r/homelab/comments/1cetljo/i_need_help_devmapperpveroot_does_not_exist/</a></li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li>Use Chroot to perform a rescue operation on the Linux installation. Including installing a new kernel if the Proxmox doesnt have other installed kernels.
|
||||||
|
<ol type="a">
|
||||||
|
<li><a href="https://forum.proxmox.com/threads/alert-dev-mapper-pve-root-does-not-exist.148029/">https://forum.proxmox.com/threads/alert-dev-mapper-pve-root-does-not-exist.148029/</a></li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li>Add rootdelay=10 to GRUB
|
||||||
|
<ol type="a">
|
||||||
|
<li><a href="https://forum.proxmox.com/threads/solved-i-need-help-dev-mapper-pve-root-does-not-exist.116967/">https://forum.proxmox.com/threads/solved-i-need-help-dev-mapper-pve-root-does-not-exist.116967/</a></li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li>Adding GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt" or quiet intel_iommu=off intremap=off to GRUB</li>
|
||||||
|
</ol><br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
I tried <font color="purple"><b>option 3</b></font> by adding it directly in the GRUB selection menu to no avail, it didnt change anything. I assumed <font color="purple"><b>option 4</b></font> didnt have anything to do with my issue and wasnt even worth a try.
|
||||||
|
<font color="purple"><b>Option 1</b></font> did not help either. I couldnt see an older kernel in the advanced option. Either the system didnt update or it didnt keep the previous kernel version for me to boot on.<br>
|
||||||
|
|
||||||
|
I then went on to try and boot from an Ubuntu desktop live USB drive. But even from there I couldnt see the hard drive listed in /dev, or in lsblk or lshw, etc. At least I now had access to better tools that initramfs was giving me that I could use to perform a better diagnosis.
|
||||||
|
<ol>
|
||||||
|
<li><b>dmesg -T | tail -n 200</b> (look for PCIe, SAS, SATA, NVMe, link resets)</li>
|
||||||
|
<li><b>lsblk -e7 -o NAME,TYPE,SIZE,MODEL,SERIAL,TRAN,HCTL</b> (see what the kernel created)</li>
|
||||||
|
<li><b>lspci -nn | egrep -i 'sas|raid|sata|nvme|scsi'</b> (confirm the controller exists)</b></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
As I was getting desperate, I was basically trying anything I could find only, I eventually saw "megaraid_sas 0000:01:00.0" in <b>journalctl -k -b|egrep -i mpt3sas|megaraid|ahci|nvme|reset|timout|aer</b>.
|
||||||
|
The RAID card I use is a Dell PERC h310 so where is that megaraid device coming from? It also has log entries saying reset/timeout, bingo, I thought, this has to be the issue it times out???
|
||||||
|
Now <b>lspci</b> does find something if I filter for megaraid (or <b>lspci -k -s 01:00.0</b>) instead of trying to find Dell or PERC.
|
||||||
|
There were also some messages in <b> dmesg -T | egrep -I ahci|ata|SATA: SATA (1 to 5) link down (SStatus 0 SControl 300)</b>. I assumed this was related to the timeout with the megaraid card as it is a SAS/SATA compatible RAID device and my drives are all SATA.
|
||||||
|
I tried changing the drives to RAID from AHCI in the server BIOS configuration even though it didnt make sense, no changes were made prior to the server stopping working anyway. Again, the fact that I could get to GRUB meant the system sees the disks to GRUB/OS being loaded. Not seeing the disks even in the Ubuntu live I took it that it meant that it was probably a type of driver issue, not a hardware problem. I began looking for a different PERC card that might be using a different driver like an H710 hoping that the new card would be seen properly by the OS and that the RAID configuration would transfer over to the new card.<br>
|
||||||
|
|
||||||
|
Both Ubuntu and Promox couldn't see the drives/card I figured maybe the issue is related to Debian based OS so instead of booting from a Ubuntu live usb thumb drive I made a new one with Arch instead and could then see the drives now! I felt such a relief, I really didn't want to have to rebuild the server/VMs. I would have also lost my Matrix/Synapse chat history, my girlfriend and I replaced SMS/RCS/instant messaging with this over the last few months.<br>
|
||||||
|
But what do I do now? I had a few choices, I could extract the VMs, reinstall Proxmox and restore them, at least I could have my stuff back but how do I make sure I don't run in the same issue again (EDIT: the issue what with a commit in the linux kernel and should be fixed now)? I could get a new server or get a different RAID card and hope it works.
|
||||||
|
|
||||||
|
<font color="purple"><b>Option 2</b></font> from the forum posts is intriguing but wtf is a "chroot"?
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h1 id="Thefix"><font color="Blue">The Fix</font></h1>
|
||||||
|
|
||||||
|
<h3><a href="https://en.wikipedia.org/wiki/Chroot">chroot</a></h3>
|
||||||
|
<p>
|
||||||
|
According to Wikipedia chroot is "a shell command and a system call on Unix and Unix-like operating systems that changes the apparent root directory for the current running process and its children."<br> The whole article is very small and worth a read IMO. The history is fascinating, I remember reading an article in a French magazine at the time (I wonder if it's the same article mentionned in the Wikipedia apge) and couldn't understand how to make that work on a Windows server (silly me, I was young and naive 😂)
|
||||||
|
"Changes the apparent root directory" this is some powerful system repair stuff, how did I not know about this before?!<br><br>
|
||||||
|
|
||||||
|
|
||||||
|
Someone in the Proxmox forum posted this chroot tutorial from the SUSE linux KB: <a href="https://support.scc.suse.com/s/kb/How-to-Chroot-in-Rescue-Mode?language=en_US">https://support.scc.suse.com/s/kb/How-to-Chroot-in-Rescue-Mode?language=en_US</a><br>
|
||||||
|
|
||||||
|
|
||||||
|
You basically need to mount the drive to a mount point and then "chroot" to it, simple enough.<br>
|
||||||
|
I couldn't make the for-loop work but it's only 4-5 commands so I mounted the four folders manually by running:
|
||||||
|
|
||||||
|
<code>
|
||||||
|
<b>
|
||||||
|
<pre>
|
||||||
|
<hr>
|
||||||
|
mount --rbind /proc /mnt/proc
|
||||||
|
mount --rbind /sys mnt/sys
|
||||||
|
mount --rbind /dev /mnt/dev
|
||||||
|
mount --rbind /run /mnt/run
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
</pre>
|
||||||
|
</b>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
I can't remember what was the disc name in Arch live, I believe it was sda1 through sda4 or sda5 so the above commands were actually something like: <b>mount --rbind /dev/sda2/proc /mnt/proc</b>.
|
||||||
|
|
||||||
|
Then chroot to the mounted broken install: <b>chroot /mnt</b> then <b>mount -a</b> to mount other partitions that might be needed.
|
||||||
|
Once in chroot, I checked which kernel I could try, the <a href="https://forum.proxmox.com/threads/opt-in-linux-6-14-kernel-for-proxmox-ve-8-available-on-test-no-subscription.164497/">official documentation</a> says <a href="https://pve.proxmox.com/wiki/Proxmox_VE_Kernel">6.14 is available as an option</a>.<br>
|
||||||
|
Using <a href="https://ostechnix.com/proxmox-ve-8-linux-6-14-kernel-opt-in/">this procedure</a> I installed the 6.14 kernel by adding an entry to the repository list.
|
||||||
|
|
||||||
|
<code>
|
||||||
|
<b>
|
||||||
|
<pre>
|
||||||
|
<hr>
|
||||||
|
sudo nano /etc/apt/sources.list.d/pve-install-repo.list
|
||||||
|
deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install proxmox-kernel-6.14
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
</pre>
|
||||||
|
</b>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
The server boots fine after installing the 6.14 kernel and selecting it manually at boot. The comments said you could force a default kernel for Proxmox to boot to with the Proxmox-boot-tool kernel pin command.<br><br>
|
||||||
|
|
||||||
|
Running <b>proxmox-boot-tool kernel list</b> command gives the following results:
|
||||||
|
|
||||||
|
<code>
|
||||||
|
<b>
|
||||||
|
<pre>
|
||||||
|
<hr>
|
||||||
|
Manually selected kernels:
|
||||||
|
None.
|
||||||
|
|
||||||
|
Automatically selected kernels:
|
||||||
|
6.14.11-8-bpo12-pve
|
||||||
|
6.8.12-23-pve
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
</pre>
|
||||||
|
</b>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
Running <b>proxmox-boot-tool kernel pin 6.14.11-8-bpo12-pve</b> outputs:
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
E: no kernel image found in /boot for '6.14.11-8-bpo12-pve', not setting default.
|
||||||
|
|
||||||
|
Possible Proxmox kernel versions are:
|
||||||
|
6.14.11-8-bpo12-pve
|
||||||
|
6.8.12-23-pve
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Assuming the Automatically selected kernels from kernel list means the new kernels are already pinned.
|
||||||
|
|
||||||
|
uname -r gives 6.8.12-23-pve which is good enough for me for now. I would like to make sure the kernel updates arent done without approval though, so I still need to figure out how to do that.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h1 id="Conclusion"><font color="Blue">Conclusion</font></h1>
|
||||||
|
|
||||||
|
<h1 id="OtherPotentialFixes"><font color="Blue">Other potential fixes</font></h1>
|
||||||
|
|
||||||
|
<h1 id="References"><Font color="Blue">References</Font></h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>The web site of Toastty</title>
|
||||||
|
<!-- The style.css file allows you to change the look of your web pages.
|
||||||
|
If you include the next line in all your web pages, they will all share the same look.
|
||||||
|
This makes it easier to make new pages for your site. -->
|
||||||
|
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to my WebsiteTest!</h1>
|
||||||
|
|
||||||
|
<p>I recently had an issue with one of my home servers and made a write up of what happened: <a href="https://toastty.neocities.org/ServerIssueManual">Link</a>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>Here's how you can make <strong>bold</strong> and <em>italic</em> text.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Not Found</title>
|
||||||
|
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Page Not Found</h1>
|
||||||
|
<p>The requested page was not found.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
|
||||||
|
HTML content. To learn how to do something, just try searching Google for questions like
|
||||||
|
"how to change link color." */
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
font-family: Verdana;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue