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] Adding a disk to single disk stripe vdev to make it mirror

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
breimer273
NewUser
NewUser
Posts: 2
Joined: 14 Nov 2016 10:58
Status: Offline

[SOLVED] Adding a disk to single disk stripe vdev to make it mirror

Post by breimer273 »

Hey guys, I found a post from a year ago that address a very similar question, but it died and I didn't think I needed to revive it. So anyway, I started out with a modest 500GB single disk vdev setup as a stripe. Then I wanted to add a second 750GB hard drive to that vdev in order to create a mirrored vdev. Within the webgui I went into Disks|ZFS|Pools|Tools and clicked "Attach a data device." I did not check force operation, but I did click on the pool and clicked on the current device and the drive I wanted to attached. That process resulted in this Command:

Code: Select all

Nov 13 20:40:03	nas4free	root: zpool attach 'zpool' '/dev/ada1' 'ada2'
.

So now here's were I sit:

Code: Select all

pool: zpool
 state: ONLINE
  scan: resilvered 312G in 2h13m with 0 errors on Sun Nov 13 22:53:57 2016
config:

	NAME        STATE     READ WRITE CKSUM
	zpool       ONLINE       0     0     0
	  mirror-0  ONLINE       0     0     0
	    ada1    ONLINE       0     0     0
	    ada2    ONLINE       0     0     0

errors: No known data errors
ada2 was the disk I added. To me this seems like it didn't actually mirror the data? since it says mirror-0. Also on the Disks|ZFS|Pools|Virtual Device|Edit page, I only see ada1, no sign of ada2 anywhere.

So, did I screw this up? Is there any way to fix it? I plan on adding more mirrors soon, so if I need to just start with a new pool to make sure all of my vdevs are mirrors, I will do that. Thanks for the help guys!
Last edited by breimer273 on 14 Nov 2016 12:24, edited 1 time in total.

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

Re: Adding a disk to single disk stripe vdev to make it mirror

Post by raulfg3 »

revise the size of the pool, must not change, you still have 500GB of data pool ( 250gb of your 750GB are wasted).

If YES = You have a ZFS pool Mirror, otherwise if you have a 1,2TB pool, you do not have a mirror , have a ZFS stripe.

PD: For the info you provide, I'm sure that you have a ZFS Mirror, but please check it.
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

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Adding a disk to single disk stripe vdev to make it mirror

Post by ChriZathens »

I don't see anything wrong in your setup.
mirror-0 is just the first mirror. If you create another mirror in this pool it will be named mirror-1, then mirror-2 and so on.
The fact that in webui you don't see the vdev change is because you most probably need to go to "Disks|ZFS|Configuration|Synchronize" and synchronize your Pool
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

breimer273
NewUser
NewUser
Posts: 2
Joined: 14 Nov 2016 10:58
Status: Offline

Re: Adding a disk to single disk stripe vdev to make it mirror

Post by breimer273 »

Thanks for the replies! The synchronize made everything show up as expected, the size of the pool is still about 500GB.

Post Reply

Return to “ZFS (only!)”