How to Preserve /home and VDO During OS Reinstallation
Objective
Perform a fresh OS installation using Anaconda while preserving:
The existing
os-homeLVM partition (mounted at/home).The VDO volume on the
nvmedisk (mounted at/path/to/vdo).All other partitions (
/boot/efi,/boot,os-root,os-swap) may be overwritten.
Steps
Boot into Anaconda Installer
Boot from installation media (USB/DVD).
Start the Anaconda installer.
Select Manual Partitioning
Choose Manual or Custom partitioning mode.
Configure Partitions
EFI System Partition (
sdx1):Reformat as
fat32.Set mount point to
/boot/efi.
/bootPartition (sdx2):Reformat as
ext4orxfs.Set mount point to
/boot.
LVM Volume Group (
sdx3):os-root: Reformat (ext4/xfs) and assign to/.os-swap: Set asswap.os-home: Do not reformat. Assign to/homeand check “Preserve data”.
VDO Volume (
nvme):If detected: Assign to
/path/to/vdowithout reformatting.If not detected: Ignore (will configure post-install).
Complete Installation
Verify partition changes before proceeding.
Confirm that only
os-homeand VDO are preserved.
Post-Installation Steps
If VDO was not configured during install:
Manually mount the VDO volume:
sudo vdo start --name=vdo-name sudo mount /dev/mapper/vdo-name /path/to/vdo
Add to
/etc/fstab:/dev/mapper/vdo-name /path/to/vdo xfs defaults,_netdev 0 0
Enable the VDO service:
sudo systemctl enable --now vdo
Important Notes
Backup data before proceeding, even when preserving
/home.Anaconda may not fully support VDO configuration. Manual setup might be required.
Ensure LVM volume group names (e.g.,
os) do not conflict with the new OS.