#Correctly migrate var to a new drive?

17 messages · Page 1 of 1 (latest)

graceful sphinx
#

How do I correctly migrate my var partition (or whole lvm pv) to a new (and larger) drive?
Asking here because other posts on the internet already showed me how to move the pv itself over, however it got stuck at a prompt saying "Cannot access console, root user is locked" after a what seems like having successfully moved the pv, and seeing the Vanilla boot logo on screen for a while.

low dust
#

(related question, not an answer, sorry, but how to properly backup an entire VOS installation to be able to recover from a disaster?)

graceful sphinx
ivory steeple
ivory steeple
#

You can probably also add a new pv to the vg, and then somehow remove the old pv, but I don't know how to from the top of my head.

#

(The partition doesn't have to be inside an lvm btw)

graceful sphinx
#

Yeah I did everything on the Vanilla live iso. Here's, in essence, what I did:
I installed Vanilla on the new drive, creating the boot master, efi, vso-root and a vso-var*. Then I resolved the duplicate labels, got rid of the var partition of the new vso-var, merged both vso-var's into the same group using vgmerge and moved the data via pvmove. Then used vgsplit to split off the old drive.
And that is how I got to the point where I get the "Cannot access console, root user is locked" in emergency mode.
*It's not possible to install Vanilla while lvms with the same labels exist as the hardcoded ones Vanilla uses exist. I just took the old drive out lol

graceful sphinx
graceful sphinx
graceful sphinx
#

At this point the "Cannot access console, root user is locked" is the only issue I have no clue how to resolve. (So for now I just mounted var and copied everything out with cp)

ivory steeple
ivory steeple
ivory steeple
graceful sphinx
ivory steeple
#

(and warn you about it)