LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-14-2012, 05:58 AM   #1
dgibbs
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
LVM from Fedora to ClearOS


Hello All,

I hope you can help. I have a problem with LVM.

I have reinstalled my server with ClearOS from Fedora 17 as I felt that Fedora wasn't right for my needs.

Anyway the installation went well but I am having an issue with my LVM partition that was on the previous install.

I have 3 disks:
80GB - OS disk
2TB - Files disk
2TB - Files disk


[root@fileserver ~]# pvscan
PV /dev/sda2 VG vg_fileserver lvm2 [74.04 GiB / 0 free]
PV /dev/sdb1 lvm2 [1.82 TiB]
PV /dev/sdc1 lvm2 [1.82 TiB]
Total: 3 [3.71 TiB] / in use: 1 [74.04 GiB] / in no VG: 2 [3.64 TiB]

/dev/sdb1 and /dev/sdc1 were part of the same LVM but the Volume group name is missing.

I'm guessing that you need to recreate the volume group with vgcreate however I am worried that I this might delete the files already on there. Does anyone know how to recreate the LVM without losing the data on the disk? I have done some reading on this however haven't found the solution. Your help would be much appreciated. Thank you
 
Old 09-14-2012, 11:06 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Are we to assume you reformatted the OS disk without first saving the /etc/lvm/backup ?.
Try this to get the vg and lvs back as-is
Code:
vgchange -ay
 
Old 09-15-2012, 07:19 AM   #3
dgibbs
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hasn't worked.Looks like it may be completely messed up. I'm attempting to use testdisk to get files back. But is not looking promising. Luckily I use crashplan so most of the important stuff should be backed up. I think I have learnt the hard way on this one. At least I know that LVM is not as simple to transfer to another server like standard partitions.
 
Old 09-15-2012, 05:01 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
here is an article I've referred people to before, and gives a good idea of what LVM needs to work. Might give you some ideas.
I'm not a huge fan of LVM, but I wouldn't expect just mangling the OS to cause you to lose data is a separate LVM.
 
  


Reply



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
RAID + LVM + ClearOS baiki Linux - Server 3 08-14-2012 06:27 AM
clearos help ratzim Linux - Newbie 2 01-25-2011 11:21 AM
LXer: Foresight and Fedora, ClarkConnect Becomes ClearOS LXer Syndicated Linux News 0 08-27-2009 04:00 PM
Unable to mount LVM partition of Fedora 4 in Fedora 6 sahi10 Linux - Newbie 2 05-04-2008 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration