如何挂载raid

Mal*_*ian 1 raid

我有以下有趣的实验。我使用实时 USB 来安装 ubuntu 服务器 12.04 i386 和 webmin 在插入 intel ss4200-e 的 USB 上,我想用它制作一个无头 samba 服务器。webmin在分区菜单上显示以下情况:

Disk name       Total size      Make and model      Partitions      Actions   
SCSI device A   7.39 GB     Kingston DataTraveler 3.0   3   Identify drive
SATA device B   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device C   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device D   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
SATA device E   953.83 GB   ATA Hitachi HDE72101    1   IDE parameters | Identify drive
Run Code Online (Sandbox Code Playgroud)

突袭菜单显示:

Device name     Status  RAID level  Usable size     Member disk devices
/dev/md0    clean   RAID5 (Distributed Parity)  2.60 TB     /dev/sdb1 | /dev/sdc1 | /dev/sdd1 | /dev/sde1
Run Code Online (Sandbox Code Playgroud)

然后 \dev\md0 选项卡显示

Device file     /dev/md0
UUID    fcf48163:7efca14a:7bb08b15:81161d20
RAID level  RAID5 (Distributed Parity)
Filesystem status   Used in LVM VG volume
Usable size     2794526208 blocks (2.60 TB)
Persistent superblock?  Yes
Layout  left-symmetric
Chunk size  128 kB
RAID status     clean
Partitions in RAID  SATA device B partition 1
SATA device C partition 1
SATA device D partition 1
SATA device E partition 1 
Run Code Online (Sandbox Code Playgroud)

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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=437ea85c-1a1a-449f-a87f-e358cce2ba7e /               ext2    errors=remount                                                           -ro 0       1
# swap was on /dev/sdb5 during installation
UUID=8800da26-a98b-4a6b-aa96-917fc529bfe1 none            swap    sw                                                                         0       0
Run Code Online (Sandbox Code Playgroud)

光伏发电

  PV         VG     Fmt  Attr PSize PFree
  /dev/md0   volume lvm2 a-   2,60t    0
Run Code Online (Sandbox Code Playgroud)

例如,如何在启动时将 /dev/md0 安装到 /mnt/raidarray 中?

jaw*_*ark 5

假设您的块设备 /dev/md0已格式化,您可以发出以下命令:

sudo blkid /dev/md0

这将为您提供一个 UUID,并且通常会告诉您它的格式化文件系统。

然后将以下行添加到您的/etc/fstab

UUID=the-uui-blkid-gave-you /mnt/raidarray file-system-you-used defaults 0 0

然后键入sudo mount -a,您的设备应该已安装。请注意该目录/mnt/raidarray应该存在。