Hi all,
I have an encrypted storage pool which spans over three RAID-Z2 vdevs.
During some cable management in my chassis, one of the harddrives was not properly attached to the backplane, and thus was not discovered by FreeNAS when I unlocked the pool. This resulted in the device being unavaliable, and the pool being in a degraded state.
I am now having trouble attaching the drive to the pool again. After properly attaching the drive, I have tried the following:
1. Locking the pool and unlocking it again
2. Rebooting FreeNAS and unlocking the pool
3. Offlining the device, and onlining it again in the console
When checking /dev/gptid, the device is listed (19c89a0f-5111-11e4-9f6f-000c29e6c5f0), but is not unlocked (19c89a0f-5111-11e4-9f6f-000c29e6c5f0.eli is missing).
So offlining/onlining the device would obviously not work, as I cannot online the unlocked volume, as FreeNAS has not unlocked it. My guess is that FreeNAS does not even attempt to unlock the drive, as it believes that it is missing, and needs to be replaced.
Is there a way to manually unlock the drive and mount it to 19c89a0f-5111-11e4-9f6f-000c29e6c5f0.eli, and thus be able to online it again?
Or should I try to clear the fault with:
And then attempt to lock/unlock the pool again?
Appreciate your help, would prefer not to resilver when the drive is not faulty.
EDIT: Just tried to manually unlock the drive using:
Where /tmp/Z1D37JBN.eli is the drive encryption key backed up using Dusan's script (https://forums.freenas.org/index.ph...gle-freenas-primary-storage.17316/#post-93073). It prompted me for my passphrase, but gave the following after I entered the passphrase to unlock the drive.
I also tried to clear the pool for errors and lock/unlock the pool, but it still refused to unlock my drive.
I have an encrypted storage pool which spans over three RAID-Z2 vdevs.
During some cable management in my chassis, one of the harddrives was not properly attached to the backplane, and thus was not discovered by FreeNAS when I unlocked the pool. This resulted in the device being unavaliable, and the pool being in a degraded state.
I am now having trouble attaching the drive to the pool again. After properly attaching the drive, I have tried the following:
1. Locking the pool and unlocking it again
2. Rebooting FreeNAS and unlocking the pool
3. Offlining the device, and onlining it again in the console
When checking /dev/gptid, the device is listed (19c89a0f-5111-11e4-9f6f-000c29e6c5f0), but is not unlocked (19c89a0f-5111-11e4-9f6f-000c29e6c5f0.eli is missing).
So offlining/onlining the device would obviously not work, as I cannot online the unlocked volume, as FreeNAS has not unlocked it. My guess is that FreeNAS does not even attempt to unlock the drive, as it believes that it is missing, and needs to be replaced.
Is there a way to manually unlock the drive and mount it to 19c89a0f-5111-11e4-9f6f-000c29e6c5f0.eli, and thus be able to online it again?
Or should I try to clear the fault with:
Code:
zpool clear sPool 19c89a0f-5111-11e4-9f6f-000c29e6c5f0.eli
And then attempt to lock/unlock the pool again?
Appreciate your help, would prefer not to resilver when the drive is not faulty.
EDIT: Just tried to manually unlock the drive using:
Code:
geli attach -k /tmp/Z1D37JBN.eli /dev/gptid/19c89a0f-5111-11e4-9f6f-000c29e6c5f0
Where /tmp/Z1D37JBN.eli is the drive encryption key backed up using Dusan's script (https://forums.freenas.org/index.ph...gle-freenas-primary-storage.17316/#post-93073). It prompted me for my passphrase, but gave the following after I entered the passphrase to unlock the drive.
Code:
geli: Wrong key for gptid/19c89a0f-5111-11e4-9f6f-000c29e6c5f0.
I also tried to clear the pool for errors and lock/unlock the pool, but it still refused to unlock my drive.
Last edited: