this post was submitted on 16 Sep 2024
36 points (100.0% liked)

Selfhosted

40296 readers
185 users here now

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!

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] just_another_person@lemmy.world 8 points 2 months ago (3 children)

There's nothing wrong with using DD for this, but unless you're sure of the geometry of the new SSD, you may run into issues. The size of your new SSD needs to be exactly the same size or larger to fit the existing partitions of sdc since you'd be doing a block copy. Get a slightly larger drive to be safe and you'll be fine.

Honestly, DD is hard mode for this. Use a cloner that checks these things or shrinks partitions beforehand to prevent issues if you decide to go with a 2TB SSD.

[–] drkt@lemmy.dbzer0.com 1 points 2 months ago (1 children)

Couldn't I just shrink a partition myself? I could clone the LXCs to the 4TB drive and just shrink the LVM partition significantly. DD the disks, recreate the LVM on the new SSD and move em back, right?

Using a larger disk isn't an option, unfortunately. I don't have that kind of money.

[–] just_another_person@lemmy.world 7 points 2 months ago (1 children)

Yeah, you can do that as well. Just mentioning that DD isn't the simplest way to achieve what you want.

[–] drkt@lemmy.dbzer0.com 1 points 2 months ago

It might not be, but I am intimately familiar with it. It's proxmox itself that's the wildcard here. I will shrink the LVM and then DD it to the new disk.

load more comments (1 replies)