Move External HDD internally to SATA

sorinciupitu

Dabbler
Joined
Jan 17, 2021
Messages
16
Hello,

At this moment I have a pool (called "media"), made of a single external HDD connected via USB to NAS. I would like to put this HDD in the PC case and connect it to one of the SATA ports. I tried to do this directly, but after restarting the operating system, the "media" pool appears offline, but the HDD is seen on the disks.
My question is: how can I move this hdd to SATA, without affecting the integrity of the pool. Is a standard procedure?

I use TrueNAS-12.0-U5, this "media" pool as I said is made up of a single vdev, only with this hard drive.

Thanks!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Have a look under Storage | Pools | Add. Then select Import an Existing Pool.
 

sorinciupitu

Dabbler
Joined
Jan 17, 2021
Messages
16
At this moment I have the hard drive connected via usb.
Is there any operation I need to do before moving the hard drive to the SATA?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
No.

If you have the system powered down when you remove the USB, the pool should remain as it seems was your expectation in the original post.

It's not clear why the pool was not mounted/imported on boot, but it should be as simple as doing that manually if there's something causing it not to happen.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I think it's because the enclosure encrypts the data that the hard drive writes
OK, so that's a whole different story.

You will need to read the data out of the enclosure to a non-encrypted location, then swap the disk in to the SATA port, wipe it, make a new pool (same name if you want) and put the data back.

If you like the data that's on that disk/pool, I would waste no time in doing that as a hardware-based encryption solution between your disk and TrueNAS/ZFS is a very bad thing. (on top of the already not great USB situation)
 
Top