remove zfs volume fro. config

frankz

Active Member
Nov 16, 2020
369
24
38
Hello everyone, a zfs disk broke, so by running the command:

Code:
root@pve4:~# locate SSD1TB
/SSD1TB
/etc/systemd/system/zfs-import.target.wants/zfs-import@SSD1TB.service
/var/lib/rrdcached/db/pve2-storage/pve4/SSD1TB
root@pve4:~# systemctl status zfs-import@SSD1TB
● zfs-import@SSD1TB.service - Import ZFS pool SSD1TB
     Loaded: loaded (/lib/systemd/system/zfs-import@.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-12-14 10:50:25 CET; 32min ago
       Docs: man:zpool(8)
   Main PID: 568 (code=exited, status=1/FAILURE)
        CPU: 9ms

Dec 14 10:50:25 pve4 systemd[1]: Starting Import ZFS pool SSD1TB...
Dec 14 10:50:25 pve4 zpool[568]: cannot import 'SSD1TB': no such pool available
Dec 14 10:50:25 pve4 systemd[1]: zfs-import@SSD1TB.service: Main process exited, code=exited, s>
Dec 14 10:50:25 pve4 systemd[1]: zfs-import@SSD1TB.service: Failed with result 'exit-code'.
Dec 14 10:50:25 pve4 systemd[1]: Failed to start Import ZFS pool SSD1TB.
root@pve4:~# locate SSD1TB
/SSD1TB
/etc/systemd/system/zfs-import.target.wants/zfs-import@SSD1TB.service
/var/lib/rrdcached/db/pve2-storage/pve4/SSD1TB
root@pve4:~#

I proceeded to run systemctl disable zfs-import@SSD1TB.service

Can I delete zfs-import@SSD1TB.service so that the service is not processed on restart?
 
If you disable the zfs-import@SSD1TB.service the /etc/systemd/system/zfs-import.target.wants/zfs-import@SSD1TB.service will be removed.
 
If you disable the zfs-import@SSD1TB.service the /etc/systemd/system/zfs-import.target.wants/zfs-import@SSD1TB.service will be removed.
Thanks for answering, it is also removed: /var/lib/rrdcached/db/pve2-storage/pve4/SSD1TB ?
 
The easiest way to remove a ZFS is to go to the PVE Web UI, navigate to the (Datacenter->NodeName->Disks->ZFS), select the ZFS that you want to remove, and click on the "Destroy" option in the upper right corner.

Let me know if you want to remove only a disk from ZFS pool.
 
The easiest way to remove a ZFS is to go to the PVE Web UI, navigate to the (Datacenter->NodeName->Disks->ZFS), select the ZFS that you want to remove, and click on the "Destroy" option in the upper right corner.

Let me know if you want to remove only a disk from ZFS pool.
Hello and thank you, However, the disc is not present so what you wrote is correct but not in my case. I turned off the service with systenctl and fixed everything . Thank you
 
Hi there
I deleted the zfs Pool and wiped the disks from the gui -

Screenshot_20230503-144455_Video_Player.jpg



1683125614710.png

These pools seem to be left behind
How can I get rid of them

Many thanks for any help in advance