jyavenard
Patron
- Joined
- Oct 16, 2013
- Messages
- 361
Hi.
I'm in the process of removing on all my disks (12 of them) the geli encryption.
so I did:
`zpool offline pool gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli`
`geli detach gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli`
`zpool replace pool gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli gptid/8bd09417-36ac-11ee-8e52-3cecef479fec`
so far so good. Done 10 so far.
Now one disk failed in the process right after I got spurious smart errors.
So I replaced the disk with a spare. But whenever I attempt to replace the existing disk from the zpool, which is now offline ; TrueNAS keeps replacing it with a a geli one.
I can offline that one for sure and do it manually. But that got me curious. What is the way to replace a disk without getting geli involved?
If I detach /dev/ata2 (where the drive being replaced is connected to) then TrueNAS also delete the GPT partition too and I'm left with just as /dev/ata2 device.
I've always been told to not plainly give a /dev/ata2 device to zfs, it makes it hard to track the disk in the future, and additionally linux has trouble with those zpool.
So how can I create a similar schema on the disk as what truenas is doing when replacing a disk, but without geli ?
Thanks
I'm in the process of removing on all my disks (12 of them) the geli encryption.
so I did:
`zpool offline pool gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli`
`geli detach gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli`
`zpool replace pool gptid/8bd09417-36ac-11ee-8e52-3cecef479fec.eli gptid/8bd09417-36ac-11ee-8e52-3cecef479fec`
so far so good. Done 10 so far.
Now one disk failed in the process right after I got spurious smart errors.
So I replaced the disk with a spare. But whenever I attempt to replace the existing disk from the zpool, which is now offline ; TrueNAS keeps replacing it with a a geli one.
I can offline that one for sure and do it manually. But that got me curious. What is the way to replace a disk without getting geli involved?
If I detach /dev/ata2 (where the drive being replaced is connected to) then TrueNAS also delete the GPT partition too and I'm left with just as /dev/ata2 device.
I've always been told to not plainly give a /dev/ata2 device to zfs, it makes it hard to track the disk in the future, and additionally linux has trouble with those zpool.
So how can I create a similar schema on the disk as what truenas is doing when replacing a disk, but without geli ?
Thanks