Can't add mirror vdev to existing pool? Only stripe

Fish

Contributor
Joined
Jun 4, 2015
Messages
108
Hey all,

For a long time I've had a pool of 2 drives, mirrored called blue. A few months back, one of the drives failed and through a hilarious course of events (WD sent a DOA replacement drive), I somehow ended up with a pool that now consists of just one drive (I think).

Code:
root@freenas[~]# zpool status blue
  pool: blue
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
    The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 15:25:48 with 0 errors on Sun Aug  6 15:25:48 2023
config:

    NAME                                          STATE     READ WRITE CKSUM
    blue                                          ONLINE       0     0     0
      gptid/0b6fa99c-c530-11ed-af95-00259047b5b9  ONLINE       0     0     0


I now finally have a new replacement drive installed in the system, but when I go to my pools in TrueNAS, it seems like the only options is for me to add it as a stripe vdev, instead of a mirror. Is this because I only have 1 drive currently? Is there a way for me to add this new drive as a mirror via the CLI or will I have to blow away the pool and start from scratch...


Screenshot 2023-08-11 at 7.32.02 AM.png


Drives are 12TB and da6 is the one I hope to add as a mirror.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Drives are 12TB and da6 is the one I hope to add as a mirror.
Then you're in the wrong screen.

You need to go to that disk in the Status screen and select Extend. (which will attach that disk as a mirror to the one you select).
 

Fish

Contributor
Joined
Jun 4, 2015
Messages
108
Then you're in the wrong screen.

You need to go to that disk in the Status screen and select Extend. (which will attach that disk as a mirror to the one you select).

Thank you! I knew I was making some silly mistake. Waiting for resilver to complete now
 

eunix

Cadet
Joined
Oct 24, 2020
Messages
3
This is plausable. I have a similar problem with at 2 disk striped pool ( POOL-1) of 2x1TB disk. The Pool is Healthy but I am getting a bad read sector on disk ada9. I have replace an older 250G disk with a 2TB drive and I want to replace the ada9 disk with the new ad1 ( 2TB disk ).

If I extend ada9 with this disk (ada1 - 2TB) will I be able to reduce out or replace ada9 with this mirror disk ( similar to LVM )

My goal is to replace the other striped drive eventually with another 2TB disk and eventually double the size of the pool.

Thanks, in advanced.
eUNIX
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
You can always (detatch I believe) a disk from a mirror and then extend it out again with another disk. Doesn't matter which disk.

Note that a better way (if you have a spare SATA port) is to add the new disk as aanother mirror - so you now have a 3 way mirror and then detach the unwanted disk. Pool should automatically expand once both disks are bigger
 

eunix

Cadet
Joined
Oct 24, 2020
Messages
3
You can always (detatch I believe) a disk from a mirror and then extend it out again with another disk. Doesn't matter which disk.

Note that a better way (if you have a spare SATA port) is to add the new disk as aanother mirror - so you now have a 3 way mirror and then detach the unwanted disk. Pool should automatically expand once both disks are bigger
The failing disk is just making a lot of noise on the console as it read errors on a sector. The pool is fine. I have another new 2TB drive and 4 of the bays have hot-swap trays the display is a bit confusing as it look like the the two drives (ad9 +ada1) are mirroring ada10 but actually ada9+ada10 are the original striped vdev and ada1 was added to mirror ada9
 

Attachments

  • TNC1-POOL1-STATUS.PNG
    TNC1-POOL1-STATUS.PNG
    9.5 KB · Views: 144

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
My reading of that is that you have a stripe and a mirror.
ada is in its own vdev and ada9 & ada1 are mirrored. - so I agree with you.
You need 1 extra disk (other than any replacements) to mirror ada10
 

eunix

Cadet
Joined
Oct 24, 2020
Messages
3
My reading of that is that you have a stripe and a mirror.
ada is in its own vdev and ada9 & ada1 are mirrored. - so I agree with you.
You need 1 extra disk (other than any replacements) to mirror ada10
Thanks for the links.
I will be removing the questionable disk this weekend.
 
Top