Replace not-yet-failed RAID1 memeber with a new hd (sdd).
(http://unix.stackexchange.com/questions/74924/how-to-safely-replace-a-not-yet-failed-disk-in-a-linux-raid5-array)
// versions
[acool@localhost ~]$
[acool@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[acool@localhost ~]$
[acool@localhost ~]$ mdadm --version
mdadm - v3.4 - 28th January 2016
[acool@localhost ~]$
[acool@localhost ~]$
//check devices
[acool@localhost ~]$
[acool@localhost ~]$ sudo lsblk
[sudo] password for acool:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sda2 8:2 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sda3 8:3 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sda4 8:4 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sda5 8:5 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdb 8:16 0 55.9G 0 disk
├─sdb1 8:17 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdb2 8:18 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdb3 8:19 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdb4 8:20 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdb5 8:21 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdc 8:32 0 232.9G 0 disk
├─sdc1 8:33 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdc2 8:34 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdc3 8:35 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdc4 8:36 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdc5 8:37 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdd 8:48 0 111.8G 0 disk
├─sdd1 8:49 0 111.8G 0 part
└─sdd5 8:53 0 4G 0 part
sr0 11:0 1 1024M 0 rom
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
//check partitions
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo fdisk -l /dev/sd?
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdb: 60.0 GB, 60022480896 bytes, 117231408 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
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdc: 250.1 GB, 250059350016 bytes, 488397168 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
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
Disk /dev/sdd: 120.0 GB, 120034123776 bytes, 234441648 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
Disk label type: dos
Disk identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sdd1 * 63 234441647 117220792+ a5 FreeBSD
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
//copy GPT table to sdd drive and generate random guids
//(idk why I got caution messages)
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo sgdisk /dev/sda -R /dev/sdd
Caution! Secondary header was placed beyond the disk's limits! Moving the
header, but other problems may occur!
The operation has completed successfully.
[acool@localhost ~]$ sudo sgdisk -G /dev/sdd
The operation has completed successfully.
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
//verify partitons
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo fdisk -l /dev/sd?
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdb: 60.0 GB, 60022480896 bytes, 117231408 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
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdc: 250.1 GB, 250059350016 bytes, 488397168 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
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdd: 120.0 GB, 120034123776 bytes, 234441648 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
Disk label type: gpt
# Start End Size Type Name
1 2048 25184255 12G Linux RAID
2 25184256 39610367 6.9G Linux RAID
3 39610368 41709567 1G Linux RAID
4 41709568 42121215 201M Linux RAID
5 42121216 67303423 12G Linux RAID
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sda2 8:2 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sda3 8:3 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sda4 8:4 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sda5 8:5 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdb 8:16 0 55.9G 0 disk
├─sdb1 8:17 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdb2 8:18 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdb3 8:19 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdb4 8:20 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdb5 8:21 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdc 8:32 0 232.9G 0 disk
├─sdc1 8:33 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdc2 8:34 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdc3 8:35 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdc4 8:36 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdc5 8:37 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdd 8:48 0 111.8G 0 disk
├─sdd1 8:49 0 12G 0 part
├─sdd2 8:50 0 6.9G 0 part
├─sdd3 8:51 0 1G 0 part
├─sdd4 8:52 0 201M 0 part
└─sdd5 8:53 0 12G 0 part
sr0 11:0 1 1024M 0 rom
[acool@localhost ~]$
// replace sda with sdd
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --manage /dev/md123 --add /dev/sdd4
[sudo] password for acool:
mdadm: added /dev/sdd4
[acool@localhost ~]$ sudo mdadm --manage /dev/md124 --add /dev/sdd5
mdadm: added /dev/sdd5
[acool@localhost ~]$ sudo mdadm --manage /dev/md125 --add /dev/sdd3
mdadm: added /dev/sdd3
[acool@localhost ~]$ sudo mdadm --manage /dev/md126 --add /dev/sdd2
mdadm: added /dev/sdd2
[acool@localhost ~]$ sudo mdadm --manage /dev/md127 --add /dev/sdd1
mdadm: added /dev/sdd1
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --manage /dev/md123 --replace /dev/sda4 --with /dev/sdd4
mdadm: Marked /dev/sda4 (device 2 in /dev/md123) for replacement
mdadm: Marked /dev/sdd4 in /dev/md123 as replacement for device 2
[acool@localhost ~]$ sudo mdadm --manage /dev/md124 --replace /dev/sda5 --with /dev/sdd5
mdadm: Marked /dev/sda5 (device 2 in /dev/md124) for replacement
mdadm: Marked /dev/sdd5 in /dev/md124 as replacement for device 2
[acool@localhost ~]$ sudo mdadm --manage /dev/md125 --replace /dev/sda3 --with /dev/sdd3
mdadm: Marked /dev/sda3 (device 2 in /dev/md125) for replacement
mdadm: Marked /dev/sdd3 in /dev/md125 as replacement for device 2
[acool@localhost ~]$ sudo mdadm --manage /dev/md126 --replace /dev/sda2 --with /dev/sdd2
mdadm: Marked /dev/sda2 (device 2 in /dev/md126) for replacement
mdadm: Marked /dev/sdd2 in /dev/md126 as replacement for device 2
[acool@localhost ~]$ sudo mdadm --manage /dev/md127 --replace /dev/sda1 --with /dev/sdd1
mdadm: Marked /dev/sda1 (device 2 in /dev/md127) for replacement
mdadm: Marked /dev/sdd1 in /dev/md127 as replacement for device 2
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
// monitor progress
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ cat /proc/mdstat
Personalities : [raid1]
md123 : active raid1 sdd4[4] sda4[3](F) sdc4[1] sdb4[0]
205760 blocks super 1.0 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md124 : active raid1 sdd5[4] sda5[3](F) sdc5[1] sdb5[0]
12582912 blocks super 1.2 [3/3] [UUU]
bitmap: 1/1 pages [4KB], 65536KB chunk
md125 : active raid1 sdd3[4](R) sda3[3] sdb3[0] sdc3[1]
1049536 blocks super 1.0 [3/3] [UUU]
resync=DELAYED
bitmap: 0/1 pages [0KB], 65536KB chunk
md126 : active raid1 sdd2[4](R) sda2[3] sdb2[0] sdc2[1]
7208960 blocks super 1.2 [3/3] [UUU]
[=>...................] recovery = 5.1% (370560/7208960) finish=3.6min speed=30880K/sec
md127 : active raid1 sdd1[4](R) sda1[3] sdb1[0] sdc1[1]
12582912 blocks super 1.2 [3/3] [UUU]
resync=DELAYED
bitmap: 1/1 pages [4KB], 65536KB chunk
unused devices: <none>
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --detail /dev/md123
/dev/md123:
Version : 1.0
Creation Time : Thu Jan 19 07:04:56 2017
Raid Level : raid1
Array Size : 205760 (200.94 MiB 210.70 MB)
Used Dev Size : 205760 (200.94 MiB 210.70 MB)
Raid Devices : 3
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Jan 22 15:58:24 2017
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Name : localhost.localdomain:boot_efi (local to host localhost.localdomain)
UUID : 89085253:47b4f9e9:dd804932:ef766c2a
Events : 70
Number Major Minor RaidDevice State
0 8 20 0 active sync /dev/sdb4
1 8 36 1 active sync /dev/sdc4
4 8 52 2 active sync /dev/sdd4
3 8 4 - faulty /dev/sda4
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --detail /dev/md126
/dev/md126:
Version : 1.2
Creation Time : Thu Jan 19 07:04:48 2017
Raid Level : raid1
Array Size : 7208960 (6.88 GiB 7.38 GB)
Used Dev Size : 7208960 (6.88 GiB 7.38 GB)
Raid Devices : 3
Total Devices : 4
Persistence : Superblock is persistent
Update Time : Sun Jan 22 16:06:59 2017
State : clean, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1
Rebuild Status : 13% complete
Name : localhost.localdomain:swap (local to host localhost.localdomain)
UUID : 0701fcab:0d6eadef:98a73bd8:45b1bd0b
Events : 64
Number Major Minor RaidDevice State
0 8 18 0 active sync /dev/sdb2
1 8 34 1 active sync /dev/sdc2
3 8 2 2 active sync /dev/sda2
4 8 50 2 spare rebuilding /dev/sdd2
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --detail /dev/md124
/dev/md124:
Version : 1.2
Creation Time : Thu Jan 19 07:05:04 2017
Raid Level : raid1
Array Size : 12582912 (12.00 GiB 12.88 GB)
Used Dev Size : 12582912 (12.00 GiB 12.88 GB)
Raid Devices : 3
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Jan 22 16:11:37 2017
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Name : localhost.localdomain:home (local to host localhost.localdomain)
UUID : 24ec8d5c:94b7c61c:3eed2130:fbec1566
Events : 2393
Number Major Minor RaidDevice State
0 8 21 0 active sync /dev/sdb5
1 8 37 1 active sync /dev/sdc5
4 8 53 2 active sync /dev/sdd5
3 8 5 - faulty /dev/sda5
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
//remove sda partitions from md devices
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ cat /proc/mdstat
Personalities : [raid1]
md123 : active raid1 sdd4[4] sda4[3](F) sdc4[1] sdb4[0]
205760 blocks super 1.0 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md124 : active raid1 sdd5[4] sda5[3](F) sdc5[1] sdb5[0]
12582912 blocks super 1.2 [3/3] [UUU]
bitmap: 1/1 pages [4KB], 65536KB chunk
md125 : active raid1 sdd3[4] sda3[3](F) sdb3[0] sdc3[1]
1049536 blocks super 1.0 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md126 : active raid1 sdd2[4] sda2[3](F) sdb2[0] sdc2[1]
7208960 blocks super 1.2 [3/3] [UUU]
md127 : active raid1 sdd1[4] sda1[3](F) sdb1[0] sdc1[1]
12582912 blocks super 1.2 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
unused devices: <none>
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --manage /dev/md123 --remove /dev/sda4
mdadm: hot removed /dev/sda4 from /dev/md123
[acool@localhost ~]$ sudo mdadm --manage /dev/md124 --remove /dev/sda5
mdadm: hot removed /dev/sda5 from /dev/md124
[acool@localhost ~]$ sudo mdadm --manage /dev/md125 --remove /dev/sda3
mdadm: hot removed /dev/sda3 from /dev/md125
[acool@localhost ~]$ sudo mdadm --manage /dev/md126 --remove /dev/sda2
mdadm: hot removed /dev/sda2 from /dev/md126
[acool@localhost ~]$ sudo mdadm --manage /dev/md127 --remove /dev/sda1
mdadm: hot removed /dev/sda1 from /dev/md127
[acool@localhost ~]$
[acool@localhost ~]$
//verify
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo mdadm --detail /dev/md124
/dev/md124:
Version : 1.2
Creation Time : Thu Jan 19 07:05:04 2017
Raid Level : raid1
Array Size : 12582912 (12.00 GiB 12.88 GB)
Used Dev Size : 12582912 (12.00 GiB 12.88 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Jan 22 16:22:22 2017
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Name : localhost.localdomain:home (local to host localhost.localdomain)
UUID : 24ec8d5c:94b7c61c:3eed2130:fbec1566
Events : 2394
Number Major Minor RaidDevice State
0 8 21 0 active sync /dev/sdb5
1 8 37 1 active sync /dev/sdc5
4 8 53 2 active sync /dev/sdd5
[acool@localhost ~]$ cat /proc/mdstat
Personalities : [raid1]
md123 : active raid1 sdd4[4] sdc4[1] sdb4[0]
205760 blocks super 1.0 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md124 : active raid1 sdd5[4] sdc5[1] sdb5[0]
12582912 blocks super 1.2 [3/3] [UUU]
bitmap: 1/1 pages [4KB], 65536KB chunk
md125 : active raid1 sdd3[4] sdb3[0] sdc3[1]
1049536 blocks super 1.0 [3/3] [UUU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md126 : active raid1 sdd2[4] sdb2[0] sdc2[1]
7208960 blocks super 1.2 [3/3] [UUU]
md127 : active raid1 sdd1[4] sdb1[0] sdc1[1]
12582912 blocks super 1.2 [3/3] [UUU]
bitmap: 1/1 pages [4KB], 65536KB chunk
unused devices: <none>
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 12G 0 part
├─sda2 8:2 0 6.9G 0 part
├─sda3 8:3 0 1G 0 part
├─sda4 8:4 0 201M 0 part
└─sda5 8:5 0 12G 0 part
sdb 8:16 0 55.9G 0 disk
├─sdb1 8:17 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdb2 8:18 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdb3 8:19 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdb4 8:20 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdb5 8:21 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdc 8:32 0 232.9G 0 disk
├─sdc1 8:33 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdc2 8:34 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdc3 8:35 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdc4 8:36 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdc5 8:37 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdd 8:48 0 111.8G 0 disk
├─sdd1 8:49 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdd2 8:50 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdd3 8:51 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdd4 8:52 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdd5 8:53 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sr0 11:0 1 1024M 0 rom
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
// insteresting fact: after shutting down, physically removed sda and restart
/ sdd became sda
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$ sudo lsblk
[sudo] password for acool:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sda2 8:2 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sda3 8:3 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sda4 8:4 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sda5 8:5 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdb 8:16 0 55.9G 0 disk
├─sdb1 8:17 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdb2 8:18 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdb3 8:19 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdb4 8:20 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdb5 8:21 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sdc 8:32 0 232.9G 0 disk
├─sdc1 8:33 0 12G 0 part
│ └─md127 9:127 0 12G 0 raid1 /
├─sdc2 8:34 0 6.9G 0 part
│ └─md126 9:126 0 6.9G 0 raid1 [SWAP]
├─sdc3 8:35 0 1G 0 part
│ └─md125 9:125 0 1G 0 raid1 /boot
├─sdc4 8:36 0 201M 0 part
│ └─md123 9:123 0 201M 0 raid1 /boot/efi
└─sdc5 8:37 0 12G 0 part
└─md124 9:124 0 12G 0 raid1 /home
sr0 11:0 1 1024M 0 rom
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
[acool@localhost ~]$
Comments
Comments are not available for this entry.