Jump to content
  • 0

Several days trying to remove a drive. How to use dpcmd ignore-poolpart?


Question

Posted

I am trying to remove a drive that won't remove, which Stablebit Scanner is telling me has no problems. After almost 5 days, I just want to remove it and I will manually move the files over to the pool but DrivePool will not let the drive go!

Starting at the top:

1) Tried to remove the drive traditional method and got Error "The directory name is invalid".

Looking at the service log, its Recycle bin somehow.

Quote

[RemoveDriveFromPool] Error moving file from \\?\Volume{c29fdf21-0f4b-41b9-9a1a-c540f54e1c28}\PoolPart.422717a2-17f9-4c2f-b66b-1227cf2442c0\$RECYCLE.BIN\S-1-5-21-3953242607-246582605-4038744675-1105\$RLB666J to \\?\GLOBALROOT\Device\HarddiskVolume30\$RECYCLE.BIN\S-1-5-21-3953242607-246582605-4038744675-1105\$RLB666J. Continuing removal. (Cannot create a file when that file already exists))

A) I did chkdsk

B ) Then the reset of the recycle bin (rd /s /q T:\$Recycle.bin), rebooted and that didn't work.

C) Let Stablebit scanner force check it again

D) Pulled the drive and tried to repair the problem on another PC. 

DrivePool will NOT remove the drive, same error over and over.

If anyone has any ideas on this I'm totally game to try and fix this. Otherwise:

2) I shut the server down. Removed the offending hard drive physically. Rebooted. "Drive is missing" in DrivePool. Chose the remove options. Completed, shut down. Put the drive back, rebooted the server. The drive was re-added to the gosh darned pool! Why does DrivePool do this? It makes no sense, I personally told Drviepool to remove the drive? Anyway:

3) Found dpcmd ignore-poolpart command, yet cannot find any syntax examples. I have tried so many different arguments. Now I assigned it a drive letter and am using this command:
 

Quote

dpcmd ignore-poolpart T: PoolPart.422717a2-17f9-4c2f-b66b-1227cf2442c0

LLMs are telling me should work but it does nothing. I am stuck. How the heck can I just remove this drive so I can dump it and replace it?

Pool.Part is correct in the command argument. Windows non-mapped path is \\?\Volume{c29fdf21-0f4b-41b9-9a1a-c540f54e1c28}\PoolPart.422717a2-17f9-4c2f-b66b-1227cf2442c0 (tried this didn't work either). 

Help?

 

 

5 answers to this question

Recommended Posts

  • 1
Posted
On 11/17/2025 at 11:57 AM, Shane said:

For example, in your case above (assuming T is the letter of your pool drive - not your poolpart disk), to ignore that particular poolpart you would use:

dpcmd ignore-poolpart T: 422717a2-17f9-4c2f-b66b-1227cf2442c0

As per above "T" has to be the pool's drive letter, not the poolpart disk's drive letter.

So if your pool drive letter was instead "P" then you would use:

dpcmd ignore-poolpart P: 422717a2-17f9-4c2f-b66b-1227cf2442c0
  • 1
Posted

Hi silk, my commiserations on having to deal with a borked recycle bin!

You were close. The syntax of the ignore command is: dpcmd ignore-poolpart pooldriveletterwithcolon poolpartuid

The syntax of the unignore command is: dpcmd unignore-poolpart poolpartpath

For example, in your case above (assuming T is the letter of your pool drive - not your poolpart disk), to ignore that particular poolpart you would use:

dpcmd ignore-poolpart T: 422717a2-17f9-4c2f-b66b-1227cf2442c0

While to reverse that, unignoring it, you could use:

dpcmd unignore-poolpart \\?\Volume{c29fdf21-0f4b-41b9-9a1a-c540f54e1c28}\PoolPart.422717a2-17f9-4c2f-b66b-1227cf2442c0

(as for why DrivePool put the poolpart disk back into the pool after it was removed while missing, that's because when a missing disk is removed DrivePool can't make any changes to that disk to mark that poolpart as no longer in use - and normally the expected reason to Remove a Missing disk is because the disk is dead and won't be showing back up!)

  • 0
Posted
On 11/17/2025 at 1:57 AM, Shane said:

Hi silk, my commiserations on having to deal with a borked recycle bin!

You were close. The syntax of the ignore command is: dpcmd ignore-poolpart pooldriveletterwithcolon poolpartuid

The syntax of the unignore command is: dpcmd unignore-poolpart poolpartpath

For example, in your case above (assuming T is the letter of your pool drive - not your poolpart disk), to ignore that particular poolpart you would use:

dpcmd ignore-poolpart T: 422717a2-17f9-4c2f-b66b-1227cf2442c0

While to reverse that, unignoring it, you could use:

dpcmd unignore-poolpart \\?\Volume{c29fdf21-0f4b-41b9-9a1a-c540f54e1c28}\PoolPart.422717a2-17f9-4c2f-b66b-1227cf2442c0

(as for why DrivePool put the poolpart disk back into the pool after it was removed while missing, that's because when a missing disk is removed DrivePool can't make any changes to that disk to mark that poolpart as no longer in use - and normally the expected reason to Remove a Missing disk is because the disk is dead and won't be showing back up!)

Ok this didn't work. Let me add more info here. 

image.png.a3ffcd2274bbc4d67205a36a9cf2ab56.png

This is the drive I am trying to remove. Just to make sure I got the poolpart info correct.

image.png.7a3c059e43e50913221fbe388392a97f.png

Ran the command in command prompt.

image.png.596ca96274c2ca7505f5c275da181614.png

Ran it in an admin elevated command prompt.

I did it in powershell as well and got the same results, including the same error in elevated shell.

image.png.3bd301ed5e4ac535aa506dfa9b92b87d.png

Drivepool will not let the drive go. 

What can I do now? 

 

  • 0
Posted
2 hours ago, Shane said:

As per above "T" has to be the pool's drive letter, not the poolpart disk's drive letter.

So if your pool drive letter was instead "P" then you would use:

dpcmd ignore-poolpart P: 422717a2-17f9-4c2f-b66b-1227cf2442c0

Duh, that was it, thank you!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...