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! |
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 |
Quote:
Thanks |
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 01:43 AM. |