【求助】does not set the mode 是什么意思啊

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
exuan
帖子: 2
注册时间: 2018-06-08 22:16
系统: ubuntu

【求助】does not set the mode 是什么意思啊

#1

帖子 exuan » 2018-06-08 22:21

想要删除阵列,但“-s”这个参数就是不行,网上居然没有任何关于这个的解释,本人小白又不懂
在mdadm的help里面又有“-s”这个参数

就是附件截图的样子,新手求助
附件
QQ截图20180608215634.png
onlylove
论坛版主
帖子: 5229
注册时间: 2007-01-14 16:23

Re: 【求助】does not set the mode 是什么意思啊

#2

帖子 onlylove » 2018-06-09 1:19

你的问题,大概是没仔细看帮助文件
仔细看
mdadm [mode] <raiddevice> [options] <component-devices>
你那条命令,没有指定[mode],就这个意思
exuan
帖子: 2
注册时间: 2018-06-08 22:16
系统: ubuntu

Re: 【求助】does not set the mode 是什么意思啊

#3

帖子 exuan » 2018-06-09 8:54

onlylove 写了:你的问题,大概是没仔细看帮助文件
仔细看
mdadm [mode] <raiddevice> [options] <component-devices>
你那条命令,没有指定[mode],就这个意思
那我这条命令本来应该怎么写呢,求教
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 【求助】does not set the mode 是什么意思啊

#4

帖子 poloshiao » 2018-06-09 10:49

在mdadm的help里面又有“-s”这个参数
1. 在 Ubuntu 使用指令 mdadm 指令 請參閱 mdadm manpage
1-1. 每個版本的 Ubuntu 的 mdadm manpage 內容可能稍有差異
所以 要配合你使用的 Ubuntu 版本
1-2. 以下是 ubuntu 18.04 的 mdadm manpage
http://manpages.ubuntu.com/manpages/bio ... adm.8.html
NAME
mdadm - manage MD devices aka Linux Software RAID
-s, --scan # 小寫
Scan config file or /proc/mdstat for missing information. In
general, this option gives mdadm permission to get any missing
information (like component devices, array devices, array
identities, and alert destination) from the configuration file
(see previous option); one exception is MISC mode when using
--detail or --stop, in which case --scan says to get a list of
array devices from /proc/mdstat.
-S, --stop # 大寫
deactivate array, releasing all resources.
does not set the mode 是什么意思啊
2. mode 指下述紅字之一
http://manpages.ubuntu.com/manpages/bio ... adm.8.html
mdadm - manage MD devices aka Linux Software RAID
mdadm [mode] <raiddevice> [options] <component-devices>
MODES
mdadm has several major modes of operation:
Assemble
Assemble the components of a previously ...
Build
Build an array that doesn't have per-device ...
Create
Create a new array with per-device ...
Follow or Monitor[/color]
Monitor one or more md devices and act on ...
Grow Grow (or shrink) an array, or otherwise ...
Incremental Assembly
Add a single device to an appropriate ...
Manage
This is for doing things to specific ...
Misc
This is an 'everything else' mode ...
Auto-detect
This mode does not act on a specific ...

3. 參閱
3-1. 一般入門級參閱這一篇
https://help.ubuntu.com/community/Insta ... ftwareRAID
SoftwareRAID
3-2. 如果你使用 server iso 想要安裝 ubuntu 到 raid 請參閱這一篇
https://help.ubuntu.com/lts/serverguide ... tware-raid
Software RAID

4. 如果還有問題 請先說明你的 ubuntu 版本
回复