Page 1 of 1

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

Posted: 27 Oct 2016 20:10
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

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

Posted: 27 Oct 2016 21:35
by sleid
zpool attach rootvg ada1 ada2 or zpool attach rootvg ada1.nop ada2.nop

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

Posted: 27 Oct 2016 21:57
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.

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

Posted: 28 Oct 2016 19:48
by sleid
zpool attach rootvg ada1.nop ada2