Cannot format NVME cache drive


Go to solution Solved by toasty_tt,

Recommended Posts

I recently added a spare NVME drive to my unraid server using a PCIE adapter. It shows up correctly and i'm able to add it to the cache pool, but it says: Unmountable: Unsupported partition layout. I have the option to format, but when i try to do this, the status doesn't change. I checked the disk log and I'm getting some MBR errors:

 

Oct 12 00:05:47 Tower kernel: nvme0n1: p1
Oct 12 00:05:47 Tower root: /dev/nvme0n1: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
Oct 12 00:05:47 Tower root: /dev/nvme0n1: 8 bytes were erased at offset 0xe8e0db5e00 (gpt): 45 46 49 20 50 41 52 54
Oct 12 00:05:47 Tower root: /dev/nvme0n1: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
Oct 12 00:05:47 Tower root: /dev/nvme0n1: calling ioctl to re-read partition table: Success
Oct 12 00:05:47 Tower kernel: nvme0n1: p1
Oct 12 00:05:47 Tower  emhttpd: writing MBR on disk (nvme0n1) with partition 1 offset 2048, erased: 0
Oct 12 00:05:47 Tower  emhttpd: error: mkmbr, 2187: Input/output error (5): write: /dev/nvme0n1
Oct 12 00:05:47 Tower kernel: nvme0n1: I/O Cmd(0x1) @ LBA 0, 8 blocks, I/O Error (sct 0x0 / sc 0x4) MORE 
Oct 12 00:05:47 Tower kernel: I/O error, dev nvme0n1, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
Oct 12 00:05:47 Tower kernel: Buffer I/O error on dev nvme0n1, logical block 0, lost async page write

 

The drive worked fine when it was in my pc, and the smart report I generated came back with no errors. The drive is still formatted as NTFS with my old data on it (that i've already moved).

Link to comment

Oh thanks for this solution, I've been getting similar issue where I replaced/upgraded my NVME cache with a larger drive, and reassigned the existing cache disk to an Unassigned disk. As a result, for some reason the "old" cache disk (now 2nd NVME) would show up with the option to FORMAT, but after that would only present the option to Preclear, which I did, but then I cannot utilise it as an Unassigned disk because the MOUNT option never becomes usable:

 

image.png.ae46ccc463482ffc501b666a5caf9832.png

After formatting it and Preclearing it a few times, nothing seemed to be working.

I also cleared the disk a few times, deleting all partitions.

After clearing the disk a final time and performing a full system reboot, it seemed to become usable again:

image.png.aa9868f0d6e3b94dc47a695f0ecdc70d.png

 

Seems like a odd bug somewhere, maybe?

Link to comment
On 10/13/2022 at 11:32 AM, toasty_tt said:

I decided to take the drive out and make the MBR via disk management, and then put the drive back in the server, and I'm able to use it as a cache drive without issue now.

I am assuming that you rebooted the server during this operation?

Ie: shut down, remove disk, format in another machine, repace in original machine, startup?

 

Since this is marked as the solution, I wonder if its the reboot that is important?

Also, is there a way to reset this without rebooting?

Edited by KptnKMan
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.