Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th December 2009, 10:08 AM
yu xintian Offline
Registered User
 
Join Date: Oct 2009
Posts: 51
linuxfedorafirefox
Question Building RAID1 on Fedora 11: can it be possible when it has LVM system?

Hi, all ! I have a Fedora 11 on my server . It has already been running for a month . I want to have RAID 1 on this server.But it has LVM on it ,so I can not be sure if I will lose some data as I want to use the second hard disk as a backup disk .Here is some details of my server:
fdisk -l
Code:
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ac83c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        9726    77919263+  8e  Linux LVM

Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00003fed

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        9726    78124063+  8e  Linux LVM

Disk /dev/dm-0: 157.6 GB, 157672275968 bytes
255 heads, 63 sectors/track, 19169 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
df -h

Code:
dev/mapper/vg_shenzhem-lv_root
                      145G   28G  116G  19% /
/dev/sda1             194M   30M  155M  16% /boot
tmpfs                 498M  112K  498M   1% /dev/shm
I think I need to disable LVM first ,but some of the files maybe can not be mount .I followed it like this:
http://www.howtoforge.com/set-up-rai...system-fedora8
But this gentleman just copy data from sda to sdb , I cannot do that,I think it will overwrite some data on sdb. Does anybody have any idea about this?
I think I should be careful .I need to fully know the result before I take the next step.The data in the server is really inportant.
Any advice is welcome.
Thank you !

Last edited by yu xintian; 7th December 2009 at 10:17 AM.
Reply With Quote
  #2  
Old 7th December 2009, 01:28 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
linuxfedorafirefox
In that link, to me, it looks like the author re-invented the lvconvert command manually, then delt with the boot, and finally changed the dual LVM back to md hardware (probably fakeraid) raid1 with only 1 LVM on top, which is the desired metod for having raid 1 redunducy and LVM flexablity.

SO to answer your question with a question (because I do not have any raid to experiment with),
Do you have hardware raid, and can you change the setting (bios setup?) to raid 1 for an exiting single drive?

If not you can use lvconvert to make LVM raid 1, but it is really not the same, has several options and configurations, and needs spare (hot) LE's/PE's on demand for replacing a mirror side. Plus it would do noting for /boot.

See man lvconvert
man lvcreate (--mirrors 1 --corelog --mirrorlog[disk : core])

I'm looking at man for F13 so F11 may be different.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 10th December 2009, 07:44 AM
yu xintian Offline
Registered User
 
Join Date: Oct 2009
Posts: 51
linuxfedorafirefox
Well ,SlowJet. That Guide in www.howtoforge.org does not work for me .I failed ,and need to reinstall the system. What a bad luck !!!!!
Reply With Quote
Reply

Tags
building, fedora, lvm, raid1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a system with KDE and GNOME computerwhiz1 Using Fedora 1 10th October 2009 02:37 AM
building new system will this work brash Hardware & Laptops 1 12th February 2008 12:40 AM
New issues building RAID0 , RAID1 grajea01 Using Fedora 1 6th November 2006 05:39 AM
Building a new system for FC3..few questions Flak Pyro Using Fedora 1 17th March 2005 02:49 AM
Building new AMD 64 System spatemp Using Fedora 1 26th February 2005 08:52 PM


Current GMT-time: 21:12 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat