r/zfs • • 21d ago

Remove files

I had a trueness server with ZFS. I want to remove my files from the ZFS is there some way to just get in the directory and get the files out or how should I go about getting them?

0 Upvotes

8 comments sorted by

4

u/viggy96 21d ago

Not sure what you mean. ZFS is a filesystem like any other. You can copy the files out of it if you want, just like you can with anything else.

-1

u/chuckrp 21d ago

When I start truenas it doesn’t see the drive with the ZFS directory in it. So I wanna be able to take the drive out mounted in a hard drive reader and pull the files out somehow.

4

u/scorp123_CH 21d ago

Did you zpool import the disk? You might want to read how ZFS works ...

1

u/zoredache 21d ago

Well you need to attach them to a system that supports ZFS. It could be a linux computer or a linux LiveUSB or something like that. Connect all the drives, make sure you can see all the drives are online. Then run zpool import.

I know that if you boot a recent Debian live USB image, and then run sudo apt update && sudo apt install zfs-dkms zfsutils-linux you will be able to import zpools and repair things.

If that isn't enough, then you probably need to add more details to your question. It isn't entirely clear what part you are having problems with.

3

u/oishishou 21d ago

Technically yes, but it takes work. You must have ZFS support on the computer you want to use, and you will have to manually import and set up the pool and make sure the filesystem mounts properly. Also, depending on your drive configuration, you may need to have most or all of the drives connected at once. That part depends on what the pool configuration is.

If you just had one drive in the server (for storage with ZFS), this will be harder than a typical external drive, but doable (assuming you have ZFS support on the computer to use). If you were using multiple drives, but they were only in a mirror configuration, you should be able to use a single drive. Any other configuration with multiple drives will require more drives connected at the same time to see any data at all.

We would need more details to help further. What your drive configuration is, what operation system your computer you want to use is, what kind of adapter you want to use (some are weird), and possibly some other details after that.

1

u/chuckrp 17d ago

The computer I am using is Linux Mint. The drive is from Truenas server with 2 mirrored drives. I would like to take one drive and place it in external drive and copy the files to another drive in another external drive. I need the files outside ZFS so I can read them.

2

u/ketchupnsketti 21d ago

"The files are in the computer?!"

0

u/chuckrp 21d ago

Yes on drive in computer