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!

Uanble to remove log disk

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Marco2G
Starter
Starter
Posts: 16
Joined: 04 Dec 2017 22:13
Status: Offline

Uanble to remove log disk

Post by Marco2G »

Hi everybody

I've managed, with the help of a nice admin here, to import my linux pool into NAS4free.

There was one issue, though: the linux pool had a log device that wasn't available to the new machine. So it was set to unavailable. Since this is a vm, I gave it virtual disk and replaced the log device.

That worked. Now I would like to replace the virtual log device with a hardware ssd, however the ssd is smaller.

When trying to remove the log, I get an error.

Code: Select all

  pool: storage
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(7) for details.
  scan: resilvered 0 in 0h6m with 0 errors on Mon Dec  4 22:46:01 2017
	NAME               STATE     READ WRITE CKSUM
	storage            ONLINE       0     0     0
	  mirror-0         ONLINE       0     0     0
	    gpt/Row1Slot1  ONLINE       0     0     0
	    da4p1          ONLINE       0     0     0
	  mirror-1         ONLINE       0     0     0
	    da3p1          ONLINE       0     0     0
	    da5p1          ONLINE       0     0     0
	  mirror-2         ONLINE       0     0     0
	    gpt/Row2Slot1  ONLINE       0     0     0
	    da8p1          ONLINE       0     0     0
	  mirror-3         ONLINE       0     0     0
	    da7p1          ONLINE       0     0     0
	    da9p1          ONLINE       0     0     0
	logs
	  da1              ONLINE       0     0     0
	spares
	  gpt/Row6Slot4    AVAIL

errors: No known data errors

Code: Select all

nas4free: /dev# zpool remove storage da1
cannot remove da1: pool already exists
Now I seem to be reading different things online: Both that I'll have to do the backup, destroy pool, recreate pool routine and that removing a log device should be possible at any time (which I find would make sense).

I see that FreeBSD ZFS obviously has functions ZoL doesn't. I was afraid of corrupting the data if I upgraded. Do you think this would be a wise course and might even solve my issue?

Can you help me make sense of this?

Also as you can see some disks have been entered with device notation, others by partition-id from linux. It would make sense to have all be similar if at all possible, but that's purely cosmetics at this point.

Thank you!

Marco

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

Re: Uanble to remove log disk

Post by tony1 »

it's possible once you do the upgrade "zpool upgrade" that you will be able to remove the log device.
if I remember correctly you could not remove log on older versions without destroying the pool.
if you choose to upgrade there is no turning back to a previous version.
once you have upgraded you can use the gui. Disks > ZFS > Pools > Tools / Remove a log device from a pool

Marco2G
Starter
Starter
Posts: 16
Joined: 04 Dec 2017 22:13
Status: Offline

Re: Uanble to remove log disk

Post by Marco2G »

So the question remains: Is it dangerous to upgrade?

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

Re: Uanble to remove log disk

Post by tony1 »

it should not be dangerous to upgrade but once you upgrade you can't downgrade.
you should also always have backups of critical data.

Marco2G
Starter
Starter
Posts: 16
Joined: 04 Dec 2017 22:13
Status: Offline

Re: Uanble to remove log disk

Post by Marco2G »

I ran the upgrade and everything went fine but the problem still exists.

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

Re: Uanble to remove log disk

Post by raulfg3 »

I never remove a log disk, but I send you some usefull links, please tell us if help:

https://www.nas4free.org/forums/viewtopic.php?t=12389

https://mikebeach.org/2013/02/28/adding ... -by-gptid/

https://forums.freebsd.org/threads/63617/#post-368421


And remember to export first the pool to avoid da1 in use.

eg: from CLI:

1 - export storage
2 - zpool remove storage da1 or zpool remove da1
3 - import storage
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

Post Reply

Return to “ZFS (only!)”