I have Ubuntu 16.04.4 LTS I have a set of identical HDD. I have created a raid 1 array but i can not seem to mount it.
cat /proc/mdstat
md126 : active raid1 sde[1] sdd[0]
24412992 blocks super 1.2 [2/2] [UU]
mdadm --detail /dev/md126
/dev/md126:
Version : 1.2
Creation Time : Mon Apr 16 12:20:39 2018
Raid Level : raid1
Array Size : 24412992 (23.28 GiB 25.00 GB)
Used Dev Size : 24412992 (23.28 GiB 25.00 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Wed May 9 23:08:47 2018
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : kat1:raidarray3 (local to host kat1)
UUID : 5da485b7:9aed668a:053cec83:88179e15
Events : 21
Number Major Minor RaidDevice State
0 8 48 0 active sync /dev/sdd
1 8 64 1 active sync /dev/sde
Upon initialization I issued the command:
sudo mkfs.ext4 -F /dev/md126
then
sudo mount /dev/md126 /mnt/raid_23G
with no error displayed , the raid array is not displayed on df -h
root@kat1:/mnt# sudo mount /dev/md126 /mnt/raid_23G
root@kat1:/mnt#
root@kat1:/mnt# sudo umount /dev/md126
umount: /dev/md126: not mounted
root@kat1:/mnt# fsck /dev/md126
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/md126: clean, 11/1525920 files, 139793/6103248 blocks
#ls /dev/md126*
/dev/md126
/mnt# ls -la
total 28
drwxr-xr-x 7 root root 4096 Apr 16 12:22 .
drwxr-xr-x 23 root root 4096 Apr 15 17:52 ..
drwxr-xr-x 2 root root 4096 Apr 16 12:15 backup_raid
drwxr-xr-x 5 root root 4096 Apr 23 16:20 md0
drwxr-xr-x 2 root root 4096 Apr 16 12:22 raid_23G
drwxr-xr-x 2 root root 4096 Apr 16 12:22 raid_587G
drwxr-xr-x 4 root root 4096 Apr 15 23:40 Store
so the directory does exist, and there is no /dev/md126p1
Thank you very much for your assistance, the output of the command asked is the following:
root@kat1-kvm:/# sudo blkid
/dev/sda1: UUID="0f62bf49-d7b4-444b-9229-093b902c4f35" TYPE="ext2" PARTUUID="7dcd7eef-01"
/dev/sda5: UUID="kwwylr-xhGI-lGu0-vEDf-n1RV-BBep-MAdn10" TYPE="LVM2_member" PARTUUID="7dcd7eef-05"
/dev/md127: UUID="ea8d8ae6-2dea-494a-9283-926f29209b77" TYPE="ext4"
/dev/sdb: UUID="d07f60aa-3e50-937d-2cb6-0265baf86362" UUID_SUB="9812be8a-845b-01b6-ac13-93d983f6ce60" LABEL="kat1-kvm:raidarray2" TYPE="linux_raid_member"
/dev/sdc: UUID="d07f60aa-3e50-937d-2cb6-0265baf86362" UUID_SUB="16b50f6a-fed4-1985-c66a-fa487e42a968" LABEL="kat1-kvm:raidarray2" TYPE="linux_raid_member"
/dev/sdd: UUID="5da485b7-9aed-668a-053c-ec8388179e15" UUID_SUB="ab6f9b08-5ee6-b974-fbf1-f0401f4d0ab6" LABEL="kat1-kvm:raidarray3" TYPE="linux_raid_member"
/dev/sde: UUID="5da485b7-9aed-668a-053c-ec8388179e15" UUID_SUB="56e87833-2c7b-dbf8-5b53-582fc6e6bde6" LABEL="kat1-kvm:raidarray3" TYPE="linux_raid_member"
/dev/sdf: UUID="c28036d1-57b2-62d9-6188-5187f0b3a099" UUID_SUB="8168786f-9528-3ae8-dd3c-3e24df3b275c" LABEL="kat1-kvm:raidarray" TYPE="linux_raid_member"
/dev/sdg: UUID="c28036d1-57b2-62d9-6188-5187f0b3a099" UUID_SUB="02a8529c-e62c-25e1-8654-358371cf5ede" LABEL="kat1-kvm:raidarray" TYPE="linux_raid_member"
/dev/sdh1: LABEL="Store" UUID="d3521cce-65f7-4914-8476-15a3058368da" TYPE="ext4" PARTLABEL="Store" PARTUUID="833db700-d7ea-4307-b57b-7c61c9772840"
/dev/md0: UUID="40110e88-2ed2-49f7-b5d0-8353a1feacd3" TYPE="ext4"
/dev/md126: UUID="904d39f9-6c1b-462d-a841-614c1ba8c9d8" TYPE="ext4"
/dev/mapper/kat1--kvm--vg-root: UUID="e5d8c7d5-04bd-4596-9e4f-73bc010151b9" TYPE="ext4"
/dev/mapper/kat1--kvm--vg-swap_1: UUID="b6069bbf-9f87-4c5c-9034-838c37af0290" TYPE="swap"
in order to be clear, this server has multiple disks, 3 set of identical disks (for three raid 1 groups) and 2 single ones. The first raid group is working fine and accessible as can be seen from previous post info (md0) the other two refuse to mount, although mdstat say raid is fine.
I am lost.
I did follow your link, and it provided a command
sudo update-initramfs -u
which actually solved the problem, everything is now mounted properly I have no idea what just did but I am so gratefull for you taking the time. I am at your debt
/mnt/raid_23G
does not exist, so themd126
could not be mounted there. Why it didn't give you the error I am not sure. Can you do als /dev/md126*
and give the output? There might be a chance that there is a partition setup and it looks like/dev/md126p1
for what should be mounted. – Terrance May 09 '18 at 22:15sudo blkid
so we can see if there is a partition with a UUID that can be mounted. – Terrance May 10 '18 at 05:11