Zpool import - disk offline ?

mkukoleca

Cadet
Joined
May 10, 2021
Messages
5
Hello guys. I have a 6 drive RAIDZ-1 setup. Was replacing one drive (probably gptid/47af1739) and after booting, pool was OFFLINE/Data not available.

1640447268872.png




A ssh-ed into my server and it shows that gptid/4766b1cd is offline ?!

Code:
root@truenas[~]# zpool import
   pool: Kukoleca
     id: 9915218132335776628
  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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-3C
 config:


        Kukoleca                                        UNAVAIL  insufficient replicas
          raidz1-0                                      UNAVAIL  insufficient replicas
            gptid/4766b1cd-fd2b-11eb-b130-e0d55e1a567a  OFFLINE
            gptid/4773a2ad-fd2b-11eb-b130-e0d55e1a567a  ONLINE
            gptid/47af1739-fd2b-11eb-b130-e0d55e1a567a  UNAVAIL  cannot open
            gptid/47891a3d-fd2b-11eb-b130-e0d55e1a567a  ONLINE
            gptid/47999bf7-fd2b-11eb-b130-e0d55e1a567a  ONLINE
            gptid/977351fb-4d4b-11ec-8f9f-e0d55e1a567a  ONLINE



But gptid/4766b1cd is present (ADA3):

Code:
root@truenas[~]# glabel status
                                      Name  Status  Components
gptid/279373fc-b75a-11eb-bdd1-e0d55e1a567a     N/A  nvd0p1
gptid/47891a3d-fd2b-11eb-b130-e0d55e1a567a     N/A  ada0p2
gptid/47999bf7-fd2b-11eb-b130-e0d55e1a567a     N/A  ada1p2
gptid/4773a2ad-fd2b-11eb-b130-e0d55e1a567a     N/A  ada2p2
gptid/4766b1cd-fd2b-11eb-b130-e0d55e1a567a     N/A  ada3p2
gptid/977351fb-4d4b-11ec-8f9f-e0d55e1a567a     N/A  ada4p2
gptid/975b03d7-4d4b-11ec-8f9f-e0d55e1a567a     N/A  ada4p1
gptid/473e7825-fd2b-11eb-b130-e0d55e1a567a     N/A  ada3p1
gptid/470368fb-fd2b-11eb-b130-e0d55e1a567a     N/A  ada2p1
gptid/4722dbb4-fd2b-11eb-b130-e0d55e1a567a     N/A  ada1p1
gptid/47172efe-fd2b-11eb-b130-e0d55e1a567a     N/A  ada0p1


How can I get it online and import the pool? Any help? Much appreciated. Thank you all in advance.

Regards, Miroslav.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Check your drive cabling. Usually when a drive goes offline, there's a cabling issue.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Try shuffling your offline drive to another port. It could be you have a bad port. If the drive comes online on another port, but the drive that shuffled to its old port goes offline, that's an indicator of a failed port.
 

mkukoleca

Cadet
Joined
May 10, 2021
Messages
5
Samuel, thank you for your suggestions. Tried, but to no avail :(
Is there a command to bring device back to online status?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Yes, but I don't know if it will work with your pool in an non-imported state. Try zpool online Kukoleca gptid/4766b1cd-fd2b-11eb-b130-e0d55e1a567a. Since the offline status persists, it's likely you offlined the wrong drive.
 

mkukoleca

Cadet
Joined
May 10, 2021
Messages
5
Code:
root@truenas[~]# zpool online Kukoleca gptid/4766b1cd-fd2b-11eb-b130-e0d55e1a567a
cannot open 'Kukoleca': no such pool
root@truenas[~]#
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Try shutting down, and removing the power cord until all capacitors drain. Then power up again.
 
Top