Portál AbcLinuxu, 5. května 2025 15:10
sddisk -d /dev/sda | sddisk /dev/sdb
mdadm --manage /dev/md0 --add /dev/sdb1
mdam: /dev/sdb1 not large enough to join array
sfdisk -s /dev/sda
488386584
sfdisk -s /dev/sda1
488385551
sfdisk -s /dev/sdb
488386583
sfdisk -s /dev/sdb1
488385551
mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sun Nov 8 10:25:00 2015
Raid Level : raid1
Array Size : 488255488 (465.64 GiB 499.97 GB)
Used Dev Size : 488255488 (465.64 GiB 499.97 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Feb 13 15:24:37 2016
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : sirva:0 (local to host sirva)
UUID : a31c764f:3e0f27b4:0cf067a0:b765fd82
Events : 111793
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 0 1 active sync /dev/sda
fdisk /dev/sda (výpis oddílů)
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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: dos
Disk identifier: 0xefa949dd
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 976773150 976771103 465.8G fd Linux raid autodetect
fdisk /dev/sdb (výpis oddílů)
Disk /dev/sdb: 465.8 GiB, 500107861504 bytes, 976773167 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: dos
Disk identifier: 0x1bd754bd
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 976773150 976771103 465.8G fd Linux raid autodetect
Number Major Minor RaidDevice State 0 0 0 0 removed 1 8 0 1 active sync /dev/sdaAle asi jsem zvyklý na výpis z cat /proc/mdstat, třeba je to takhle správně... KR
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.