There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Question about mounting ZFS pool

Hello, I have had a pool of two hard drives in a mirror pool for some time but the OS got corrupted and I reinstalled the OS. Now I am on Linux Mint and my pool does not appear any more. When I use zpool import it says no pool available to import, I have looked around online and found you can import a zpool by specifying the drives, so I used zpool import -f -d /dev/sda1 -f -d /dev/sdb1 internal I get back my pool

pool: internal state: ONLINE scan: scrub repaired 0B in 00:08:39 with 0 errors on Tue Jun 18 18:38:40 2024 config:


<span style="color:#323232;">NAME        STATE     READ WRITE CKSUM
</span><span style="color:#323232;">internal    ONLINE       0     0     0
</span><span style="color:#323232;">  mirror-0  ONLINE       0     0     0
</span><span style="color:#323232;">    sdb     ONLINE       0     0     0
</span><span style="color:#323232;">    sda     ONLINE       0     0     0
</span>

errors: No known data errors

But I am unable to mount the pool, zfs mount internal returns

cannot mount ‘internal’: legacy mountpoint use mount(8) to mount this filesystem

I tried using mount but I am not having any success, saying mount: internal: can’t fin in /etc/fstab.

Is there any chance to get this pool back on the computer or is it a lost cause.

Thank you for the help.

NeoNachtwaechter , (edited )

I guess you need to “zpool import -f” because your system has crashed before and did not shutdown properly.

After reading again, I understand that your pool is alive and well. It is just not mounted anywhere.

Look into /etc/fstab if you find the correct mountpoint there. Then tell it to your ZFS with "zfs set mountpoint= "

0x0 ,

Maybe @jimsalter can help. I’m not in my pool right now.

timbuck2themoon ,

For anyone with ZFS related issues I’d honestly recommend just going to Jim’s site- discourse.practicalzfs.com which is invaluable. Lot more help and a trove of valuable info already exist there.

Strit ,
@Strit@lemmy.linuxuserspace.show avatar

It states it can’t find it in /etc/fstab. So do you have it there? And does it have the correct ID?

(I don’t know how zfs pools work, I’m just going of what the mount command said)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines