3PAR StoreServ Storage
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove a PD permanently.

SOLVED
Go to solution
dennischen
Advisor

Remove a PD permanently.

Hi Everyone,

IHAC want to remove some disks form 3par 8400.

I have some steps as below, which can dismiss the PD. But I still have some quries. So Thanks a lot if anyone give me some advice...

movepdtospare -dr 59                                           #assume the PD to remove is 59, dry run the movepdtospare
movech -perm 59:0-11:765 59:1-4:769 59:3-3:768              #move the chunks from pd59 to another spare chunks
showpdch -from 59                                              #verify there is no connection in pd 59
removespare 59                                                    #remove the spare chunks
dismisspd 59                                                        #successfully dismiss the pd 59

Then moved chunks are still in the spare space. How can I move these chunks to normal space?

sim8200a cli% showpd -c -p -devtype FC
-------- Normal Chunklets -------- ---- Spare Chunklets ----
- Used - -------- Unused --------- - Used - ---- Unused ----
Id CagePos Type State Total OK Fail Free Uninit Unavail Fail OK Fail Free Uninit Fail
0 0:0:0 FC normal 819 17 0 756 0 0 0 0 0 46 0 0
1 0:1:0 FC normal 819 18 0 755 0 0 0 0 0 46 0 0
2 0:2:0 FC normal 819 18 0 755 0 0 0 0 0 46 0 0
3 0:3:0 FC normal 819 18 0 755 0 0 0 1 0 45 0 0
4 0:4:0 FC normal 819 16 0 757 0 0 0 3 0 43 0 0
5 0:5:0 FC normal 819 17 0 756 0 0 0 0 0 46 0 0
6 0:6:0 FC normal 819 19 0 754 0 0 0 0 0 46 0 0
7 0:7:0 FC normal 819 18 0 755 0 0 0 1 0 45 0 0
8 0:8:0 FC normal 819 16 0 757 0 0 0 1 0 45 0 0
9 0:9:0 FC normal 819 17 0 756 0 0 0 0 0 46 0 0
10 0:10:0 FC normal 819 19 0 754 0 0 0 0 0 46 0 0
11 0:11:0 FC normal 819 18 0 755 0 0 0 1 0 45 0 0
24 1:0:0 FC normal 819 17 0 756 0 0 0 0 0 46 0 0
25 1:1:0 FC normal 819 16 0 757 0 0 0 0 0 46 0 0
26 1:2:0 FC normal 819 19 0 754 0 0 0 0 0 46 0 0
27 1:3:0 FC normal 819 19 0 754 0 0 0 0 0 46 0 0
28 1:4:0 FC normal 819 16 0 757 0 0 0 0 0 46 0 0
29 1:5:0 FC normal 819 16 0 757 0 0 0 0 0 46 0 0
30 1:6:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
31 1:7:0 FC normal 819 18 0 756 0 0 0 0 0 45 0 0
32 1:8:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
33 1:9:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
34 1:10:0 FC normal 819 18 0 756 0 0 0 0 0 45 0 0
35 1:11:0 FC normal 819 18 0 756 0 0 0 0 0 45 0 0
48 2:0:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
49 2:1:0 FC normal 819 18 0 756 0 0 0 3 0 42 0 0
50 2:2:0 FC normal 819 18 0 756 0 0 0 1 0 44 0 0
51 2:3:0 FC normal 819 19 0 755 0 0 0 0 0 45 0 0
52 2:4:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
53 2:5:0 FC normal 819 18 0 756 0 0 0 0 0 45 0 0
54 2:6:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
55 2:7:0 FC normal 819 18 0 756 0 0 0 1 0 44 0 0
56 2:8:0 FC normal 819 17 0 757 0 0 0 0 0 45 0 0
57 2:9:0 FC normal 819 16 0 758 0 0 0 2 0 43 0 0
58 2:10:0 FC normal 819 18 0 756 0 0 0 0 0 45 0 0
59 2:11:0 FC normal 819 0 0 819 0 0 0 0 0 0 0 0
-----------------------------------------------------------------------------------------
36 total 29484 612 0 26460 0 0 0 14 0 1579 0 0

 

8 REPLIES
giladzzz
Honored Contributor
Solution

Re: Remove a PD permanently.

Hi

 

this is the procedure I have

  RemovePD
Step                          Command                                                                   Purpose
1             setpd ldalloc off <DiskID>                                                     To stop data to drive - Repeat for all PDs
2             showpd -s                                                                              Make sure disks are in Degraded state
3             movepdtospare -f -vacate -nowait <DiskID>                       Vacate all data from PD
4             showpdch -mov                                                                    See the Remaining chunklets to be moved
5             movech -perm -ovrd X:Y                                   OPTIONAL: If getting an error, move Chunklet manually (example X                                                                                              is the PDID and Y is the Chunklet number) repeat till disk is empty
6               showpdch -spr <DiskID>                                                 Shows the Spare chunklets on the PD
7                removespare PDID:a                                                      Removes the Spare chunklets from the PD
8                dismisspd <DiskID>                                                       Dismisses the PD from the 3PAR
9                 Redo Steps 3-7 for all PDs
10               Remove All PDs from Cage                                         Remove the vacated PDs from the 3PAR
11                 tunesys -chunkpct 1                                                   Tune System

 

Reagrds

Give a KUDO if this helps

 

 

Dennis Handly
Acclaimed Contributor

Re: Remove a PD permanently

> removespare 59                # remove the spare chunks

 You need: removespare 59:a

Sarangpatil44
Occasional Collector

Re: Remove a PD permanently.

When we are running cmd dismissepd 23 then we got on error "pd I'd 23 is referenced by chunklet 1:221"
Dennis Handly
Acclaimed Contributor

Re: Remove a PD permanently

> When we are running dismisspd 23 then we got error

 

Why do you want to remove the PD?  The proper command is servicemag to replace them.

If you really really want to dismisspd, you need to follow all of the instructions in this topic by @giladzzz.

Sarangpatil44
Occasional Collector

Re: Remove a PD permanently

We followed all below mentioned steps
RemovePD
Step Command Purpose
1 setpd ldalloc off <DiskID> To stop data to drive - Repeat for all PDs
2 showpd -s Make sure disks are in Degraded state
3 movepdtospare -f -vacate -nowait <DiskID> Vacate all data from PD
4 showpdch -mov See the Remaining chunklets to be moved
5 movech -perm -ovrd X:Y OPTIONAL: If getting an error, move Chunklet manually (example X is the PDID and Y is the Chunklet number) repeat till disk is empty
6 showpdch -spr <DiskID> Shows the Spare chunklets on the PD
7 removespare PDID:a Removes the Spare chunklets from the PD
8 dismisspd <DiskID> Dismisses the PD from the 3PAR

But when we run dismissed pdid then we are getting error "pd I'd 23 is referenced by chunklet 1:221"
Dennis Handly
Acclaimed Contributor

Re: Remove a PD permanently

> we are getting error "pd Id 23 is referenced by chunklet 1:221" 

 

Again, why do you want to dismiss the PD?

You're going to have to provide the output from the commands you did.

But before you start, please provide this output:

showpdch -mov

Sarangpatil44
Occasional Collector

Re: Remove a PD permanently

 

Hi,

--why do you want to dismiss the PD?

 We have 2 3 par in are enviorment and in one 3par we are facing space church and in one 3par we have lot of space so we are planning to move PD form one 3par to another 3par

--showpdch -mov--Attcheh 

 

Dennis Handly
Acclaimed Contributor

Re: Remove a PD permanently

> showpdch -mov --Attached

Looks like none of the 337 chunklets were moved correctly.

Did you get any errors on these two steps?

3 movepdtospare -f -perm -nowait <DiskID> Vacate all data from PD
5 movech -perm -ovrd X:Y OPTIONAL: If getting an error, move Chunklet manually