r/linuxmint • • 5d ago

Support Request ZFS drive read in Linux Mint

Hi. I have an old Truenas machine which has a ZFS raid with a few drives. Multiple faults prompt me to ask if anyone has used Mint to read such drives?

I don't need to write to them, they aren't important but so old I can't remember what's on the drives!

If it's a regular request, just a link to how to do it would be great.

Thanks.

1 Upvotes

4 comments sorted by

•

u/AutoModerator 5d ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/GiggleSamurai 5d ago

Yes, Mint can read it: sudo apt install zfsutils-linux, then sudo zpool import lists the pools it finds on the drives. sudo zpool import -f -o readonly=on -R /mnt <poolname> then mounts it read-only under /mnt (-f is needed because the pool was last used by the TrueNAS box).

2

u/m4uri 5d ago

GiggleSamurai's commands are the way to go. Two things to add since you mentioned multiple faults and an old box.

Run plain sudo zpool import first and actually read the output before importing. It shows the pool state and which disks are missing or FAULTED. A DEGRADED pool still imports fine as long as every raidz or mirror vdev has enough disks left.

If it complains about unsupported features, the pool was upgraded on a newer ZFS than the one Mint ships. Read only import often still works if those features are read-only compatible, otherwise you need a newer zfs, a newer live ISO is the easy route.

With faults I wouldnt jump to -F (rewind) or zpool clear right away. Check the disks first with sudo smartctl -a /dev/sdX (package smartmontools). If one is dying, copy off what you care about first and poke around afterwards. Encrypted datasets also need the key from the old TrueNAS before they mount, so look if you still have that somwhere.

1

u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 5d ago

Yes, ZFS is available in both Mint and LMDE

Mint22

sudo apt update
sudo apt upgrade
sudo apt install  zfs-dkms zfs-initramfs

*zfs-initramfs probably will not be needed if you are not going to put ZFS on /

LMDE

sudo apt update
sudo apt upgrade
sudo apt install linux-headers-amd64
sudo apt install -t stable-backports zfsutils-linux
dad@RatRod:~$ zfs list
NAME                                 USED  AVAIL  REFER  MOUNTPOINT
lagoon                              1.32T  13.1T   128K  none
lagoon/.cache                       7.51G  13.1T  7.51G  /mnt/lagoon/.cache
lagoon/.ssh                         1.78M  13.1T   437K  /mnt/lagoon/.ssh
lagoon/Calibre_Library              41.2G  13.1T  41.2G  /mnt/lagoon/Calibre_Library
lagoon/Computer                     39.5G  13.1T  39.5G  none
lagoon/Downloads                     452G  13.1T   452G  /mnt/lagoon/Downloads
lagoon/Obsidian                      229M  13.1T   114M  /mnt/lagoon/Obsidian
lagoon/Pictures                      279G  13.1T   279G  none
lagoon/RandoB                        150G  13.1T   150G  /mnt/lagoon/RandoB
lagoon/protonmail                   1.92G  13.1T  1.92G  /mnt/lagoon/protonmail
lagoon/suwannee                      383G  13.1T   128K  none
lagoon/suwannee/ROOT                 383G  13.1T   128K  none
lagoon/suwannee/ROOT/Debian_I3      3.91G  13.1T  1.62G  none
lagoon/suwannee/ROOT/Gentoo_Plasma  5.21G  13.1T  5.21G  none
lagoon/suwannee/ROOT/LMDE7          41.1G  13.1T  12.8G  none
lagoon/suwannee/ROOT/Mint_Cinnamon  22.1G  13.1T  11.7G  none
lagoon/suwannee/ROOT/Mint_MATE      16.1G  13.1T  7.73G  none
lagoon/suwannee/ROOT/Mint_Xfce      15.0G  13.1T  7.75G  none
lagoon/suwannee/ROOT/Void_Plasma     239G  13.1T   173G  /mnt/lagoon/Void_Plasma
lagoon/suwannee/ROOT/Void_Xfce      40.2G  13.1T  10.6G  none
suwannee                             297G  1.47T    96K  none
suwannee/ROOT                       32.9G  1.47T    96K  none
suwannee/ROOT/LMDE7                 32.9G  1.47T  7.97G  /
suwannee/Steam                       264G  1.47T   264G  /mnt/suwannee/Steam