当前位置: 首页 > news >正文

[vmware+openeuler22.03]创建软RAID

1.添加虚拟硬盘
如下图所示添加4块成员硬盘(RAID6的最小成员硬盘数量为4)
image

2.安装mdadm

sudo yum install mdadm

image

3.创建RAID
查看mdadm的使用方法

Joe@openeuler ~]$ sudo mdadm --create --help
Usage:  mdadm --create device --chunk=X --level=Y --raid-devices=Z devicesThis usage will initialise a new md array, associate somedevices with it, and activate the array.   In order to create anarray with some devices missing, use the special word 'missing' inplace of the relevant device name.Before devices are added, they are checked to see if they already containraid superblocks or filesystems.  They are also checked to see ifthe variance in device size exceeds 1%.If any discrepancy is found, the user will be prompted for confirmationbefore the array is created.  The presence of a '--run' can override thiscaution.If the --size option is given then only that many kilobytes of eachdevice is used, no matter how big each device is.If no --size is given, the apparent size of the smallest drive givenis used for raid level 1 and greater, and the full device is used forother levels.Options that are valid with --create (-C) are:--bitmap=          -b : Create a bitmap for the array with the given filename: or an internal bitmap if 'internal' is given--chunk=           -c : chunk size in kibibytes--rounding=           : rounding factor for linear array (==chunk size)--level=           -l : raid level: 0,1,4,5,6,10,linear,multipath and synonyms--parity=          -p : raid5/6 parity algorithm: {left,right}-{,a}symmetric--layout=             : same as --parity, for RAID10: [fno]NN --raid-devices=    -n : number of active devices in array--spare-devices=   -x : number of spare (eXtra) devices in initial array--size=            -z : Size (in K) of each drive in RAID1/4/5/6/10 - optional--data-offset=        : Space to leave between start of device and start: of array data.--force            -f : Honour devices as listed on command line.  Don't: insert a missing drive for RAID5.--run              -R : insist of running the array even if not all: devices are present or some look odd.--readonly         -o : start the array readonly - not supported yet.--name=            -N : Textual name for array - max 32 characters--bitmap-chunk=       : bitmap chunksize in Kilobytes.--delay=           -d : bitmap update delay in seconds.--write-journal=      : Specify journal device for RAID-4/5/6 array--consistency-policy= : Specify the policy that determines how the array-k : maintains consistency in case of unexpected shutdown.

我们使用到上面的 --chunk --level --raid-devices参数

sudo mdadm --create /dev/md0 --chunk=1M --level=6 --raid-devices=4 /dev/sdb /dev/sdc /dev/sdd /dev/sde

image
至此完成阵列创建

http://www.hskmm.com/?act=detail&tid=24230

相关文章:

  • C++右值引用
  • 价值处理单元(VPU)专题研究:构建可信AI的基石
  • NOIP模拟赛记录
  • 软件工程第一次作业--关于未来规划和自我发展
  • 2025太阳能厂家推荐天津龙腾,太阳能热水系统,发电系统,光伏热系统,热水工程系统,预加热系统,中央热水系统,彩图发电系统,分户储水系统,分户计量系统推荐
  • 集训模拟赛日志
  • 1688 商品采集 API 调用全流程分享:从准备到实操 - 实践
  • 2025最新推荐化妆品代工公司排行榜:含 OEM / ODM / 一站式服务企业,助力品牌方精准选合作方
  • 悟空博弈单元(WBUC)专题研究:面向可能性计算的结构化创新架构
  • 访问控制、用户认证、https - 实践
  • GO_基础
  • sg.完整布局演示
  • sg.justification用法
  • Set
  • SCCPC2021重现赛
  • Ros2_control浅析——一个机器人开发通用框架的结构(1)
  • 图的计数问题没做
  • 11_linux镜像下载
  • CF2152 Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) 游记
  • 框架系统在自然语言处理深度语义分析中的作用、挑战与未来展望 - 实践
  • 10_windows11安装virtualbox
  • 9_windows11安装docker
  • 英语语法填空
  • 从涌现到戏台:AI元人文构想的演进历程
  • 题解:P14124 [SCCPC 2021] Nihongo wa Muzukashii Desu
  • QBXT2025S Day3题
  • python+vue在线视频课程学习系统设计(源码+文档+调试+基础修改+答疑) - 详解
  • pdf翻译
  • 【做题记录】CF2600左右有趣的思维题1
  • 【Android】RuntimeShader 应用