Hello,
I installed ubuntu desktop just recently in aim to create a RAID1 configuration using software RAID MDADM.
I have the following configuration as fdisk -l
reports:
Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1191B7C1-FB4B-4151-B71D-CE0BE03AB12B
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M EFI System
/dev/sda2 206848 67315711 67108864 32G Linux RAID
/dev/sda3 67315712 468862094 401546383 191,5G Linux RAID
Disk /dev/sdb: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9BF52357-7ABC-4838-A448-B8259F278040
Device Start End Sectors Size Type
/dev/sdb1 2048 206847 204800 100M EFI System
/dev/sdb2 206848 67315711 67108864 32G Linux RAID
/dev/sdb3 67315712 468862094 401546383 191,5G Linux RAID
Disk /dev/md1: 191,4 GiB, 205457522688 bytes, 401284224 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 44C8ED5A-7423-4D08-B57D-59E0A38DC5CE
Device Start End Sectors Size Type
/dev/md1p1 2048 401284190 401282143 191,4G Linux filesystem
Disk /dev/md0: 32 GiB, 34326183936 bytes, 67043328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BAA6BE5F-36F4-4B70-B4B6-2F28FAC7F72D
Device Start End Sectors Size Type
/dev/md0p1 2048 67043294 67041247 32G Linux swap
cat /proc/mdstat
give me:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb2[2] sda2[0]
33521664 blocks super 1.2 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md1 : active raid1 sdb3[2] sda3[0]
200642112 blocks super 1.2 [2/2] [UU]
bitmap: 2/2 pages [8KB], 65536KB chunk
unused devices: <none>
When i remove either data cable of the SSD:s i get boot to busybox.
Busybox displays followin alert:
ALERT UIID=74230d1d-b85c-49bf-995b-d7a00160e41b does not exist. Dropping to shell!
cat /proc/cmdline
gives me:
BOOT_IMAGE=/boot/vmlinuz-4.4.0-24-generic.efi.signed root=UUID=74230d1d-b85c-49bf-995b-d7a00160e41b ro
exit
wont help it just nags about that UIID does not exist.
SO what i want is that if one of the drives fails i get to boot to ubuntu.
Any help is very much apperciated, i quite novice to Linux operating systems.
blkid gives me:
blkid
/dev/sda1: UUID="1C68-1C4B" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="f3aa88a3-9c78-4ef7-9f1e-935785598337"
/dev/sda2: UUID="6eced8d1-5d91-5025-1a74-edb1ad409d83" UUID_SUB="868d7324-5c57-446c-d938-e836debec024" LABEL="ubuntu:0" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="da5176bb-8cfc-42a3-87a8-3660168cd955"
/dev/sda3: UUID="bf6c978d-e3b6-e814-d3d2-a131bf325998" UUID_SUB="3c7e4f7d-3b9d-0b24-2226-7b18c40bbd55" LABEL="ubuntu:1" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="ec46a009-690e-433b-8129-67a22dc82e54"
/dev/sdb1: UUID="1C68-1C4B" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="2c07476e-c57a-40ff-b599-129c8b149479"
/dev/sdb2: UUID="6eced8d1-5d91-5025-1a74-edb1ad409d83" UUID_SUB="bf9b9116-eec5-edea-2f27-80b80d9c9c90" LABEL="ubuntu:0" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="660e4f54-95e0-4255-becc-780fe029fdf2"
/dev/sdb3: UUID="bf6c978d-e3b6-e814-d3d2-a131bf325998" UUID_SUB="144cdbb9-92d3-f77e-60d7-ee5be414f1fe" LABEL="ubuntu:1" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="3dfc5388-d79b-4e0d-a4e8-2e666923a47a"
/dev/sdc1: LABEL="Media" UUID="902EECD22EECB280" TYPE="ntfs" PARTUUID="41138b36-01"
/dev/md1: PTUUID="44c8ed5a-7423-4d08-b57d-59e0a38dc5ce" PTTYPE="gpt"
/dev/md1p1: UUID="74230d1d-b85c-49bf-995b-d7a00160e41b" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="70826ab5-b977-4942-8686-0abf7f70fcf9"
/dev/md0: PTUUID="baa6be5f-36f4-4b70-b4b6-2f28fac7f72d" PTTYPE="gpt"
/dev/md0p1: UUID="8b831ade-c61c-46fd-b4fc-6fba596ec9f6" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="668f70b9-0c11-41b5-bedb-86f214398982"
/dev/mapper/cryptswap1: UUID="455953ff-6980-4ca7-a8c1-aa27a4de6e9a" TYPE="swap"
List of mountings:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md1p1 during installation
UUID=74230d1d-b85c-49bf-995b-d7a00160e41b / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=1C68-1C4B /boot/efi vfat umask=0077 0 1
# swap was on /dev/md0p1 during installation
#UUID=8b831ade-c61c-46fd-b4fc-6fba596ec9f6 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0