Disk Space not recognized

All your general support questions for OpenZFS on OS X.

Disk Space not recognized

Postby Nanotech » Wed Mar 21, 2018 5:27 pm

I had a 2 TB (2x2TB)mirror pool before, and I slowly migrated the pool to 4 TB drives (so would be a 2x4TB mirror poool), by adding the new drives then detaching the old drives (waiting for them to resilver in the process). But when I check my zpool status at the end this is what I get.

Code: Select all
  pool: pool
 state: ONLINE
  scan: resilvered 1.44T in 61h11m with 0 errors on Fri Mar 16 04:25:48 2018
config:

   NAME                                            STATE     READ WRITE CKSUM
   pool                                            ONLINE       0     0     0
     mirror-0                                      ONLINE       0     0     0
       media-E1326908-B107-C241-B0BF-DE4EBBDDE316  ONLINE       0     0     0
       media-A4764562-BB31-364F-B086-6E654B974759  ONLINE       0     0     0


if I go to zpool list this is what I see (which only still shows 2TB when the disks are 4 TB each)
Code: Select all
sudo zpool list
Password:
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
pool  1.81T  1.44T   378G     1.81T    42%    79%  1.00x  ONLINE  -


this is what I see in disk utility
Code: Select all
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 TB     disk2
   1:                        ZFS pool                    4.0 TB     disk2s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk2s9

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 TB     disk3
   1:                        ZFS pool                    4.0 TB     disk3s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk3s9


How can I get the full capacity of the drives recognized so I can have a 4TB mirror pool? Thanks

Edit: I googled a bit and found out I need to turn autoexpand=on, which I did. When I tried the second command this is what I get, am I doing something wrong? I tried /dev/disk2 and it didn't work either ("no such device in pool").

Code: Select all
sudo zpool online -e pool media-E1326908-B107-C241-B0BF-DE4EBBDDE316
cannot expand media-E1326908-B107-C241-B0BF-DE4EBBDDE316: cannot relabel '/private/var/run/disk/by-id/media-E1326908-B107-C241-B0BF-DE4EBBDDE316': unable to open device: 16


Edit 2: I got it working, I found this thread https://openzfsonosx.org/forum/viewtopic.php?f=11&t=3040, which worked for me. Thanks
Nanotech
 
Posts: 4
Joined: Fri Sep 30, 2016 12:29 pm

Re: Disk Space not recognized

Postby lundman » Thu Mar 22, 2018 12:55 am

Heh, best troubleshooting thread ever.

I actually fixed online -e, so I'm disappointed to see it didn't work. Unless you are not running 1.7.1 of course, then it is as expected
User avatar
lundman
 
Posts: 402
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Disk Space not recognized

Postby Nanotech » Sat Mar 24, 2018 1:28 pm

I was using 1.7.0. I found out about the fix in 1.7.1 just as I got it working.
Nanotech
 
Posts: 4
Joined: Fri Sep 30, 2016 12:29 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 2 guests