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!

adding a disk to a 2-way mirror to build 3-way

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Banagher
NewUser
NewUser
Posts: 5
Joined: 05 Jan 2016 11:43
Status: Offline

adding a disk to a 2-way mirror to build 3-way

Post by Banagher »

Hi!

I am using NAS4Free 10.3.0.3 (2987)
There is a two way mirror (built with an older version of the web-gui) and an unused disk in the system.

Code: Select all

nas4free: ~# zpool status
  pool: rootvg
 state: ONLINE
  scan: ...
config:

        NAME          STATE     READ WRITE CKSUM
        rootvg        ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            ada0.nop  ONLINE       0     0     0
            ada1.nop  ONLINE       0     0     0
disks_manage.php shows:

Code: Select all

ada0 	WDC WD30EFRX-68EUZN0 	2861589MB 	WD-WCC4N6NETL8L 	ahcich0 	Intel Cougar Point AHCI SATA controller 	Always On 	ZFS Storage Pool 	ONLINE 	Edit disk  Delete disk
ada1 	WDC WD30EFRX-68EUZN0 	2861589MB 	WD-WCC4N6KR54SX 	ahcich1 	Intel Cougar Point AHCI SATA controller 	Always On 	ZFS Storage Pool 	ONLINE 	Edit disk  Delete disk
ada2 	WDC WD30EFRX-68EUZN0 	2861589MB 	WD-WCC4N6TV68N0 	ahcich2 	Intel Cougar Point AHCI SATA controller 	Always On 	ZFS Storage Pool 	ONLINE 	Edit disk  Delete disk
How can I add ada2 to mirror-0 in order to build a 3-way mirror? From the command line I would issue zpool attach rootvg ada0.nop ada2 and be done with it.
This works but is not reflected in the web-interface. I tried "disks zfs configuration synchronise" but that didn't seem to update the vdev.

On the page "virtual devices" (disks_zfs_zpool_vdevice_edit.php?uuid=...) where i would expect it to happen, I don't find any way to accomplish that.


What am I missing?

Thanks in advance and thank you for writing excellent software.

Cheers

Bnanagher
Last edited by Banagher on 27 Oct 2016 21:58, edited 1 time in total.

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: adding a disk to a 2-way mirror to build 3-way

Post by sleid »

zpool attach rootvg ada1 ada2 or zpool attach rootvg ada1.nop ada2.nop
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

Banagher
NewUser
NewUser
Posts: 5
Joined: 05 Jan 2016 11:43
Status: Offline

Re: adding a disk to a 2-way mirror to build 3-way

Post by Banagher »

So this means it's got to do with the dotnop devices.


Code: Select all

nas4free: ~# zpool attach rootvg ada1 ada2
cannot attach ada2 to ada1: no such device in pool
Obviously I can't attach to a device that is currently not in the vdev.

Thanks.

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: adding a disk to a 2-way mirror to build 3-way

Post by sleid »

zpool attach rootvg ada1.nop ada2
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

Post Reply

Return to “ZFS (only!)”