cannot expand vdev with replaced disks

All your general support questions for OpenZFS on OS X.

cannot expand vdev with replaced disks

Postby Ikukuru » Mon Jan 27, 2020 7:09 am

I have replaced two mirrored 8TB disks with 10TB disks and expected to get an extra 2TB in my pool of 6x disks. The other 4 disks are 8TB.

What am I missing here? I was sure that mirrored VDEV can be expanded like this.

When I try to do zpool online I get the following error:
Code: Select all
 expand media-7E76C57D-B43C-284C-8AF2-080DBD91790U: cannot relabel '/dev/disk5': unable to open device: 13


Code: Select all
  pool: sanlux
 state: ONLINE
  scan: resilvered 7.87G in 0 days 05:01:41 with 0 errors on Mon Jan 27 22:38:01 2020
config:

   NAME                                            STATE     READ WRITE CKSUM
   sanlux                                        ONLINE       0     0     0
     mirror-0                                      ONLINE       0     0     0
       media-1A76C57D-B43C-284C-8AF2-080DBD91234A            ONLINE       0     0     0
       media-96GG7619-9678-E241-8F94-71C4D4BB944B  ONLINE       0     0     0
     mirror-1                                      ONLINE       0     0     0
       media-7E76C57D-B43C-284C-8AF2-080DBD91790U  ONLINE       0     0     0
       media-61C3587C-1182-B24F-9217-3201CD02C59A  ONLINE       0     0     0
     mirror-2                                      ONLINE       0     0     0
       media-6CC72605-2C30-0A4D-8876-1F7305A50A21  ONLINE       0     0     0
       media-3EA2BB87-ADB7-B34C-9672-29956144875C  ONLINE       0     0     0

errors: No known data errors
Ikukuru
 
Posts: 26
Joined: Mon Sep 22, 2014 4:17 pm

Re: cannot expand vdev with replaced disks

Postby lundman » Tue Feb 04, 2020 10:57 pm

Try issuing "zpool online -r pool device" on each new disk to make it check for size increase. When using replace command, it is best to use GUID for existing disks (zpool status -g) and /dev/diskX names for new disks. After that, use export/import to make device names be by-id again.
User avatar
lundman
 
Posts: 707
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: cannot expand vdev with replaced disks

Postby nathansvt » Wed Apr 01, 2020 11:16 am

I have a similar issue. I tried online -e which didn't throw any errors but also didn't expand. Tried export/import and also no expansion. autoexpand=on is set for the pool.

I was hoping the -r suggestion above would help but I get this:
Code: Select all
$ zpool status
  pool: zmirror
 state: ONLINE
  scan: resilvered 1.35T in 0 days 17:10:34 with 0 errors on Wed Apr  1 13:24:41 2020
config:

   NAME                                            STATE     READ WRITE CKSUM
   zmirror                                         ONLINE       0     0     0
     mirror-0                                      ONLINE       0     0     0
       media-AFFC40BF-63E9-3542-A952-3E423BF4011C  ONLINE       0     0     0
       media-01648D9C-E219-684B-8CE8-34D07BBFA582  ONLINE       0     0     0
     mirror-1                                      ONLINE       0     0     0
       media-4C079649-39FB-0F4D-A575-F8F4FA677122  ONLINE       0     0     0
       media-2E4F7E78-F21E-5A49-87BF-E506C98CE911  ONLINE       0     0     0
   cache
     disk8                                         ONLINE       0     0     0

errors: No known data errors
$ sudo zpool online -r zmirror media-4C079649-39FB-0F4D-A575-F8F4FA677122
invalid option 'r'
usage:
   online <pool> <device> ...



What do I make of invalid option 'r'
usage:
online <pool> <device> ...
nathansvt
 
Posts: 7
Joined: Mon Jan 19, 2015 10:25 am

Re: cannot expand vdev with replaced disks

Postby lundman » Wed Apr 01, 2020 11:44 pm

Ugh so sorry, its supposed to be "online -e"
User avatar
lundman
 
Posts: 707
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 1 guest