this post was submitted on 17 Jul 2023
17 points (100.0% liked)

Linux

48115 readers
661 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 5 years ago
MODERATORS
 

Hello all, I'm having some network problems on my server (Ubuntu Lunar Lobster Server Edition), namely my plex port is no longer reachable from outside the network despite it being port forwarded and allowed through ufw. A few days ago I used airvpn's eddie gui program, and it completely wrecked my network. Caused it to be completely cut off from internet when disabled, even with the killswitch function off.

I rolled back to a snapshot I'd made earlier using snapper and grub-btrfs and thought the problem was solved. But while I regained the ability to access the internet, it still seems to have messed something up. I can't seem to get my kernel upgraded. I have 6.2.0-25 installed, but I can only boot into 6.2.0-24, even when I apt removed the older kernel. I believe this is what is causing my networking issues, though even if it's not I'd need a solution so as to be able to keep my kernel updated.

I'm at a bit of a loss at this point and am wondering if I've dug myself in too deep with grub-btrfs. I'm contemplating getting a fresh image on there and sticking to manual use of snapper.

Any help would be much appreciated, thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] slowbyrne@beehaw.org 4 points 1 year ago (6 children)

Did you setup this server with a boot partition?

Rolling back the root subvolume with an older kernel could create a mismatch to the boot partitions kernel. Not sure if that's contributing to your problem, but might be worth looking into.

[–] luckless@beehaw.org 1 points 1 year ago (5 children)

Yes, I have a separate boot partition. How would I fix a mismatch? The only posible solution I've found is to directly edit the grub entries, but that's a bit beyond what I've done with grub before. Thanks for the response!

[–] slowbyrne@beehaw.org 1 points 1 year ago (4 children)

Only thing I can think of is the subvolumes left over might be causing an issue. I don't know how snapper performs a rollback and I've seen a couple ways to do it. Sometimes its modifying the default subvolume to the snapshot you want to rollback to. This is fine IF your kernel params are NOT specifying the subvol. That would look like this rootflags=subvol=subvolume_name.

Usually I just rename the subvols and make sure the snapshot I'm renaming to replace the current root subvol is not set to read only.

So rename current root to root.broken Then rename snapshot to root Then set readonly prop to false.

[–] luckless@beehaw.org 1 points 1 year ago

I think you've hit the nail on the head. The way grub-btrfs works is by changing the default root snapshot subvolume. I'm still not sure what I did wrong to get the rollback stuck to the particular kernel. But I'll give what you've written here a try. Thanks again.

load more comments (3 replies)
load more comments (3 replies)
load more comments (3 replies)