Re: to lvm or not lvm is my dillema
Solomon Peachy via Ale <[email protected]>
| Newsgroups | gmane.org.user-groups.ale |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jan 01, 2026 at 05:27:16PM -0500, Jeff Lightner via Ale wrote:
> I like LVM because it allows one to quickly change layouts without having to
> undo anything. One can add to an existing LV more easily than to existing
> partitions. One also doesn't run up against partition boundaries causing
> issues when a new filesystem is needed. A new LV can be added so long as
> you have space.
Only a few days ago I had the value of LVM on a single drive laptop
handily demonstrated -- I migrated the contents of a LUKS-encrypted 512G
drive to a 1TB drive, roughly doubling the sizes of all volumes in the
process, without having to go through a very time-consuming parition
realignment.
The longer version:
On xmas eve a precocious youngster knocked a beverage into my open
laptop bag. While Thinkpad Ts are tough, they aren't designed to be
partially submerbed. Magic smoke escaped. I have nightly backups of
critical stuff (/etc, /var, /home) but thankfully the old drive survived
completely unscathed.
/boot/efi (vfat) and /boot (ext4) were "classic" partitions; I doubled
their size when creating the new partitions, dumped them over. the
former was resized. Then I dumped the LVM PV over, and rebooted from the
live USB stick into the restored system. From there I grew the PV to
fill the rest of the disk, doubled the size of /'s LV, had /home use the
remaining space, and live-resized /, /boot, and /home.
From powering on the new system to being right where I left off took
less than an hour, including data transfer -- dd sustained 1.1GB/s,
limited by the NVMe<>USB dongle I was using. That broke my brain a
bit...
- Solomon
--
Solomon Peachy pizza at shaftnet dot org (email&xmpp)
@pizza:shaftnet dot org (matrix)
Dowling Park, FL speachy (libera.chat)
_______________________________________________
Ale mailing list
[email protected]
https://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmlX3wYACgkQrGLLO/XV ulGQkg/9Hovn0IILzPWF/bUZgEQTzRrxGAiSIBOmeckQVDzmTxlJ4gOLKNJDKt+T BBIXRGHfxC2hZEQk1h3Wpoi7NDYewRfNAJocpvkG0x1skf02TRav6HUerbUDUwU/ 47RrJ/ZriowuLZa9TRjXV2mFQc86uHRIqDVy1xUtqIzGqP0Eu2QamHUmg1K8TuIm LeLY6jrxAOwoDsdWALmYUsasP6oqXktcOZWJe8dUlk/4JhikRCaeIhLNSR6p5Da+ omGYh+sGtP2K0hBilxv97Vh7OZ60N1o/RzQTqC6fmn2H3Brlp3ga98v4dkqfotii i86jQpf806U7hzcDmm0aoi/2oUIjYlVc3gDf9KV98U7kOQxKLUA9H7M9oLPt6zy8 r+z7ZJqrWJuDc8K0PELP+ZZpUWm1DpQyYjeoXmYUpKL+r9byVPWyPMNZS9NMBNPm 6EloaKBe6FDsGXoeejgbbRpMFXW5o4jw3HyGAECZXuxGvWf6TvO3OVNFY/uYvAz6 Jo3UT/phnehItFQAT/IOfRet4r7gX8uRXSRddCSDBqmTTa6UY8YrtJXMbI+wpJEo ueWD3lo29MhEV+0l34SwHIeoCtu9t40Wj9yBT7KHTYsi4mpD4q3AsC+/rllUR7rw VOmUvQ9o/1pvpys7C5OFOgw+Gbb+6QYN/Sz7B50Szl1CzKSwq9k= =sV+f -----END PGP SIGNATURE-----