You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How to re-use LVM from 4.8 in 5.4..

Author (Read 3733 times)

0 Members and 1 Guest are viewing this topic.

Re: How to re-use LVM from 4.8 in 5.4..
« Reply #5 on: April 11, 2021, 09:24:58 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@mutineering  @CP_ PDN


It is possible to set up and reuse the LVM partitions.
I use LVM on most if not all set ups at work, those being mostly RHEL, but I did set LL4.x on my laptop with LVM's.


The major benefit (at least for us) is resizing the LVMs on the fly if there is available space in the VG (volume group).
I set up my laptop this way to see if any differences (not that I really see)...


Now, in the set up LL will set up LVM for you - I chose to configure mine different and set mine up prior to install.


I don't recall right off but I know sizing was part of it - maybe used it all I wanted to resize later... etc...




As for reusing, I don't see why not. at the minimum - choose Something Else during install select the Root LVM, you want to choose to format and set as root and install...
If for whatever reason this wouldn't work (formatting), while in the Live environment manually format/setup the Root LVM then the same Something Else choosing to install...



LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to re-use LVM from 4.8 in 5.4..
« Reply #4 on: April 11, 2021, 04:40:56 AM »
 

WytWun

  • PayPal Supporter
  • Occasional Poster
  • *****
  • 99
    Posts
  • Reputation: 14
  • Linux Lite Member
    • View Profile

  • CPU: Atom z8300

  • MEMORY: 2Gb

  • VIDEO CARD: Intel integrated

  • Kernel: 5.x
I have no experience with LVM managed storage, but with regular BIOS or GPT partitions you can specify that partitions be mounted without formatting.  You need to use the "something else" (sorry, can't recall exact name of option) option at the partition stage.  The other trick is to make sure you create users in the 5.x system with the same userids as the older system so that ownerships match up.  The default "overwrite" partitioning option would only reformat the selected installation drive so if you selected one of the SSDs it wouldn't look at your LVM partitions (and they wouldn't be automatically assigned mount points either, though you could add them later by saving the /etc/fstab from the 4.8 installation and editing the partition details into your 5.4 /etc/fstab - just don't overwrite the 5.4 file with the 4.8 file!).

If it were me, I'd use the spare SSD for the 5.4 install as a dry run - just read up about grub and keep copies of the files on a USB drive so you can easily change back to the 4.8 install if needed.  Once you're comfortable with the process, you can then redo the install onto the main SSD.

 

Re: How to re-use LVM from 4.8 in 5.4..
« Reply #3 on: April 10, 2021, 09:28:27 AM »
 

mutineering

  • New to Forums
  • *
  • 2
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hi ... Did you get this done ? I am new to LL 5.4 and would like to learn more ...

No... I'm afraid not.  Other than yours I did not get any replies on this forum, and my post of the same question on stack exchange was rejected.   I have the feeling I'm outside the main intent of the LL distro by attempting this sort of thing and would be better to return to the main Ubuntu distro for 'mainstream' LVM support.

So unless there are any late replies on this from the cool folks I will go back to one of the 'core' flavors - probably Budgie.

Best Regards,

Nick
 

Re: How to re-use LVM from 4.8 in 5.4..
« Reply #2 on: April 03, 2021, 03:33:43 PM »
 

CP_ PDN

  • New to Forums
  • *
  • 7
    Posts
  • Reputation: 0
  • NewBie LL
    • View Profile

  • CPU: Dual Xeon

  • MEMORY: 24Gb

  • VIDEO CARD: NVidia

  • Kernel: 5.x
Hi ... Did you get this done ? I am new to LL 5.4 and would like to learn more ...
 

How to re-use LVM from 4.8 in 5.4..
« Reply #1 on: March 07, 2021, 08:59:12 AM »
 

mutineering

  • New to Forums
  • *
  • 2
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hi All!   I want to move to LL5.4 from LL4.8 and would like to break as little as possible in the process.

I have a 3.8TB LVM block device (Ext4, v1.0) mounted at /home, and another 1.2 TB block device at /media/backups. Current filesystem root is on a 240GB SSD.  There's a spare (unmounted) 120GB SSD available too.

1. Will the LL5.4 install recognise the existing block devices properly / safely and enable me to re-use them without me having to restore huge amounts of data from backups onto new lvm block device(s)?
2. Should I install the new LL5.4 as a dual boot on the spare 120GB SSD?  ...or can I safely install the LL5.4 on the 240GB SSD, wiping the LL4.8?
3. Could/should I consider creating an LVM 360GB SSD block device combining the two SSD's, and install on top of that?  What's the best way of doing that?

Thanks!

Nick
« Last Edit: October 12, 2021, 11:14:21 PM by firenice03 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section