LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-01-2007, 07:23 PM   #1
mort67
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
saving a raid+lvm partition on upgrade


I want to upgrade from FC4 to FC6 on all my linux boxes.
My Entertainment box as a lot of pictures, music and video on a raid 1 plus LVM partition.
The OS uses the first three partitions /boot,/,/swap on md0, md1, and md2. The fourth partition /video on md3 I would like to keep intact when I install FC6. Can I recover a software raid 1 plus LVM partition after installing the new OS on the first three partitions? During the installation of a new OS if I define the mount point /video and select "do not format" will the data be recovered and readable?
I have searched and understand raid 1 building and recovery. The LVM on top of raid 1 using xfs has me confused. Can a linux distribution figure all that out and use the files formed by and earlier release? I'm gussing I will have to redefine volume groups before they will be readable. As I recall the rationale for putting the OS on separate partitions from the data was to facilitate an upgrade or OS change while saving data. A pointer to how to actually do this would greatly be appreciated.
Thanks,
Mort
 
Old 10-01-2007, 10:04 PM   #2
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
Holy cow but you've got some difficult issues. I know that when I developed my RAID 0 config, I spent a couple months trying to find answers to RAID questions. A few people helped, but mostly I performed everything thru trial and error. I didn't have LVM, because I didn't need it, but I was amazed at my ability to wipe my drives, put them back together again, REDEFINE MY PARTITIONS, and still end up with /dev/md0 having the data I started with. (Usually, I was trying to erase my install and start over again. Occasionally I would lose it all, but often, I'd repartition and then put the partitions back and then rebuild md0 and it'd be like I didn't do anything at all.)

I don't know what FC6 is, but if it's an upgrade to FC4 then you should be alright unless the Changelogs say that RAID partitions are not backwards compatible.

If I were you, tho, I'd be breaking out DVD+RW disks and copying 4 Gigs of /video files to someplace safe!

--vonSt
 
Old 10-01-2007, 10:09 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
This page has good info on how to mount/rescue a LVM partition onto a Knoppix live CD. Obviously installing Fedora is different than using a live CD, but test it out with a live CD. If it can activate and mount the volume groups, then Fedora should be able to as well. These instructions are knoppix/Debian specific, but its CLI stuff, so it probably will work regardless of what live CD you try it with.

http://www.knoppix.net/wikinew/index.php?title=LVM2

I've mounted LVM partitions this way, but never software RAID1 too. RAID1 shouldn't be a big deal, as the data is mirrored. Even if the live CD sees it as 2 separate units, just mount the first, then remove the 2nd from the software RAID, then re-add it and it will be mirrored from the first. RAID0 would be more tricky I suspect.

Peace,
JimBass
 
Old 10-02-2007, 10:03 AM   #4
mort67
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for reply

I'll just try an os install and lrt you know what happens.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
software raid 5 + LVM and other raid questions slackman Slackware 5 05-09-2007 02:58 PM
Lvm + Raid username17 Linux - Hardware 4 02-21-2007 12:02 PM
raid-1 and lvm together?? Vasili Linux - Enterprise 7 12-04-2006 04:59 AM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 06:37 PM
lvm and raid wlfdgcrkz Linux - Software 15 05-05-2003 02:50 PM


All times are GMT -5. The time now is 05:00 AM.

Main Menu
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