LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-25-2005, 10:47 PM   #1
letrout
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
Preserving LVM data through reinstall


I have a SuSE 9.2 box that's locking up so much that I've decided it would be better to just reinstall instead of troubleshooting further. However it has a lot of non-OS data that I don't want to lose after the reinstall. This data is on LVM-managed volumes, some VGs span multiple PVs, etc. It sounds like the LVM stuff is stored in the PVs themselves, so I'm hoping that even if I wipe /, /etc, /usr and all the other system stuff I will still be able to mount the LVMs after reinstall. However I'm a little paranoid with 200GB of data at stake. Is this safe to do?
 
Old 08-26-2005, 12:02 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Yes, it is safe.

Unless you direct the installer to modify the LVM or unless you modify one of the LVM physical volumes, your stuff in the logical volumes will not be modified by the reinstallation.

And yes, the LVM is self contained and its existence is not dependent on the OS being present. The same is true for Raids set up with mdadm.
 
Old 08-26-2005, 01:22 PM   #3
letrout
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
That's great, thank you.
 
Old 08-26-2005, 01:28 PM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Of course, it’s always a good idea to backup the critical stuff, before you do something on a drive that might be “dangerous”.
 
Old 08-26-2005, 03:12 PM   #5
letrout
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Certainly. What I may do is move the drive with all the LVs (luckily they are all on one drive) to another box before I do the reinstall. This will protect the data from me doing something stupid during the reinstall, as well as allow me to access the data while I fiddle with the other machine.

Of course, if I had just moved the drive in the first place it would have proved to me that the LVM info is in the PVs themselves and obviated the need for this entire thread. Oh well.
 
Old 08-26-2005, 05:08 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
I like the idea about disconnecting the drive.

Just as a point about disconnecting the drive, I use large USB 2.0 drives to do static backups. In each case, most of the drive is formatted as an LVM2, with small NTFS and FAT32 partitions at the end. The drives move around and get plugged into different systems and they all read the LVM without any problems.

Now you understand why I am absolutely sure that the LVM is self contained.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering data from LVM Child of Wonder Linux - Hardware 5 11-12-2005 07:29 AM
Transfering 50G data via FTP and Preserving Date jjthomas Linux - General 2 09-09-2005 09:02 AM
Need to recover data from a LVM volume deyv Linux - General 13 07-25-2005 06:43 PM
Migration to Linux Software RAID while preserving existing ntfs data ceg4048 Suse/Novell 0 11-27-2004 08:11 AM
Preserving Data through FC2 Installation bezaleel Fedora 1 07-01-2004 08:25 PM


All times are GMT -5. The time now is 02:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration