Change GPTID of Disk

Status
Not open for further replies.

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
TL;DR It seems that after trying to remove a failed drive, the GPTID of one of my drives belonging to my Multimedia ZPool had it's GPTID changed and now is no longer detected when I try to import the volume. Skip to second post for the problem, read on for the details.

I have 4x3 TB (4 WD Greens) and 1x4 TB (HGST NAS Drive) in a RAIDZ2 array that stores all of my multimedia. About two or three days ago it started telling me this:
Code:
[smartd] Device: /dev/ada0, 1 Currently unreadable (pending) sectors
[smartd] Device: /dev/ada0, 1 Offline uncorrectable sectors


(/dev/ada0 is one of the green drives)

being unemployed and having no money I just ignored it.

When I woke up and attempted to watch some of my media nothing would load, I checked the interface and there were 3 messages: 1 about system upgrades, 1 about upgrading my Multimedia ZPool, and another one stating that my Multimedia ZPool was unavailable. I looked at the status of my Multimedia ZPool and it said 4 of the drives were in a RAIDZ2 array and one (the drive with the bad sector) was in a striped array. I went to go click on the "failed" drive in the striped array and hit replace and the only drive available was my 4 TB, so I clicked it but it said it couldn't replace it due to I/O being frozen.

So I shutdown and took the drive out, when I booted up it said that it couldn't find my Multimedia ZPool, the GUI said that there was an error and it couldn't determine the freespace. I decided to detach the volume (keeping the share info and data intact) and re-import it, but the volume wasn't there!

I rebooted and the volume still wasn't there to be imported, I noticed that my 4 TB wasn't attached (either my backplane in my case or the ports on my motherboard are goofy), so after reattaching it I hoped that it would now detect the volume, but it didn't. Even after a reboot.

I put all the drives back in and they're all detected by my system, but when I go to Import Volume there are no volumes to be imported! They're all listed under Import Disks but I don't know which filesystem to choose (I chose EXT2FS but it didn't seem to work) and also my mount point of Multimedia no longer exists.

How can I get back my 6 TB worth of data?!
 
Last edited:

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
According to the system I'm missing a disk, yet when I go to View Disks my 4 3TB drives and my 1 4TB drive are all listed!

Code:
[root@freenas] ~# zpool import
pool: Multimedia
id: 5240285203834519206
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-6X
config:

Multimedia UNAVAIL missing device
raidz2-0 ONLINE
gptid/2776f11a-9793-11e4-9035-d050995af954 ONLINE
gptid/282e290e-9793-11e4-9035-d050995af954 ONLINE
gptid/291b7a61-9793-11e4-9035-d050995af954 ONLINE
gptid/2a0bc2a6-9793-11e4-9035-d050995af954 ONLINE

Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.


According to this it seems that my HGST drive is the one that isn't detected
Code:
[root@freenas] ~# glabel status | sort
Name Status Components
gptid/2776f11a-9793-11e4-9035-d050995af954 N/A ada1p1
gptid/282e290e-9793-11e4-9035-d050995af954 N/A ada0p1
gptid/291b7a61-9793-11e4-9035-d050995af954 N/A ada3p1
gptid/2a0bc2a6-9793-11e4-9035-d050995af954 N/A ada5p1
gptid/2e5a06cd-9b41-11e4-b9b4-d050995af954 N/A ada2p1
gptid/ba7c7d3e-931c-11e4-8ba0-d050995af954 N/A da0p1
gptid/ba8846c3-931c-11e4-8ba0-d050995af954 N/A da0p2
gptid/d66cb059-a19c-11e4-a1dc-d050995af954 N/A ada7p1
gptid/fa6577b0-9826-11e4-9d8d-d050995af954 N/A ada4p1
gptid/fad16e60-9826-11e4-9d8d-d050995af954 N/A ada6p1

[root@freenas] ~# zpool import
Multimedia UNAVAIL missing device
raidz2-0 ONLINE
gptid/2776f11a-9793-11e4-9035-d050995af954 ONLINE
gptid/282e290e-9793-11e4-9035-d050995af954 ONLINE
gptid/291b7a61-9793-11e4-9035-d050995af954 ONLINE
gptid/2a0bc2a6-9793-11e4-9035-d050995af954 ONLINE


While looking at my GUI list of drives ada7p1 is my HGST. All the drives in the Multimedia ZPool seem to share a common GPTID of [number]-9793-11e4-9035-d050995af954 whereas somehow the HGST drive's GPTID was switched to d66cb059-a19c-11e4-a1dc-d050995af954. It seems all I need to do is switch a19c to 9793 and a1dc to 9035 to get it to be recognized, but how do I go about doing it?
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
Nope :( I spent about 4 or so hours with the guys in IRC helping me and no one had any idea how to fix it, the data wasn't extremely important but just takes a while to get back (days/weeks). In the interest of time I just decided to start over and destroyed the pool, recreating it as a RAIDZ pool since I now have one less drive.
 
Status
Not open for further replies.
Top