|
|
|||
|
||||
There are two commands you can use to cause a disk to fail and/or be removed from the system:
Command |
Result |
disk fail |
Causes a disk to be marked as failed. This is also a standard Filer/NearStore
command so is documented in the normal manual set. You can use disk
unfail to
make the disk usable again. This functionality is also available in FilerView. |
disk simpull |
Simulates the disk being physically removed from the system. You can
use disk simpush to add the disk back to the system (see disk
simpush -l
on the CLI for a list of disks you can re-add) See also deleting disks |
Here is an example for pulling a spare disk:
sim> vol status -s
Spare disks
RAID Disk Device HA SHELF BAY CHAN Used (MB/blks) Phys (MB/blks)
--------- ------ --------------- ---- -------------- --------------
Spare disks for block or zoned checksum volumes
spare v0.2 v0 0 2 FC:A 36/74752 42/87168 (not zeroed)
sim> disk simpull v0.2
Wed Dec 10 23:11:40 GMT [raid.disk.pulled:error]: Disk v0.2 Shelf 0 Bay 2 [NETAPP VD-16MB-FZ-520 0042] S/N [31002902] has been pulled from the system
Wed Dec 10 23:11:40 GMT [raid.config.spare.disk.missing:info]: Disk v0.2 Shelf 0 Bay 2 [NETAPP VD-16MB-FZ-520 0042] S/N [31002902]
sim> Wed Dec 10 23:11:41 GMT [ses_admin:info]: initiating rescan on channel v0
Wed Dec 10 23:11:41 GMT [ses_admin:info]: initiating rescan on channel v4
sim> vol status -s
Spare disks (empty)
sim>
To re-insert the disk we do the following:
sim> disk simpush -l
The following pulled disks are available for pushing:
v0.2:NETAPP__:VD-16MB-FZ-520__:31002902:87168
sim> disk simpush v0.2:NETAPP__:VD-16MB-FZ-520__:31002902:87168
sim> Wed Dec 10 23:12:45 GMT [ses_admin:info]: initiating rescan on channel v0
Wed Dec 10 23:12:45 GMT [ses_admin:info]: initiating rescan on channel v4
Wed Dec 10 23:12:48 GMT [raid.disk.inserted:info]: Disk v0.2 (S/N 31002902) has been inserted into the system
Wed Dec 10 23:12:48 GMT [dyn_dev_qual_admin:info]: Firmware is up-to-date on all disk drives
sim> vol status -s
Spare disks
RAID Disk Device HA SHELF BAY CHAN Used (MB/blks) Phys (MB/blks)
--------- ------ --------------- ---- -------------- --------------
Spare disks for block or zoned checksum volumes
spare v0.2 v0 0 2 FC:A 36/74752 42/87168 (not zeroed)