Jump to content

(SOLVED) Cache Drive docker file keeps getting corrupt


Timbiotic

Recommended Posts

I have a SSD drive with btrfs for my cache.  Lately it keeps going into read only and I have to rebuild the docker image.  I added a 2nd ssd thinking i was going to need to dump all the files in read only to save my cache.  But when i was able to fix it by rebuilding the docker image i decided to make a pool.  As soon as I put it back online the docker image corrupted again. 

 

What is causing the docker image to go corrupt almost everytime i stop it?  Should i switch to XFS? 

 

In another note and possibly related i cannot scrub the SSD disk without it immediately aborting.  Same when i click balance.  It doesnt say aborted but it doesnt seem to do anything either. When i created the pool i got the weird too many profile message.

 

Any suggestions / help would be appreciated.  For now I will rebuild the image again to get my normal operations going.

Edited by Timbiotic
resolved
Link to comment
5 minutes ago, johnnie.black said:

You needed to move the data off the cache pool and format, if it's now unmountable see here and use it to try and recover the data.

Thanks i have mounted it using the

mount -o degraded,recovery,ro /dev/sdX1 /x

command.  Just MC it now or should i create a share?  Also is it possible to copy to the new SSD in btrfs and make that the new pool and then format the old SSD and add it to that pool?

Edited by Timbiotic
Link to comment
Just now, johnnie.black said:

You need to copy to the array or an unassigned disk.

 

Don't understand the question.

I have a 2nd SSD i wanted to pool with the first one.  Instead of copying it to the array is it possible to copy to the unassigned disk and then make it the new cache drive with all the new files in place?  Then format the old drive and add it to the pool ending up with 2 SSDs in a new cache pool?

 

Or should i just back up to array, format and create new pool and move back (seems longer).

Link to comment

Yes, use unassigned devices to format the SSD using btrfs, when the copy is done make sure you start the array one time with no cache cache devices assigned, so Unraid "forgets" them, then stop the array and assign just that device, after that you can add the other one, but best to clear it first, you can use:

 

blkdiscard /dev/sdX

 

Replace X with correct letter.

  • Like 1
Link to comment
1 hour ago, johnnie.black said:

Yes, use unassigned devices to format the SSD using btrfs, when the copy is done make sure you start the array one time with no cache cache devices assigned, so Unraid "forgets" them, then stop the array and assign just that device, after that you can add the other one, but best to clear it first, you can use:

 


blkdiscard /dev/sdX

I get

root@lillis:/x# blkdiscard /dev/sdm
-bash: blkdiscard: command not found
root@lillis:/x#

 

Replace X with correct letter.

 

Link to comment

that worked typing it thanks so much i have a fully functional cache pool and docker setup again!  That being said is it normal not to see the pool space? Is an unraid cache pool like RAID 0 where it uses both disc's space or is it like RAID 1 mirrorred?

 

nevermind i found this in FAQ

 

Edited by Timbiotic
Link to comment
1 minute ago, Timbiotic said:

so if i change it will it wipe the discs in the process? 

No, conversion is online and no data is touched, and while it's a low risk operation a backup of anything important is always a good idea.

 

2 minutes ago, Timbiotic said:

I dont care about performance gain so would i do the jbod one for redundancy?

For redundancy use the default raid1 profile, there's no redundancy with the single profile (except metadata), if one device fails all pool is lost.

Link to comment
  • 1 year later...

I'm on 6.8.3 and have the same problem with btrfs.

Docker immage gets corrupted. BTRFS gets corrupted and I have to wipe and rebuild Docker. (Thankfully, I found the template function so reinstalling is quick.)

I have tried 3 different controllers (Motherboard SATA, SATA controller and a Dell LSI SAS/SATA controller).

I have tried 3 different SSD. In Mirror, Single, with and without Encryption. Does not matter. After a couple of weeks or so, it gets corrupted, SSD (BTRFS) read only.

Last time, I tried mount in main mode. Was able to run fs-check on the disk with the recover/fix option. Then remount disks and scrub it.

Now it is working again. Dont really care about the corruption part, I can always rebuild. However, why is it happening in the first hand? Ram, motherboard issue?

Cheers

Martin

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...