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: 687
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 2 guests

cron