v !!! POST-MIGRATION EDIT !!! v

I shrunk the LVM partition by 5000 MiB and just ran dd overnight. I had to shuffle my boot-order around a bunch to find the one partition that would boot properly but it all just works.

,

,

v !!! ORIGINAL POST !!! v

Hi! My Proxmox machine has 3 disks (see pic). I wish to migrate sdc to a 2TB SSD. I have LXCs on all drives and I would really like to avoid having to restart from backups. I don’t have any special configuration on my proxmox, it’s pretty clean and basic.

Is it safe to simply dd the old disk to the new one? I can’t find an explicit answer to this question that doesn’t also have a lot of other variables not relevant to me.

If not, what else can I do?

5 points

I’d prefer GNU’s ddrescue just because I find it more robust and has better progress output. It’s functionally the same interface but lets you use a mapfile to resume sessions should anything happen to interrupt the copy.

Arguably I’m against this because you never know what’s going to happen and the conventional wisdom for appliances like this is to just backup any important configs, backup your containers and vms, then do a fresh install from the latest install media on the new disk followed by a restore of the backups. It might take a little more time but it’s negligible and allows you an opportunity to review your current configs, make necessary changes, and ensure your backups are working as intended.

permalink
report
reply
1 point
*

The issue is that I can’t really fit all of the data somewhere else. Can I shove it onto the 4TB drive and then mount it on a new proxmox install and recover from there?

The answer was a resounding no

permalink
report
parent
reply
2 points

I think dd is the right tool for the job. Consider using pv though. It can be much much faster.

permalink
report
reply
1 point
*

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
LVM (Linux) Logical Volume Manager for filesystem mapping
LXC Linux Containers
SSD Solid State Drive mass storage

3 acronyms in this thread; the most compressed thread commented on today has 6 acronyms.

[Thread #972 for this sub, first seen 16th Sep 2024, 14:05] [FAQ] [Full list] [Contact] [Source code]

permalink
report
reply
3 points

Proxmox is just Debian. Use any partition-aware copy tool. If you have it set up for UEFI, just copy the EFI partition and all that stuff too and you should be set.

permalink
report
reply
3 points

I was in your position recently and decided to install PVE from scratch and restore VMs from backup.

I had a fairly complex PVE config so it took some additional work to get everything up and running. But it was absolutely worth it.

permalink
report
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 3.3K

    Monthly active users

  • 1.6K

    Posts

  • 14K

    Comments