我正在遵循指示从这里在现有 Linux 安装上设置 RAID1。这些说明适用于 Debian/Ubuntu 安装,但我找不到专门针对 AlmaLinux 的说明,因此我尝试进行调整。
我已将原始分区设置复制到空白驱动器,并使用“fdisk /dev/sdh”命令使 LVM Linux 分区“raid 自动检测”。
下一步是创建新的降级 RAID 阵列,mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdh1
用于两个分区(md0 和 md1 分别用于 sdh1 和 sbh2)。
然而,此时,我得到了这个:
mdadm: partition table exists on /dev/sdh1
mdadm: partition table exists on /dev/sdh1 but will be lost or
meaningless after creating array
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
Continue creating array?
...此时我的回答是“不”。
这是 lsblk 的输出:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 476.9G 0 disk
├─sda1 8:1 0 100M 0 part
├─sda2 8:2 0 476.3G 0 part
└─sda3 8:3 0 600M 0 part
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 1G 0 part /boot
└─sdb2 8:18 0 464.8G 0 part
├─almalinux-root 253:0 0 70G 0 lvm /
├─almalinux-swap 253:1 0 4.4G 0 lvm [SWAP]
└─almalinux-home 253:2 0 390.3G 0 lvm /home
sdc 8:32 1 0B 0 disk
sdd 8:48 1 0B 0 disk
sde 8:64 1 0B 0 disk
sdf 8:80 1 0B 0 disk
sdg 8:96 1 57.7G 0 disk
└─sdg1 8:97 1 57.7G 0 part /run/media/jisrael/UBUNTU DESK
sdh 8:112 0 465.8G 0 disk
├─sdh1 8:113 0 1G 0 part
└─sdh2 8:114 0 464.8G 0 part
sr0 11:0 1 1024M 0 rom
以下是相关驱动器的 fdisk -l 输出:
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5003ABYX-0
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: 0xf5dec84b
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 2099199 2097152 1G 83 Linux
/dev/sdb2 2099200 976773119 974673920 464.8G 8e Linux LVM
Disk /dev/sdh: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5003ABYX-0
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: 0xf5dec84b
Device Boot Start End Sectors Size Id Type
/dev/sdh1 * 2048 2099199 2097152 1G 83 Linux
/dev/sdh2 2099200 976773119 974673920 464.8G 8e Linux LVM
Disk /dev/mapper/almalinux-root: 70 GiB, 75161927680 bytes, 146800640 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 /dev/mapper/almalinux-swap: 4.43 GiB, 4752146432 bytes, 9281536 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 /dev/mapper/almalinux-home: 390.33 GiB, 419115827200 bytes, 818585600 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
我该怎么办?感谢您的帮助。