This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Unable to delete volume

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
TNX255
NewUser
NewUser
Posts: 2
Joined: 06 Feb 2017 20:27
Status: Offline

Unable to delete volume

Post by TNX255 »

Hey everyone,

I am trying to set up a new NAS4Free server (version 11.0.0.4 - Sayyadina (revision 3460)), but I ran into a problem. Being new to ZFS, at first I thought I needed to create volumes on top of virtual devices and zpools, so I created one, but after reading more about ZFS I realized it is datasets that I want. Now however I can't get rid of the volumes in the config. Using the GUI I chose them for deletion, clicked on "delete selected volumes", and after the page refreshed I clicked on "Apply changes" ... and then I clicked on it again ... and again ... and again ... and then I started suspecting something is probably wrong :P

The volumes that I'm trying to delete can still be seen in the Volumes tab normally, except for an error message in the "Size" and "Block Size" tabs ("cannot open 'POOL01/MIRROR-1TB': dataset does not exist"). When I look for errors in the system log there is the following:

Feb 6 21:14:17 XXnas root: zfs destroy 'POOL01/MIRROR-1TB'
Feb 6 21:14:17 XXnas root: cannot open 'POOL01/MIRROR-1TB': dataset does not exist
Feb 6 21:14:17 XXnas root: Error: Failed to destroy volume POOL01/MIRROR-1TB

I've tried the following myself:
- Rebooted the server
- Tried to delete the pool "POOL01" (via GUI)
- Tried to recreate the pool "POOL01" (via GUI)
- Tried to create dataset "POOL01/MIRROR-1TB"; I get an error "The following input errors were detected: 'POOL01/MIRROR-1TB' is already configured as a volume." (via GUI)

I tried duckduckgoing and used the search on the forum but I came up empty. Can anyone help?

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: Unable to delete volume

Post by ms49434 »

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

TNX255
NewUser
NewUser
Posts: 2
Joined: 06 Feb 2017 20:27
Status: Offline

Re: Unable to delete volume

Post by TNX255 »

Thanks, the Synchronize-function cleared the ghost volumes from the config!

I assume it somehow checks for the actual existence of volumes, datasets, pools and virtual devices against NAS4Free's config database?

igorseiji
NewUser
NewUser
Posts: 1
Joined: 23 Mar 2017 18:20
Status: Offline

Re: Unable to delete volume

Post by igorseiji »

I've same problem, but in synchronize "Nothing to synchronize"

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Unable to delete volume

Post by raulfg3 »

igorseiji wrote:
23 Mar 2017 18:22
I've same problem, but in synchronize "Nothing to synchronize"
post more info, about your pool and sync webgui and your Disks > Management > HDD Management

and post:



Disks > ZFS > Configuration > Current

and

Disks > ZFS > Configuration > Detected
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

alex
Starter
Starter
Posts: 18
Joined: 04 Jul 2012 03:26
Status: Offline

Re: Unable to delete volume

Post by alex »

same problem and synchronize is not helping

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Unable to delete volume

Post by raulfg3 »

same request: Post more info.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

igr4free
experienced User
experienced User
Posts: 98
Joined: 19 Dec 2016 15:12
Status: Offline

Re: Unable to delete volume

Post by igr4free »

hello,

I can't delete volume.

inas: iNAStorage# zfs get mountpoint
NAME PROPERTY VALUE SOURCE
iNASt mountpoint /mnt/iNASt local
iNASt/Backups mountpoint /mnt/iNASt/Backups inherited from iNASt
iNASt/Swap mountpoint - -


Nov 14 17:49:19 root: Error: Failed to destroy volume iNASt/Swap
Nov 14 17:49:19 root: cannot destroy 'iNASt/Swap': dataset is busy
Nov 14 17:49:19 root: zfs destroy 'iNASt/Swap'

can you help me?

the Swap directory don't exist on /dev/zvol/iNASt/
XigmaNAS 12.1.0.4.7542 released (FreeBSD 12.1-RELEASE-P3) RootOnZFS (mirror disk)
HPE Proliant Microserver Gen8 / CPU: E3-1265L V2 @ 2.50GHz / Mem: 16GB DDR3 ECC / Storage: IBM ServerRaid m1015, 4x 1TB HITACHI RaidZ1, 2x 1TB HITACHI Stripe, OS Disk: 2x 80GB INTEL SSD

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: Unable to delete volume

Post by tony1 »

igr4free look at Disks > Mount Point > Management and make sure it is not mounted

igr4free
experienced User
experienced User
Posts: 98
Joined: 19 Dec 2016 15:12
Status: Offline

Re: Unable to delete volume

Post by igr4free »

tony1 wrote:
14 Nov 2017 18:22
igr4free look at Disks > Mount Point > Management and make sure it is not mounted

does not appear. but yes in ZFS>Volum. but i can’t eliminate it. And also not modify it
XigmaNAS 12.1.0.4.7542 released (FreeBSD 12.1-RELEASE-P3) RootOnZFS (mirror disk)
HPE Proliant Microserver Gen8 / CPU: E3-1265L V2 @ 2.50GHz / Mem: 16GB DDR3 ECC / Storage: IBM ServerRaid m1015, 4x 1TB HITACHI RaidZ1, 2x 1TB HITACHI Stripe, OS Disk: 2x 80GB INTEL SSD

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Unable to delete volume

Post by raulfg3 »

is your pool imported from other install like freenas?

https://forums.freenas.org/index.php?th ... ost-409449
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

igr4free
experienced User
experienced User
Posts: 98
Joined: 19 Dec 2016 15:12
Status: Offline

Re: Unable to delete volume

Post by igr4free »

raulfg3 wrote:
14 Nov 2017 20:31
is your pool imported from other install like freenas?
no.
I wanted to try to create a SWAP volume. I was wrong with the size and it did not let me modify it or erase it.

then, it occurred to me "the fantastic idea" to delete the directory ...

and now it does not disappear from the web menu in disc>zfs>volume, neither in the nas4free main screen that there is a volume called swap.
XigmaNAS 12.1.0.4.7542 released (FreeBSD 12.1-RELEASE-P3) RootOnZFS (mirror disk)
HPE Proliant Microserver Gen8 / CPU: E3-1265L V2 @ 2.50GHz / Mem: 16GB DDR3 ECC / Storage: IBM ServerRaid m1015, 4x 1TB HITACHI RaidZ1, 2x 1TB HITACHI Stripe, OS Disk: 2x 80GB INTEL SSD

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Unable to delete volume

Post by raulfg3 »

create a new folder named swap in the desired path, and then delete from webGUI ( this time must work).

if still not , you need help from developers to identify the problem ( webGUI or real ZFS)
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

igr4free
experienced User
experienced User
Posts: 98
Joined: 19 Dec 2016 15:12
Status: Offline

Re: Unable to delete volume

Post by igr4free »

raulfg3 wrote:
14 Nov 2017 21:08
create a new folder named swap in the desired path, and then delete from webGUI ( this time must work).

if still not , you need help from developers to identify the problem ( webGUI or real ZFS)
I have tried it several times, but it always answers me denied. even being root.
Fortunately it is domestic service, it is not critical, and I have been able to restore it with the previous configuration. but it was not the solution he was looking for. I preferred to find the reason or solution hehe

Now when restarting, initially the volume did not appear. I have synchronized and it has left, but at the same time it has created in / zvol / the volume.

at least now it does work :)
XigmaNAS 12.1.0.4.7542 released (FreeBSD 12.1-RELEASE-P3) RootOnZFS (mirror disk)
HPE Proliant Microserver Gen8 / CPU: E3-1265L V2 @ 2.50GHz / Mem: 16GB DDR3 ECC / Storage: IBM ServerRaid m1015, 4x 1TB HITACHI RaidZ1, 2x 1TB HITACHI Stripe, OS Disk: 2x 80GB INTEL SSD

Post Reply

Return to “ZFS (only!)”