MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.