Jump to content

Disable/Remove a drive from cache while the array is started


WEHA

Recommended Posts

I have write errors on a cache drive and now my VM's & Dockers are not responding (just opnsense).

mount|grep cache
/dev/nvme2n1p1 on /mnt/cache type btrfs (ro,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)

 

I'm on holiday so I don't want to stop the array to remove the disk.

Is there a way to tell unraid to stop using that disk?

I saw this but it does not seem to be right syntax for unraid: echo 1 > /sys/block/nvme0n1/device/delete

 

Sep 14 07:23:20 Tower kernel: BTRFS error (device nvme2n1p1): error writing primary super block to device 2

 

Label: none  uuid: 987c4458-3b7c-4bbe-af87-c2f8bdde7c60
        Total devices 2 FS bytes used 724.88GiB
        devid    1 size 931.51GiB used 903.54GiB path /dev/nvme2n1p1
        devid    2 size 0 used 0 path /dev/nvme0n1p1 MISSING

 

Sidenote: With errors like these, I would also think that it would give at least an error when I'm looking at the array itself?

 

Would it be a good idea to do the following?

btrfs device remove /dev/nvme0n1p1 /mnt/cache

 

How can I remount rw?

 

Thanks!

image.png

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.

×
×
  • Create New...