-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathreplace_hd.txt
More file actions
executable file
·69 lines (45 loc) · 2.67 KB
/
Copy pathreplace_hd.txt
File metadata and controls
executable file
·69 lines (45 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmode环境:
::>storage show disk -broken
::>run local 切换到本地节点
以下命令和7mode相同:
node>disk show -v 查看坏盘的owner(system id)
node>sysconfig -a
node>aggr status -f 查看坏盘位置(xx.xx)
node>storage show disk -p 查看多路径的状态
node>aggr status -v 查看aggr的状态
node>led_on xx.xx 如果坏盘没有点亮故障灯需要用此命令
disk option show -fields autoassign
disk option modify -node * -autoassign off
更换磁盘:
node>disk show -n 查看在disk里面是否有没有
node>disk assign xx.xx 如果没有assign硬盘,需要用此命令assign磁盘(在查看之前的硬盘归属的机头做此操作)
node>aggr status -f 查看坏盘是否还存在
node>aggr status -s 查看spare盘
node>disk zero spares 如果新盘没有零化,需要手动
node>aggr status -r 查看整个aggr的状态是否正常
nas3020a> priv set advanced #退出advanced模式:priv set
nas3020a*> options autosupport #查看autosupport状态;
nas3020a*> options autosupport.enable on #打开autosupport;
# demo disk fail
cdlab::> disk fail -immediate true 1.0.10
cdlab::> storage show disk -broken
Original Owner: cdlab-01
Checksum Compatibility: block
Drawer Usable Physical
Disk Outage Reason HA Shelf Bay /Slot Chan Pool Type RPM Size Size
--------------- ------------- --- ----- --- ------ ---- ------ ----- ------ -------- --------
1.0.10 admin failed 0a 0 10 -/- A FAILED BSAS 7200 1.62TB 1.62TB
cdlab::> disk show -broken
Original Owner: cdlab-01
Checksum Compatibility: block
Drawer Usable Physical
Disk Outage Reason HA Shelf Bay /Slot Chan Pool Type RPM Size Size
--------------- ------------- --- ----- --- ------ ---- ------ ----- ------ -------- --------
1.0.10 admin failed 0a 0 10 -/- A FAILED BSAS 7200 1.62TB 1.62TB
cdlab::> set adv
cdlab::*> storage disk unfail -disk 1.0.10
Warning: Failed disk "1.0.10" may have aggregate labels and file system data present. In that case, this command will attempt to bring this disk back into the
aggregate with which this disk had formerly been associated and preserve file system data. Are you sure you want to continue with disk unfail?
{y|n}: y
cdlab::*> disk show -broken
There are no entries matching your query.