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!

ZFS Tools webgui operation for smaller "zpool replace" command

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
Earendil
Moderator
Moderator
Posts: 48
Joined: 23 Jun 2012 15:57
Location: near Boston, MA, USA.
Status: Offline

ZFS Tools webgui operation for smaller "zpool replace" command

Post by Earendil »

A question once again with encrypted HDDs. I noticed the ZFS Tools screen in the webgui is changed (don't know when but I need it now so I mention it now) and has all the options listed to choose via radio buttons to build the ZFS command.

Specifically "zpool replace" is there. The normal use of this command I can do in the webgui. The Command Line Instruction (CLI) is as follows, if pool=pool1, device from=/dev/ada1 and device to=/dev/ada4.eli then the format is:

Code: Select all

zpool replace pool1 /dev/ada1 /dev/ada4.eli

Well and good but if you have replace the HDD (my case was slightly different but it's a similar situation, see below*) with the same HDD because it's connected to the same SATA plug, then the zpool command is slightly smaller eliminating the "device to" part. The CLI is as follows, if pool=pool1 and device to/from=/dev/ada4.eli then the format is:

Code: Select all

zpool replace pool1 /dev/ada4.eli

My question is how do I do the smaller zpool command in the webgui, do I not populate the "Select Data Device" radio button? I thought of trying it but only after I used the CLI and now it is going to take over two days to resilver. And after taking two days to resilver I am not looking to do scrubs often. Just curious.

*In my case the HDD went loopy and then came back degrading the pool so I cleared it's error (not a SMART error) and suddenly it's available again. I suspect a SATA cable issue as I was moving the system around a bit and will troubleshoot later once the pool is resilvered.
Earendil

XigmaNAS server:
-AMD A10-7860K APU
-Gigabyte F2A88XM-D3HP w/16GB RAM
-pool0 - 4x 2 TB WD green HDDs
-pool1 - 6x 8 TB WD white HDDs
-Ziyituod (used to be Ubit) SA3014 PCI-e 1x SATA card
-External Orico USB 3.0 5 bay HDD external enclosure set at RAID 5
--5x 4 TB WD green HDDs
-650W power supply

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

Re: ZFS Tools webgui operation for smaller "zpool replace" command

Post by ms49434 »

Select the Pool Device but don't select a Data Device to perform an in-place replacement.
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.

User avatar
Earendil
Moderator
Moderator
Posts: 48
Joined: 23 Jun 2012 15:57
Location: near Boston, MA, USA.
Status: Offline

Re: ZFS Tools webgui operation for smaller "zpool replace" command

Post by Earendil »

I wished that confirmed, thanks for confirming. :)
Earendil

XigmaNAS server:
-AMD A10-7860K APU
-Gigabyte F2A88XM-D3HP w/16GB RAM
-pool0 - 4x 2 TB WD green HDDs
-pool1 - 6x 8 TB WD white HDDs
-Ziyituod (used to be Ubit) SA3014 PCI-e 1x SATA card
-External Orico USB 3.0 5 bay HDD external enclosure set at RAID 5
--5x 4 TB WD green HDDs
-650W power supply

Post Reply

Return to “ZFS (only!)”