LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-17-2008, 06:55 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Rep: Reputation: 15
MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped


Hi guys,

I created two LVM partitions, say LV1 and LV2.
I formatted using mkfs.ext3 and copied some files to say LV1. Everything worked fine and I unmounted.
I created a RAID1 array with MDADM and RAID1 started just fine and the sync was alright too. I then mounted the /dev/md0 that I created and the files were there and I created a new folder.

Now, I stopped the RAID (mdadm --stop --scan) and then I tried to mount the LVM partitions (mount /dev/VG/LV1 and same for LV2) but I get:

mount: unknown filesystem type 'mdraid'

Can someone help me out here!? I can't mount my LVM partitions after I stopped the RAID cuz the filesystem's screwed up on the RAID disk?

Thanks alot!
 
Old 11-17-2008, 09:05 PM   #2
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
You need to set that LVM partition to faulty in RAID, remove it from your RAID array, and then try whateva you wanna...

Code:
mdadm /dev/md0 -f /path/to/lvm
 
Old 11-18-2008, 04:01 PM   #3
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by n03x3c View Post
You need to set that LVM partition to faulty in RAID, remove it from your RAID array, and then try whateva you wanna...

Code:
mdadm /dev/md0 -f /path/to/lvm
Thanks for your comment. So does this mean I can't stop MDADM and use my LVM partitions after that?

Thanks
 
Old 11-18-2008, 04:42 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,238

Rep: Reputation: 121Reputation: 121
I'm having trouble understanding why someone would do this. You either have the RAID or you don't; you can't have it both ways on the same partitions If the array was an experiment, then you may have to delete the array with mdadm before the partitions are "turned back over" to the system, as it were. You will probably have to rebuild the filesystems, but maybe not since it is RAID1.
 
  


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
SoftwareRaid1 (mdadm) and LVM setup. Working, but is it ok? isync Linux - Server 7 05-17-2011 08:48 PM
mdadm (lvm) expertise wanted. zaxonus Linux - Server 1 01-08-2009 05:23 PM
unable to load MDADM module BUT mdadm works?!?!?! alirezan1 Linux - Software 2 09-08-2008 07:58 PM
mdadm says "mdadm: /dev/md1 not identified in config file" when booting FC7 raffeD Linux - Server 1 08-11-2008 11:47 AM
LVM + MDADM...help carve81 Debian 2 08-25-2006 03:17 AM


All times are GMT -5. The time now is 05:01 PM.

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