[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Raid 1 borked



Hi folks,

So we're setting up a small server with a pair of 1 TB hard diskssectioned into 5x100GB Raid 1 partition pairs for data, with 400GB+reserved for future uses on each disk.I'm not sure what happened, we had the five pairs of disk partitions setup properly through the installer without problems. However, now theRaid 1 pairs are not mounted as separate partitions but do show up assubdirectories under /, ie /datab, and they do seem to work as part ofthe regular / filesystem. df -h does not show any md devices or sda/bdevices, neither does mount. (The system partitions are on an nvme ssd).lsblk reveals sda and sdb with sda[1-5] and sdb[1-5] but no md[0-5].blkid reveals that sda[1-5] and sdb[1-5] are still listed as
TYPE="linux_raid_member".

So first of all I'd like to be able to diagnose what's going on. Whatcommands should I use for that? And secondly, I'd like to get the raidarrays remounted as separate partitions. How to do that?Fortunately, there is no data to worry about. However, I'd rather notreinstall as we've put in a bit of work installing and configuringthings. I'd prefer not to loose that. Can someone help us out?
Thanks in advance,

	Bill

Did you create the md raid1s after partitioning the disks?

Normally when you install mdadm or when you install the system from usb/.iso for the first time, the respective mds are assembled and appropriately set up if you have already created them.

If you added and partitioned the disk after the main system has been installed and running, you will have to create md raid1s and enable automatic assembly through /etc/mdadm.conf file. You may need to update your initrd also, but this I am not sure. To access and use the md raid1s as file systems, You also need to add appropriate fstab entries to mount them.

Hope I am not trivializing your issues.

Regards
Ramesh


Reply to: