LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped (http://www.linuxquestions.org/questions/linux-newbie-8/mdadm-screws-up-the-lvm-partitions-cant-mount-the-lvms-after-mdadm-stopped-684181/)

alirezan1 11-17-2008 06:55 PM

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!

n03x3c 11-17-2008 09:05 PM

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

alirezan1 11-18-2008 04:01 PM

Quote:

Originally Posted by n03x3c (Post 3345758)
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

Quakeboy02 11-18-2008 04:42 PM

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.


All times are GMT -5. The time now is 06:11 AM.