btrfs partition missing


Recommended Posts

Good day everyone 

So this morning I was working on getting something set up on my new pc and I went to get the file off my unraid server and found one of my drives missing. I went and looked at the server interface  and saw the that drive was listed as “Unmountable: no file system” and was asking to formate that drive. So I thought thats was odd the SMART report looked fine. So i took the server offline and pulled the Unraid boot disk and booted in to an ssd with Ubuntu on and it showed the same with the main Disks tool that Ubuntu comes with. Then I tried Gparted tool and did show something was wrong with the drive.

The first thing was this error “end of file while reading /dev/sdc”  The button I pressed was “Ignore” to move on. Then got this error “The primary GPT table is corrupt, but the backup appears OK, so that will be used.”  The button I pressed “ok”. 

 after doing some quick Googling I decided to right click on the partition and use the “New UUID” option to see if that would work. It failed!

I think the drive is fine with the data is still there. I just need to figure out how to fix the partition table. 

Screenshot 2020-09-17 082309.png

Screenshot 2020-09-17 082337.png

gparted_details.htm

Link to comment

Was this a disk in the parity array, was it part of a cache pool, was it the only cache drive, or was it unassigned?

 

You should have asked for help before trying to work with the disk outside of Unraid. If the disk was part of the parity array then you have probably invalidated parity. All repairs should first be attempted within Unraid.

 

 

Link to comment

the drive is a cache drive 3tb about 20% 50% full last time i looked. all the disk on that list are normally in the server but the ssd is pasthough to a VM. there is no partity disk at this time it is dead and needs replaced.

i know my server is in need of some TLC or just an over hall, just not had the money to do it. i just trying to keep it up and run right now. any help in fixing the drive would be great.

Link to comment

so i installed the plugin and unassigned cache drive but now the array does not start. i see nothing that the plugin help with. and i knew that there was something was wrong with the partition. please read my first post. Gparted tool did see the issue was the partition table is missing but the backup table is there. how do we get the back up table to work or fix the first partition table.

Screenshot 2020-09-17 144328.png

Link to comment
1 hour ago, Adolpha_arts said:

but now the array does not start

There's a checkbox to allow starting the array without the cache assigned.

 

1 hour ago, Adolpha_arts said:

i knew that there was something was wrong with the partition

According to UD there's no partition, post the output of:

 

fdisk -l /dev/sde

 

 

 

Link to comment

It appears that the GPT corruption is causing an error that makes Unraid not even detect the exiting partition, I have no experience repairing GPT partitions, quick google search found this:

 

http://www.rodsbooks.com/gdisk/repairing.html

 

Another option would be to create a new partition on top of that one, it should work but I would recommend cloning the disk first with dd and try on the clone, if it works it might only mount with UD, not on the array/cache, but it would at least allow you to access the data.

 

P.S. don't try to change the btrfs UUID, it won't help and can cause further problems.

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.