6.16 Delete RAID Segment

delete raid <raid_name> segment <number>

Delete a specified segment of an existing NSS software RAID device. This is valid only for RAID 1 and RAID 5 devices. RAID 5 can remove only 1 segment, but it must be replaced by another segment in order to have redundancy.

nlvm [nlvm_options] delete raid <raid_name> segment <number>

You are automatically prompted to confirm the delete action. Respond by typing yes or no, then press Enter. Use the --no-prompt NLVM option to suppress the confirmation prompt.

Use the --force NLVM option to remove out-of-sync segments.

Command Options
raid_name

Mandatory. Specify the name of the NSS software RAID device that contains the segment to be deleted.

Example

MYRAID1
number

Mandatory. Specify the segment index (zero relative) to be removed. For RAID 1, the value must be 0 to 3. For RAID 5, the value must be 0 to 13.

Example

0 
--no-prompt

Optional. Specify this NLVM option to prevent a confirmation message from being displayed.

Example

--no-prompt
-f , --force

Optional. Specify this NLVM option to force the command to delete out-of-sync segments.

Command Example
nlvm delete raid MYPOOL1 segment 0

Delete the first segment of the NSS software RAID device named MYRAID1.

nlvm --force delete raid MYPOOL1 segment 1

Delete the second segment of the NSS software RAID device named MYRAID1. Use the --force option to force the deletion of an out-of-sync segment.