Latest News:
2019-02-05: XigmaNAS 12.0.0.4.6412 - BETA released!
2019-01-22: XigmaNAS 11.2.0.4.6400 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

I'm feeling dumb here, how do you wipe/erase a pool completely?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

I'm feeling dumb here, how do you wipe/erase a pool completely?

#1

Post by scifimike12 » 07 Dec 2018 02:37

I went in the GUI and selected my pool (Media in this case) and selected destroy pool using the -f command. It successfully went through but I still have the virtual device that was part of it showing up in Disk → ZFS → Virtual Device and also in Management. I cannot create another pool using the same disks despite HDD Management showing "unknown or unformatted". HDD Format doesn't list them.

User avatar
ms49434
Developer
Developer
Posts: 505
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#2

Post by ms49434 » 07 Dec 2018 13:30

Goto Disks > Management > HDD Management, check box next to "Clear configuration information before importing disks." and click on the Import button in the Import Disk section.

then

Goto Disks > ZFS > Configuration > Synchronize and click on button Synchronize to update the configuration.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#3

Post by scifimike12 » 07 Dec 2018 20:00

Tried that and under ZFS → Pools → Management my Pool and Virtual Device still remain. Clicking Apply Changes does nothing, just reports that the pool cannot be found and still shows that message you see "You must apply the changes in order for them to take effect". HDD Format shows no available drives to format despite them saying unformatted. I also tried restoring to factory defaults which helped me make a new ZFS RAIDZ1, pool, and virtual device. But the moment I tried destroying the pool it went back to the same buggy messages that won't go away until I do another restore configuration to factory defaults.
Untitled.png
Untitled2.png
Untitled3.png
You do not have the required permissions to view the files attached to this post.

User avatar
ms49434
Developer
Developer
Posts: 505
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#4

Post by ms49434 » 07 Dec 2018 20:32

1. Reboot your box to get rid of the 'apply changes' message.
2. Goto Disks > Management > HDD Management, check box next to "Clear configuration information before importing disks." and click on the Import button in the Import Disk section.
3. Goto Disks > ZFS > Configuration > Synchronize and click on button Synchronize to update the configuration.

If pools, vdevs and/or datasets/volumes are still listed at this point would indicate that the pool wasn't deleted and I would like to ask you to post the output of Disks > ZFS > Pools > Information.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#5

Post by scifimike12 » 08 Dec 2018 22:07

I don't know what I'm doing wrong but still having issues deleting the leftover pool or virtual device. I rebooted the system, did the "Clear configuration information before importing disks", and yet the pool and virtual device are still present. If I select the pool and click delete it keeps asking to click Apply. But when I click apply nothing happens.

I checked the logs and it shows this:

Code: Select all

root: zpool destroy 'Pool1'
root: cannot open 'Pool1': no such pool
I also cannot create a new pool with the same HDDs, shows "Unknown or unformatted" but under HDD Format they aren't listed for me to format them as ZFS Storage Pool.

I have to do another reset to factory defaults in order to reformat them.

cookiemonster
experienced User
experienced User
Posts: 91
Joined: 23 Mar 2014 02:58
Location: UK
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#6

Post by cookiemonster » 10 Dec 2018 00:08

Can you to post the output of Disks > ZFS > Pools > Information.
And also look for any messages in the log immediately after the attempt to apply changes and the attempt of the action that can't be applied: Diagnostics > Log

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#7

Post by scifimike12 » 10 Dec 2018 19:49

This is what it shows under ZFS → Pools → Information:

Image

And this is what happens if I try deleting the pool and clicking Apply.

Image

biggsy
Starter
Starter
Posts: 58
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#8

Post by biggsy » 28 Dec 2018 03:49

I appear to have hit the same problem trying to reconfigure ZFS so I could attempt to implement the solution provided by ms49434 in this topic.

I can't delete the pool (keeps bouncing back to Apply Changes) and the log shows:

Code: Select all

Dec 28 12:35:22	xigmanas	root: cannot open 'Pool1': no such pool
Dec 28 12:35:22	xigmanas	root: zpool destroy 'Pool1'

My former pool disks (ada0 and ada1) show as "unknown or unformatted" under Disks > Management > HDD Management but they don't appear under Disks > Management > HDD Format > Step 1

Did you find a solution?

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#9

Post by scifimike12 » 01 Jan 2019 20:47

biggsy wrote:
28 Dec 2018 03:49
Did you find a solution?
Nope. :(

User avatar
ms49434
Developer
Developer
Posts: 505
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#10

Post by ms49434 » 01 Jan 2019 21:35

scifimike12 wrote:
01 Jan 2019 20:47
biggsy wrote:
28 Dec 2018 03:49
Did you find a solution?
Nope. :(
All pools have been deleted when Disks > ZFS > Pools > Information is reporting no pools.
Because you used a CLI command to delete the pool the configuration file contains invalid information and must be repaired.

1. Make a backup of your configuration and store it in a safe place.
2. Go to Tools > File Editor and open /conf/config.xml.
3. Delete everything between the <zfs>...</zfs> tags and save the file.
4. Reboot your machine (just to be safe) and report back.

(If you are angry you can PM your config.xml and you'll get it repaired but be aware that config.xml contains passwords)
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#11

Post by scifimike12 » 03 Jan 2019 21:33

ms49434 wrote:
01 Jan 2019 21:35
All pools have been deleted when Disks > ZFS > Pools > Information is reporting no pools.
Because you used a CLI command to delete the pool the configuration file contains invalid information and must be repaired.

1. Make a backup of your configuration and store it in a safe place.
2. Go to Tools > File Editor and open /conf/config.xml.
3. Delete everything between the <zfs>...</zfs> tags and save the file.
4. Reboot your machine (just to be safe) and report back.

(If you are angry you can PM your config.xml and you'll get it repaired but be aware that config.xml contains passwords)
I was using the GUI to delete the pool but I guess the same would apply. Deleting everything between the two tags helped. The real question is why is this happening? Even on a fresh install with the latest XigmaNAS version. All I did was create a simple RAID1 ZFS named it RAID1, came out fine under pool information but once I delete that pool which shows it as not available, I cannot get rid of the virtual device name until I manually delete that stuff in the config.xml. Restarting the system after doesn't help. Going into Disks > Management > HDD Management → Clear configuration before importing disks doesn't resolve it.

User avatar
ms49434
Developer
Developer
Posts: 505
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#12

Post by ms49434 » 04 Jan 2019 00:06

scifimike12 wrote:
03 Jan 2019 21:33
ms49434 wrote:
01 Jan 2019 21:35
All pools have been deleted when Disks > ZFS > Pools > Information is reporting no pools.
Because you used a CLI command to delete the pool the configuration file contains invalid information and must be repaired.

1. Make a backup of your configuration and store it in a safe place.
2. Go to Tools > File Editor and open /conf/config.xml.
3. Delete everything between the <zfs>...</zfs> tags and save the file.
4. Reboot your machine (just to be safe) and report back.

(If you are angry you can PM your config.xml and you'll get it repaired but be aware that config.xml contains passwords)
I was using the GUI to delete the pool but I guess the same would apply. Deleting everything between the two tags helped. The real question is why is this happening? Even on a fresh install with the latest XigmaNAS version. All I did was create a simple RAID1 ZFS named it RAID1, came out fine under pool information but once I delete that pool which shows it as not available, I cannot get rid of the virtual device name until I manually delete that stuff in the config.xml. Restarting the system after doesn't help. Going into Disks > Management > HDD Management → Clear configuration before importing disks doesn't resolve it.
There are several ways to destroy a ZFS pool:

Disks > ZFS > Pools > Management (Select pool(s) -> Delete Selected Pools)
This will update the system configuration file and is the recommended way to delete one or more pools. You should ensure that all services are no longer accessing any datasets or volumes of these pools and datasets, volumes and snapshots of these pools are deleted before you delete the pools. Once the pool(s) is/are deleted the related virtual devices can be deleted as well.

Disks > ZFS > Pools > Tools > Destroy a pool
This is a maintenance command which doesn't update the system configuration file.

SSH: #zpool destroy [-f] <poolname>
This command doesn't update the system configuration file.

Tools > Command: zpool destroy [-f] <poolname>
This command doesn't update the system configuration file.

(Disks > Management > HDD Management is for low level disks/devices management and is not related to ZFS.)
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

scifimike12
Starter
Starter
Posts: 16
Joined: 21 Jul 2016 05:54
Status: Offline

Re: I'm feeling dumb here, how do you wipe/erase a pool completely?

#13

Post by scifimike12 » 05 Jan 2019 01:03

ms49434 wrote:
04 Jan 2019 00:06
There are several ways to destroy a ZFS pool:

Disks > ZFS > Pools > Management (Select pool(s) -> Delete Selected Pools)
This will update the system configuration file and is the recommended way to delete one or more pools. You should ensure that all services are no longer accessing any datasets or volumes of these pools and datasets, volumes and snapshots of these pools are deleted before you delete the pools. Once the pool(s) is/are deleted the related virtual devices can be deleted as well.
Okay this fixed my issue. I was using the other way through Disks > ZFS > Pools > Tools > Destroy a pool

Now if I were to migrate my pool to another server also running XigmaNAS, I cannot get rid of that same message/problem when I use the 'Export a pool from the system' in Disks > ZFS > Pools > Tools. That still runs into the same problem as before unless I edit the config.xml and delete the existing entries.

Post Reply

Return to “ZFS (only!)”