- 39 Posts
- 99 Comments
harsh3466@lemmy.mlto Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS3·5 days agoHappy to help!
lsblk
will give exactly the info needed. Copy the output oflsblk
and paste it into a reply and that will be perfect. Or a screenshot. Whatever’s easier for you
harsh3466@lemmy.mlto Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS1·5 days agoOkay, more details will be required, but here’s what I’m thinking will work.
One of the benefits of an LVM is its pretty easy to resize it.
The outline of what you can do is this (and we can refine the steps with more details)
Right now you’ve got your 8TB physical volume, and within that, you should have your volume group, and within that volume group, you should have one or more logical volums that are mounted for your system. The idea is to resize the existing logical volume by shrinking it, creating addition space within the volume group that can be used to create a new logical volume. Then, that new logical volume can be used to install Fedora.
Depending on how much free space you have on the entire physical volume, you could potentially dual boot Fedora and Ubuntu. Roughly speaking, the steps would look like this:
WARNING: These steps are not exhaustive because I don’t know the full details of your system. This is not meant to be a guide for you to immediately implement and follow, but to help get you down the right path DO NOT FOLLOW THESE STEPS WITHOUT FIRST FULLY UNDERSTANDING HOW THIS WILL APPLY TO YOUR UNIQUE SYSTEM SETUP.
- Download a Linux ISO of your choice. Ubuntu, Fedora, it doesn’t really matter. This one is going to be used to live boot on your server so you can make adjustments to your lvm without having the lvm mounted.
- Boot into the live usb
- Once you get to the desktop environment of the live usb dismiss any installation prompts, etc and open a terminal
- Install the logical volume tools with
sudo whatever-the-package-manager-install-command-is lvm2
- If your volume group is encrypted (typically with LUKS), you’ll need to decrypt it to make sizing changes to the lvm(s) in the volume group. You can decrypt it with:
cryptsetup open /dev/your-disk-here name-of-your-volume-group
- For example, on my system if I were doing this it would be
cryptsetup open /dev/nvme0n1p2 server
(I very creatively named my server volume groupserver
)
- Once you can access your volume group, you can use the
df
command to see how much space is free in your volume group. The full command you’ll want to run is:sudo df -h
- This command will list all mounted disks along with filesystem usage data. With this you should be able to determine how much free space you have in your volume group.
- Once you’ve determined how much free space you have, you can decide how big you want to make your new logical volume. For example, if your current usage is 6TB out of the 8TB total, you could resize the current logical volume down to 7TB, and then create a new logical volume that’s 1TB in size for the Fedora install
- You will do the resize using the
lvm2
tools installed. The command to shrink the logical volume looks like this:sudo lvreduce --resizefs --size -1TB /dev/your-volume-group/the-lvm-name
- Once you’ve shrunk the lvm, You can create your new lvm
IMPORTANT NOTES:
- If at all possible, you should really back up the data. If you don’t have any kind of backups in place, you’re risking losing all of your data, not just in doing this operation, but in general.
- If you want to dual boot, things are more complicated because of where your
/boot
exists
harsh3466@lemmy.mlto Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS3·5 days agoCan you detail the storage and is drives and mounts as well as the lvm structure? Knowing that will help people give useful advice.
harsh3466@lemmy.mlto Technology@lemmy.world•No JS, No CSS, No HTML: online "clubs" celebrate plainer websitesEnglish4·10 days agoBBSes are back!
harsh3466@lemmy.mlto Progressive Politics@lemmy.world•Why did Trump appoint so many incompetent underqualified sycophants to government positions?8·11 days agoThe answer is in the question. They’re sycophants.
And yes. Lots of us are worried about this.
Hahaha! Even tankies gotta eat! (though I’m not actually a tankie. Just happened to pick .ml when I joined Lemmy)
That is a lovely setup. I’m gonna drop that into my
bash_aliases
so much more elegant than me adding the alias for each server.
I do have the servers in
~/.ssh/config
. I just got tired of typingssh server
and wanted the be able to just typeserver
to ssh in.
Hahaha. Fucking autocorrect. Git log.
alias gl='git log' alias server-name-here='ssh server-name-here'
I have a bunch of the server aliases. I use those and gl the most.
harsh3466@lemmy.mlto Linux@lemmy.ml•I installed Openmediavault on a computer recently, what should I do next?2·13 days agoIf you do go with nextcloud, use the docker AIO (all in one) setup. It’s the officially supported method and it’s worked really well for me.
harsh3466@lemmy.mlto Linux@lemmy.ml•I installed Openmediavault on a computer recently, what should I do next?7·13 days agoI don’t use OMV, but I have a nas server I built and here is my .02
- set up an smb share in OMV for windows. Mounting that in windows should be trivial (don’t hold me. Haven’t used windows in years now, but last I used win10 smb was super easy to mount)
- look into docker on OMV for deploying stuff. I run docker on my NAS and host a bunch of stuff including:
- jellyfin for all the rips of my DVDs
- navidrome for all the rips of my CDs
- nextcloud to replace google stuff
- radicale for my calendars
- Joplin server for my notes
- mealie for recipes
- more stuff I can’t think of right now
- with docker, if you want a GUI for creating, managing and interacting with your stuff, look at Dockge and Portainer
Edit: added more stuff
harsh3466@lemmy.mlto Selfhosted@lemmy.world•how are my fellow peeps hosting your music collection these days?English2·16 days agoI’ll give ultrasonic a try. Thank you.
harsh3466@lemmy.mlto Selfhosted@lemmy.world•how are my fellow peeps hosting your music collection these days?English2·16 days agoHave you had problems on android with tempo not continuing playback?
I also run navidrome, and have tried tempo, substreamer, and another client I can’t think of, and any of the clients that stream keep stopping playback after one song when the screen is locked.
I’ve given the client all the permissions for running in the background and using battery that I can and no matter what I do, it’ll just stop after one song.
I’m on a pixel 7a with gOS.
For now I’ve settled on Poweramp with tla selection of the music on my phone since I can’t fit it all in storage. Its been really frustrating.
As a self-hoster, I love docker. It’s been an amazing deployment tool.
harsh3466@lemmy.mlto Nix / NixOS@programming.dev•Can configuration.nix be a symlink?English0·17 days agoCheck out gnu stow. Its designed exactly for this.
Edit: added link
We cook and eat the food.
Perfect. So you’ve got separate
/boot
and/boot/efi
partitions, which means dual booting will be much easier if you want to do that.The
ubuntu--vg-ubuntu-lv
is the logical volume you’ll want to resize. So now we need to see how much space is available on the volume. To get that, run the commandsudo df -h
and paste that output into a comment.From there we can figure out how much space you have and how you might want to resize the volume to prep for a new install.
What is challenging about this is that your data is under your root (
/
) mount, which is also the ubuntu os. If in the end you want to entirely remove ubuntu, it’ll be a little trickier than if your data was in a separate logical volume that you mounted into your root system during boot.For example many people have a separate logical volume for
/home
, which makes it easier to switch distros while preserving your home folder with all of your user data, config files, etc…But that’s getting a little ahead of ourselves. Start with
sudo df -h
for the filesystem usage info and we can go from there.