Could you point me to this manual? I am not sure which one to use. I greatly appreciate your help
but I can't offline the disk when it isn't there. I also can't get to the replace disk screen (see screenshot)
Yes, I can definitely add a virtual disk. does it have to be 4tb? also, what is the command to rename the disk? or is that something I have to do in proxmox?Mmm, yes, because you can't replace something in a pool that isn't there. Fascinating. You have a bootstrapping problem because you can't import the pool.
Are you able to add a virtual disk to the TrueNAS VM? It should be possible to relabel a disk to make that gptid appear, but I don't have the time to go set up a testbed to figure out the correct way to do that this afternoon.
Yes, I can definitely add a virtual disk. does it have to be 4tb? also, what is the command to rename the disk? or is that something I have to do in proxmox?
Maybe I am doing it wrong? But it doesn't look to have worked. zpool import -f Tank results in the same I/O error. Honestly, I am totally willing to send you a link if you want to remote-control my PC and mess with it yourself?I don't think it needs to be 4TB. Just a few GB probably. From the FreeBSD shell, you have to look for the new disk that got added, which may just be comparing output from "camcontrol devlist" or seeing what shows up in "dmesg" if you can do a hot add. It looks to me like it might be something in the upper ada's like ada4 or ada5.
Pretending ada5 were to show up, partitioning works along the lines of
gpart create -s gpt ada5
gpart add -t freebsd-zfs -a 1m -s 500m -l ourrescue ada5
This gets you a partitioned ada5 that should be along the lines of TrueNAS compatible. If you then look at it under "gpart list" you should see it with some made up rawuuid, and this should show up in "glabel list" output too.
Now I think what needs to happen is
glabel label gptid/11b39573-ad95-11ed-8d1c-7df9cea98351 ada5p2
or it may be ada5p1 because we didn't create two partitions... take a look in glabel list output to see what it ended up as.
At that point, I think you should be able to try to import the pool but it may freak out at the smaller disk. But I *think* it may let you replace the disk. Otherwise we have to try again with a larger disk, or someone has to come up with a more clever solution.
Maybe I am doing it wrong? But it doesn't look to have worked. zpool import -f Tank results in the same I/O error. Honestly, I am totally willing to send you a link if you want to remote-control my PC and mess with it yourself?
root@nas4:/tmp # gpart create -s gpt da9 da9 created root@nas4:/tmp # gpart add -t freebsd-zfs -a 1m -s 500m -l ourrescue da9 da9p1 added root@nas4:/tmp # glabel label gptid/11b39573-ad95-11ed-8d1c-7df9cea98351 da9p1 root@nas4:/tmp # glabel list da9p1 Geom name: da9p1 Providers: 1. Name: label/gptid/11b39573- Mediasize: 524287488 (500M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1048576 Mode: r0w0e0 secoffset: 0 offset: 0 seclength: 1023999 length: 524287488 index: 0 Consumers: 1. Name: da9p1 Mediasize: 524288000 (500M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1048576 Mode: r0w0e0
Just trying to get multiple eyes on it.Isn't this thread a duplicate?
Accidental format of disk
I am running TrueNAS Core on a Proxmox VM, with 3 hard drives passed through. they're running in raidz1. I accidentally formatted one of the drives...no big deal right? it's in raidz1. But the pool is unavailable. There is important data on these drives so I would hate to lose the data...www.truenas.com
Why post another thread?
I think you have the correct eyes on it right now, if there is any hope to fix it. Also, if you start getting advice and doing steps in another thread, how are the folks in this thread going to know what is happening? For this reason I will be removing your second thread. I understand your data is important and that is why I'm taking this action, it will protect you against doing something incorrect. You may need to wait for some more good advice to occur.Just trying to get multiple eyes on it.
I appreciate it. I am planning to do a full write up on how I solved this. On both threads. But no worries.I think you have the correct eyes on it right now, if there is any hope to fix it. Also, if you start getting advice and doing steps in another thread, how are the folks in this thread going to know what is happening? For this reason I will be removing your second thread. I understand your data is important and that is why I'm taking this action, it will protect you against doing something incorrect. You may need to wait for some more good advice to occur.
How would I go about doing that?I'm confused. Aide from the whole virtualization rigamaroll, why can't you just first offline and then replace (resilver) the missing drive in the RAIDZ1 vdev?
Even with only two of three drives online, shouldn't you be able to import the pool in a degraded state?
Am I wrong to think you would "offline" the XXXX9573 drive, and then "replace" it with an available drive?