You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
How to re-use LVM from 4.8 in 5.4..

Author (Read 1977 times)

0 Members and 2 Guests are viewing this topic.

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

mutineering

  • New to Forums
  • *
  • 2
    Posts
  • Country: gb
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.8 64bit
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
 


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

CP_ PDN

  • New to Forums
  • *
  • 7
    Posts
  • Country: 00
  • Reputation: 0
  • NewBie LL

  • Linux Lite: 5.4 64bit

  • 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 ...
 

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

mutineering

  • New to Forums
  • *
  • 2
    Posts
  • Country: gb
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.8 64bit
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 #3 on: April 11, 2021, 04:40:56 AM »
 

WytWun

  • PayPal Supporter
  • Occasional Poster
  • *****
  • 70
    Posts
  • Country: au
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: J3455
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 #4 on: April 11, 2021, 09:24:58 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1617
    Posts
  • Country: us
  • Reputation: 272
  • Linux Lite Member

  • Linux Lite: 5.6 64bit

  • 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.6 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.6 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 


Tags: lvm install 
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements