Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3200

General Questions • [Software] backup before dist-upgrade lvm low disk space drive

$
0
0
Hello, I would like to "sudo apt-get dist-upgrade" from an oldstable (in my case Deb.11) to a stable.
System drive is EXT4 LVM, LUKS encryption.

Code:

   56.1 GiB [##########] /home                                                                                                                                                                                                                 11.1 GiB [#         ] /usr   10.9 GiB [#         ] /samba.   4.6 GiB [          ] /var    4.0 GiB [          ]  swap    3.3 GiB [          ] /opt
93G used and 11G free. Though I can free up at least +10GB without problem (/samba directory).
Please which commands are needed to backup/snapshot the data that would be needed to restore applications/system to the state before "sudo apt-get dist-upgrade"?

https://wiki.debian.org/XTaran/DistUpgradeWorkFlow is using lvcreate, but it fails if i set the size above around 900MB as shown in the comment below:

ChatGPT suggested steps:

Code:

sudo lvcreate -s -n root_snapshot -L 5G /dev/mapper/host--vg-root # this command fails: vg has insufficient free space (245 extents): 1280 requiredsudo apt update && sudo apt dist-upgrade# restoration if it fails:sudo umount /sudo lvremove /dev/mapper/host--vg-rootsudo lvrename /dev/mapper/host--vg-root /dev/mapper/host--vg-root.oldsudo lvcreate -n root -L <original_size> <origin_volume> # Adjust for your original volume
So is there any more universal commands to snapshot/restore, considering free space on the system drive or utilizing external mountpoint for it? So I basically know what to execute before and after(in case of a failure).

I am already backing up my /home and /etc using Back-In-Time GUI app. I would like to avoid clean OS installation and complicated steps like live bootable media, grub if possible. Thank you

Statistics: Posted by postcd — 2024-08-20 13:58 — Replies 0 — Views 18



Viewing all articles
Browse latest Browse all 3200

Trending Articles