Hello everyone. First of all I would like to say I am far from being an expert on drives or ZFS, so please forgive me if I make stupid questions.
I had setup a home NAS running on al old computer I had on my parents’ house. It was an easy setup, nothing to complex or professional, as the only purpose I needed it to fulfill was to use it as a personal cloud to store my files and be able to access it remotely using a VPN (I study abroad so it was just convenient). It ran TrueNAS SCALE and had 2 2TB drives configured in MIRROR so that I wouldn’t lose the data if one of the disks failed (or so I thought). It worked perfectly for almost a year, but a couple of days back I got a warning message saying that the pool status changed to degraded. Taking advantage of a short visit I made to my home, I checked on the NAS and figured out that one of the disks had completely failed (now reading I believe it was not suitable for the use I was giving it), so I detached it, and the pool was working fine again, just with a warning that said there was no redundancy. At this point, I thought of buying a new hard drive and restoring the pool as I had it before, with 2 drives on mirror. The problem is that, while I was waiting for the new drive to arrive, I decided it was a good idea to upgrade the TrueNAS software version, as it was recommended to have the latest version. After the reboot of the system, the pool now appears offline and the only disk I had is unassigned.
At this point I started researching and I’ve seen that I am not the first one to have this issue, I just can’t get any conclusions on how to retrieve the data. I know for a fact the data is still on the disk, because the pool appears as exported, and if I tried to create a new pool with that disk a warning message appears saying there is information on that disk that will be deleted. If I try to import the pool, an error occurs (I believe is an I/O error, but I’m not 100% sure right now)
My only question is: is there any way of retrieving the data on that disk/pool, or is it gone forever?
Thanks in advance to everyone and apologies for my ignorance
PS: Obviously I’ll be more than happy to rethink the whole thing and correct my mistakes if you tell me so after recovering the data.
Please go to System Settings / Shell and run the following commands, and then post the output here with the output of each command in a separate </> box:
NAME MODEL ROTA PTTYPE TYPE START SIZE PARTTYPENAME
sda ST500 1 gpt disk 500107862016
├─sda1 1 gpt part 4096 1048576 BIOS boot
├─sda2 1 gpt part 6144 536870912 EFI System
├─sda3 1 gpt part 34609152 482387959296 Solaris /usr & Apple ZFS
└─sda4 1 gpt part 1054720 17179869184 Linux swap
└─sda4 1 crypt 17179869184
sdb Expan 1 gpt disk 2000398929920
└─sdb1 1 gpt part 1048560 1999813636096 Solaris /usr & Apple ZFS
sdc Multi 1 disk 0
sr0 hp DV 1 rom 1073741312
lsblk: unknown column: SIZ
sudo zpool import
pool: Pool
id: 16094169060964837570
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
Pool ONLINE
71ced144-2c09-4d71-9a4d-1ad4d14b08b5 ONLINE
admin@truenas[~]$
admin@truenas[~]$ sudo zpool import
pool: Pool
id: 16094169060964837570
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
Pool ONLINE
71ced144-2c09-4d71-9a4d-1ad4d14b08b5 ONLINE
admin@truenas[~]$ sudo zpool import
pool: Pool
id: 16094169060964837570
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
Pool ONLINE
71ced144-2c09-4d71-9a4d-1ad4d14b08b5 ONLINE
admin@truenas[~]$ sudo zpool import Pool
[sudo] password for admin:
cannot import 'Pool': one or more devices is currently unavailable
admin@truenas[~]$
The drive (only one right now as the other one is out) is a Seagate expansion drive SEAGATE SRD00F2 connected via usb to the back of the computer. Computer is a Compaq 100-101 es desktop series.
I have also run the lspci command. Here are the results:
admin@truenas[~]$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 7310]
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
04:00.0 Ethernet controller: Qualcomm Atheros AR8152 v2.0 Fast Ethernet (rev c1)
After the software update of the trueNAS scale software the system would not let me start due to the faulty disk. I turned off the computer and unplugged the drive. After that, re-started and has these issues I’m sharing, including the /dev with a size of 0 bytes.