adding new disk to pool

xames

Patron
Joined
Jun 1, 2020
Messages
235
I have a pool with a single 900gig disk and I want to add one of 8tb, the extension process has been done well, but now it does not show me all the space in said pool, I am new to this, how do I get it to show me the space total ... what would be 8.9tb? Thank you.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
It's not 100% clear to me what you actually did, so let's have a look at zpool status before we give you and potentially incorrect advice.

While you're there, you can also look at zpool list -v (which might already answer your question).
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I have a pool with a single 900gig disk and I want to add one of 8tb, the extension process has been done well, but now it does not show me all the space in said pool, I am new to this, how do I get it to show me the space total ... what would be 8.9tb? Thank you.
Well I may be learning something here but I didn't think that we could add another drive into the stripe pool. We do need that output @sretalla asked for to know what you did and the format of your pool, please use code tags to ensure the format of the output is retained, it matters.

Basically what I'm hearing is you have a single hard drive of 900GB as your pool/vdev so this is a stripe and has no redundancy. You cannot add another drive to increase the capacity, all I can think that you may have done is added it to be a RAIDZ1 now or a MIrror, or maybe just another separate pool.

In order to do what you want to do which is put both drives together as a single stripe, you would need to backup all your data, destroy the current pool, recreate a two drive stripe, then repopulate your data. In my opinion that is not a smart move.

Another option, if you created a RAIDZ1 then I'd run a Scrub and make sure all is good, then replace the 900GB drive with another 8.9TB drive. Once the new drive is added the entire capacity of 8.9TB (minus overhead) would be available and you would have one drive failure safety net.

Just one additional note: If you can, backup any important data before messing around with your system in this way unless you are willing to take the risk of all data lost.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I think there's a very good chance the option chosen was to extend... which results in a mirror.

I'm already on the record in the forums many times saying that that's a very poor choice of words to go in front of the zpool attach command that it represents (as I see it, far too easy to confuse with extend... which it seems is what the OP wanted to do here).
 
Last edited:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I don't do those operations often enough but that would be terrible wording, really leads someone down the wrong path.
 

xames

Patron
Joined
Jun 1, 2020
Messages
235
Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

Code:
root@truenas[~]# zpool status
  pool: POOL1
 state: ONLINE
  scan: scrub repaired 0B in 00:08:35 with 0 errors on Sun Dec 12 00:08:38 2021
config:

        NAME                                          STATE     READ WRITE CKSUM
        POOL1                                         ONLINE       0     0     0
          gptid/40944042-bbe7-11ea-b042-08f1eaeba0d4  ONLINE       0     0     0

errors: No known data errors

  pool: POOL2
 state: ONLINE
  scan: resilvered 15.0M in 00:00:01 with 0 errors on Thu Jan  6 00:16:57 2022
config:

        NAME                                            STATE     READ WRITE CKSUM
        POOL2                                           ONLINE       0     0 0
          mirror-0                                      ONLINE       0     0 0
            gptid/e69cc807-beb1-11ea-9f13-08f1eaeba0d4  ONLINE       0     0 0
            gptid/27ccdc58-6d94-11ec-8649-08f1eaeba0d4  ONLINE       0     0 0

errors: No known data errors

  pool: POOL3
 state: ONLINE
  scan: scrub repaired 0B in 00:59:11 with 0 errors on Sun Dec 12 00:59:16 2021
config:

        NAME                                            STATE     READ WRITE CKSUM
        POOL3                                           ONLINE       0     0 0
          mirror-0                                      ONLINE       0     0 0
            gptid/f398f17e-beb1-11ea-9f13-08f1eaeba0d4  ONLINE       0     0 0
            gptid/f465f78a-beb1-11ea-9f13-08f1eaeba0d4  ONLINE       0     0 0

errors: No known data errors

  pool: POOL4
 state: ONLINE
  scan: scrub repaired 0B in 02:47:45 with 0 errors on Sun Dec 12 02:47:49 2021
config:

        NAME                                          STATE     READ WRITE CKSUM
        POOL4                                         ONLINE       0     0     0
          gptid/90ac1481-c017-11ea-8403-08f1eaeba0d4  ONLINE       0     0     0

errors: No known data errors

  pool: boot-pool
 state: ONLINE
status: Some supported 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(5) for details.
  scan: scrub repaired 0B in 00:09:23 with 0 errors
 
Last edited:

xames

Patron
Joined
Jun 1, 2020
Messages
235
Code:
root@truenas[~]# zpool list -v
NAME                                             SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
POOL1                                            928G   124G   804G        -     -     4%    13%  1.00x    ONLINE  /mnt
  gptid/40944042-bbe7-11ea-b042-08f1eaeba0d4     928G   124G   804G        -     -     4%  13.4%      -    ONLINE
POOL2                                            928G   735G   193G        -     -    33%    79%  1.00x    ONLINE  /mnt
  mirror                                         928G   735G   193G        -     -    33%  79.2%      -    ONLINE
    gptid/e69cc807-beb1-11ea-9f13-08f1eaeba0d4      -      -      -        -     -      -      -      -    ONLINE
    gptid/27ccdc58-6d94-11ec-8649-08f1eaeba0d4      -      -      -        -     -      -      -      -    ONLINE
POOL3                                            460G   190G   270G        -     -     1%    41%  1.00x    ONLINE  /mnt
  mirror                                         460G   190G   270G        -     -     1%  41.3%      -    ONLINE
    gptid/f398f17e-beb1-11ea-9f13-08f1eaeba0d4      -      -      -        -     -      -      -      -    ONLINE
    gptid/f465f78a-beb1-11ea-9f13-08f1eaeba0d4      -      -      -        -     -      -      -      -    ONLINE
POOL4                                           2.72T  1.11T  1.61T        -     -     1%    40%  1.00x    ONLINE
 
Last edited:

xames

Patron
Joined
Jun 1, 2020
Messages
235
This is the disk copy paste, da1 is the 7,28 TB, not showed up in the cli commands before i don't know.

Code:
ada0
2019E2A0D293
931.51 GiB
POOL1

ada1
2019E2A0D2D8
931.51 GiB
POOL2

ada2
Z2A6RXAH
465.76 GiB
POOL3

ada3
PK2A34PBJAN8DT
2.73 TiB
POOL4

ada4
5VE2ASLD
465.76 GiB
POOL3

da1
00000000000000000000
7.28 TiB
POOL2
 
Last edited:

xames

Patron
Joined
Jun 1, 2020
Messages
235
Then if I understand my 7,28 tb are showed as 928gb because is in mirror on POOL2 and the size reflect the same on the first one? Then i have to redesign all, but i don't want to recreate jails on POOL2 because is the default jail pool.

I think POOL1 disk i move on POOL2, and then i put the Big one on POOL1 without mirror, i think would be the best option.

How i can detach the 7,28 tb now without any affect on anything? detach button?

In POOL1 if i detach what could happend because in POOL tab it says that POOL1 is the system dataset pool... what that means?
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Please enclose the pasted lines in "CODE" tags like so:
Code:
this
is
code


It's always pretty difficult to parse without proper indentation - which would be preserved inside "CODE".

But it looks like you created a mirror, yes. You can easily detach the larger disk from that mirror again. One question, though: do you really want to create a striped pool from a 900 G and an 8 TB disk? Because if the 900 G disks (which I presume is older) fails first, all the data in your pool is toast.
 

xames

Patron
Joined
Jun 1, 2020
Messages
235
Sorry for code, no its not good idea put in striped, i move some disks orders and put mirrors. Thanks
 
Top