在启动盘上进行全新安装,不会破坏 RAID 阵列

在启动盘上进行全新安装,不会破坏 RAID 阵列

我有一套包含 5 个 HDD 驱动器的系统。其中四个使用软件 RAID 设置为 RAID5。第五个是运行 Ubuntu 操作系统的启动盘。我想在不丢失 RAID 磁盘上的数据的情况下替换启动盘上的操作系统。由于这是一个软件 RAID,这有可能吗?我担心会丢失此阵列上的数据,因为它太大而无法备份到另一个驱动器。

lsblk

sda       8:0    0 931.5G  0 disk  
├─sda1    8:1    0  95.4M  0 part  /boot/efi
├─sda2    8:2    0 899.5G  0 part  /
└─sda3    8:3    0    32G  0 part  [SWAP]
sdb       8:16   0   7.3T  0 disk  
└─md127   9:127  0  21.9T  0 raid5 /media/storage
sdc       8:32   0   7.3T  0 disk  
└─md127   9:127  0  21.9T  0 raid5 /media/storage
sdd       8:48   0   7.3T  0 disk  
└─md127   9:127  0  21.9T  0 raid5 /media/storage
sde       8:64   0   7.3T  0 disk  
└─md127   9:127  0  21.9T  0 raid5 /media/storage

fdisk -l

Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD1002FAEX-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: gpt
Disk identifier: 10E47429-1422-497C-9147-D63DF3B2A1A8

Device          Start        End    Sectors   Size Type
/dev/sda1          34     195346     195313  95.4M EFI System
/dev/sda2      195347 1886494175 1886298829 899.5G Microsoft basic data
/dev/sda3  1886494176 1953525118   67030943    32G Linux swap


Disk /dev/sde: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: ST8000DM004-2CX1
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 /dev/sdc: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: ST8000DM004-2CX1
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 /dev/sdb: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: ST8000DM004-2CX1
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 /dev/sdd: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: ST8000DM004-2CX1
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 /dev/md127: 21.85 TiB, 24004285956096 bytes, 46883371008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes

这是我的 mdadm.conf

#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY metadata=imsm UUID=fca046fc:ae4dc84f:991ab852:a7f6e529
ARRAY /dev/md/Volume0 container=fca046fc:ae4dc84f:991ab852:a7f6e529 member=0 UUID=0807995b:62796044:632ee9d1:530bd009

# This file was auto-generated on Wed, 31 Jul 2019 00:07:02 -0600
# by mkconf $Id$

相关内容