安装 Raid5 硬件阵列时遇到问题

安装 Raid5 硬件阵列时遇到问题

我的家庭实验室里有一台安装了 H710 RAID 控制器的 Dell R720 服务器。我使用板载控制器和 8 个 4TB HDD 构建了一个 Raid5 阵列。我能够在 fdisk 中创建一个分区而没有任何问题,但是当我去安装它时,我收到以下错误消息:

~$ sudo mount /dev/sda1 /mnt/raid_array/

mount: /mnt/raid_array: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.

我不确定这个错误意味着什么或如何解决它。我几乎可以肯定这不是一个坏的文件系统,但我会附上我能想到的所有相关内容的屏幕截图。

这是 lsblk:

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0  55.4M  1 loop /snap/core18/2128
loop1    7:1    0  55.5M  1 loop /snap/core18/2246
loop2    7:2    0  32.4M  1 loop /snap/snapd/13270
loop3    7:3    0  32.5M  1 loop /snap/snapd/13640
loop4    7:4    0  61.9M  1 loop /snap/core20/1169
loop5    7:5    0  67.3M  1 loop /snap/lxd/21545
loop6    7:6    0  69.9M  1 loop /snap/lxd/19188
sda      8:0    0  25.5T  0 disk
└─sda1   8:1    0  25.5T  0 part
sdb      8:16   0 931.5G  0 disk
├─sdb1   8:17   0   499M  0 part
├─sdb2   8:18   0    99M  0 part /boot/efi
├─sdb3   8:19   0    16M  0 part
└─sdb4   8:20   0 465.5G  0 part /

这是 fdisk -l

$ sudo fdisk -l
Disk /dev/loop0: 55.45 MiB, 58130432 bytes, 113536 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/loop1: 55.51 MiB, 58191872 bytes, 113656 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/loop2: 32.42 MiB, 33980416 bytes, 66368 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/loop3: 32.45 MiB, 34017280 bytes, 66440 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/loop4: 61.85 MiB, 64835584 bytes, 126632 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/loop5: 67.26 MiB, 70516736 bytes, 137728 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/loop6: 69.9 MiB, 73277440 bytes, 143120 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/sda: 25.48 TiB, 28001576157184 bytes, 54690578432 sectors
Disk model: PERC H710
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: B6301972-E216-2E4B-8F60-D70B8A116804

Device     Start         End     Sectors  Size Type
/dev/sda1   2048 54690578398 54690576351 25.5T Microsoft basic data


Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: PNY CS900 1TB SS
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: 21B6CED0-2E4A-4AD4-8B1D-4A7A51F65B9B

Device       Start       End   Sectors   Size Type
/dev/sdb1     2048   1023999   1021952   499M Windows recovery environment
/dev/sdb2  1024000   1226751    202752    99M EFI System
/dev/sdb3  1226752   1259519     32768    16M Microsoft reserved
/dev/sdb4  1259520 977397759 976138240 465.5G Microsoft basic data

和 fstab:

$ sudo cat /etc/fstab
# /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/sda4 during curtin installation
/dev/disk/by-uuid/148121e8-c77f-4b6d-a389-c3a37b2379e5 / ext4 defaults 0 1
# /boot/efi was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/9CBB-B356 /boot/efi vfat defaults 0 1
/swap.img       none    swap    sw      0       0

# MythosRaid
UUID=B6301972-E216-2E4B-8F60-D70B8A116804 /mnt/raid_array ext4 defaults 0 0

如果还有其他内容我可以添加,请告诉我,感谢大家提供的任何帮助!

答案1

大概/dev/sda是您的硬件 RAID 的演示。我想说您似乎尚未在虚拟磁盘上创建文件系统。

mkfs.ext4 -L bigdata /dev/sda1
mount /dev/sda1/mnt                           # mount it

但在此之前,请考虑一下您是希望拥有 25TB 的文件系统,还是将其分配为逻辑空间 (LVM) 更有用,以便您可以根据需要从中划分文件系统

pvcreate /dev/sda1                            # disk partition to use
vgcreate myvg /dev/sda1                       # "myvg" is name of the logical volume group
lvcreate /dev/myvg --name mylv --size 100G    # "mylv" is logical disk volume
mkfs.ext4 -L myext4 /dev/myvg/mylv            # create filesystem
mount /dev/myvg/mylv /mnt                     # mount it

LVM 成功的关键不是将整个空间分配给单个文件系统,而是根据需要(在合理范围内)扩大它。

相关内容