How to delete an array & its content in HPSSACLI or HP Smart Storage interface ?

We have seen how to create array in HPSSACLi earlier.

Today we will look how to delete an array or logical drive in HP Smart Storage Admin CLI.

Lets have a look at an example to understand this.

1. Lets have a look what logical drives we have and which one we want to delete.
For example:- Here i will delete logical drive number 2 which is array B.

bash-4.2# hpssacli ctrl all show config
Smart Array P440ar in Slot 0 (Embedded)   (sn: PDNLH0BRH8K44G)
   12G SAS Exp Card at Port 1I, Box 1, OK
   Port Name: 1I
   Port Name: 2I
   array A (SAS, Unused Space: 0  MB)
      logicaldrive 1 (5.5 TB, RAID 5, OK)
      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SAS, 1200.2 GB, OK)
      physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SAS, 1200.2 GB, OK, spare)

   array B (SAS, Unused Space: 0  MB)
      logicaldrive 2 (1.1 TB, RAID 1+0, OK)
      physicaldrive 1I:1:17 (port 1I:box 1:bay 17, SAS, 300 GB, OK)
      physicaldrive 1I:1:18 (port 1I:box 1:bay 18, SAS, 300 GB, OK)
      physicaldrive 1I:1:19 (port 1I:box 1:bay 19, SAS, 300 GB, OK)
      physicaldrive 1I:1:20 (port 1I:box 1:bay 20, SAS, 300 GB, OK)
      physicaldrive 1I:1:21 (port 1I:box 1:bay 21, SAS, 300 GB, OK)
      physicaldrive 1I:1:22 (port 1I:box 1:bay 22, SAS, 300 GB, OK)
      physicaldrive 1I:1:23 (port 1I:box 1:bay 23, SAS, 300 GB, OK)
      physicaldrive 1I:1:24 (port 1I:box 1:bay 24, SAS, 300 GB, OK)
   Enclosure SEP (Vendor ID HPE, Model 12G SAS Exp Card) 377  (WWID: 500143803521F2BC, Port: 1I, Box: 1)
   Expander 378  (WWID: 500143803521F2BD, Port: 1I, Box: 1)

2. Delete Logical drive 2 or array B.

bash-4.2# hpssacli ctrl slot=0 ld 2 delete
Warning: Deleting an array can cause other array letters to become renamed.
         E.g. Deleting array A from arrays A,B,C will result in two remaining
         arrays A,B ... not B,C
Warning: Deleting the specified device(s) will result in data being lost.
         Continue? (y/n) y
bash-4.2#

Thats it !! Now the logical drive is successfully deleted and the disks come into unassigned state.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments