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!

[SOLVED] Removing log disk

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jofa
NewUser
NewUser
Posts: 6
Joined: 29 Apr 2017 08:02
Status: Offline

[SOLVED] Removing log disk

Post by jofa »

Hi all,

I currently have a log disk as part of a ZFS pool. However, after reading more about the purpose of logs and realizing it mostly sits idle, I would like to remove it and re-purpose it as a cache disk. In Disks -> ZFS -> Pools -> Tools I used the activity "remove a log device from a pool", and followed the steps, with the command completing successfully. This is reflected by running zpool status:

Code: Select all

 pool: myPOOL
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	myPOOL  ONLINE       0     0     0
	  raidz1-0  ONLINE       0     0     0
	    ada2    ONLINE       0     0     0
	    ada3    ONLINE       0     0     0
	    ada4    ONLINE       0     0     0
	    ada5    ONLINE       0     0     0
	cache
	  ada0      ONLINE       0     0     0
However, it still shows up in Disks -> ZFS -> Pools -> Management as a log device, and cannot be removed.
vdevs.JPG
I am able to add the disk as a cache disk using the "add a cache device to a pool" tool in Disks -> ZFS -> Pools -> Tools, and the pool appears to be working fine:

Code: Select all

 pool: myPOOL
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	myPOOL  ONLINE       0     0     0
	  raidz1-0  ONLINE       0     0     0
	    ada2    ONLINE       0     0     0
	    ada3    ONLINE       0     0     0
	    ada4    ONLINE       0     0     0
	    ada5    ONLINE       0     0     0
	cache
	  ada0      ONLINE       0     0     0
	  ada1      ONLINE       0     0     0

errors: No known data errors
Hence, is there a proper way to remove this log device, or is the webGUI just not displaying the correct information after my changes?
You do not have the required permissions to view the files attached to this post.
Last edited by jofa on 29 Apr 2017 09:20, edited 1 time in total.

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: Removing log disk

Post by ernie »

Hello

I think that you need also to synchronise ZFS in Disks -> ZFS -> Configuration -> Symchronize

BR
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

jofa
NewUser
NewUser
Posts: 6
Joined: 29 Apr 2017 08:02
Status: Offline

Re: Removing log disk

Post by jofa »

Thanks so much ernie! Worked like a charm.

Post Reply

Return to “ZFS (only!)”