missing 10 TB from my pool

All your general support questions for OpenZFS on OS X.

missing 10 TB from my pool

Postby cmckay » Mon Jul 17, 2017 1:25 pm

Hello, I had a pool ("tank") with a child zvol formatted hsf+ ("tank/Rocap_11TB"). That worked OK for a year or so, but now I'm having problems, and Disk Utility says the volume is corrupted and can't be repaired. HFS problem? ZFS problem? Dunno.

What I did was destroy the zvol, with the idea I'd just recreate it, freshly format it, and restore from a backup. It isn't going smoothly. The problem is that the pool says 10TB is "used" even though (as far as I know) it has no children, no snapshots, and nothing on it.


Here is how it was created:

Code: Select all
2016-06-15.17:00:34 zpool create -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD -O compression=on -O atime=off tank raidz disk3 disk2 disk4
2016-06-15.17:01:36 zpool add tank cache disk0s4
2016-06-15.17:02:44 zpool add -f tank log disk0s5
2016-06-15.17:14:27 zfs create -V 10400G tank/Rocap_11TB


Then after this trouble I destroyed it....
Code: Select all
zfs destroy tank/Rocap_11TB



But when I tried to create it again, it failed, I think because it is out of space:
Code: Select all
sudo zfs create -V 10400G tank/Rocap_11TB
cannot open 'tank/Rocap_11TB': dataset does not exist

zpool get all
NAME  PROPERTY                       VALUE                          SOURCE
tank  size                           16.2T                          -
tank  capacity                       90%                            -
tank  altroot                        -                              default
tank  health                         ONLINE                         -
tank  guid                           3564958254686881494            default
tank  version                        -                              default
tank  bootfs                         -                              default
tank  delegation                     on                             default
tank  autoreplace                    off                            default
tank  cachefile                      -                              default
tank  failmode                       wait                           default
tank  listsnapshots                  off                            default
tank  autoexpand                     off                            default
tank  dedupditto                     0                              default
tank  dedupratio                     1.00x                          -
tank  free                           1.59T                          -
tank  allocated                      14.7T                          -
tank  readonly                       off                            -
tank  ashift                         12                             local
tank  comment                        -                              default
tank  expandsize                     -                              -
tank  freeing                        9.76T                          default
tank  fragmentation                  44%                            -
tank  leaked                         0                              default
tank  feature@async_destroy          active                         local
tank  feature@empty_bpobj            enabled                        local
tank  feature@lz4_compress           active                         local
tank  feature@multi_vdev_crash_dump  enabled                        local
tank  feature@spacemap_histogram     active                         local
tank  feature@enabled_txg            active                         local
tank  feature@hole_birth             active                         local
tank  feature@extensible_dataset     enabled                        local
tank  feature@embedded_data          active                         local
tank  feature@bookmarks              enabled                        local
tank  feature@filesystem_limits      enabled                        local
tank  feature@large_blocks           enabled                        local
tank  feature@sha512                 enabled                        local
tank  feature@skein                  enabled                        local
tank  feature@edonr                  enabled                        local

zfs list -t all
NAME   USED  AVAIL  REFER  MOUNTPOINT
tank  9.76T   742G   687K  /Volumes/tank


Does anyone know where the missing 10TB is? Thanks in advance for your help!
cmckay
 
Posts: 7
Joined: Wed Jun 08, 2016 11:32 am

Re: missing 10 TB from my pool

Postby abc123 » Mon Jul 17, 2017 9:09 pm

Ignore my comment about 'Try zfs list -rt all'

One of the properties of the pool is

Code: Select all
tank  freeing                        9.76T                          default


So looks like it's freeing which can happen in the background. Has this changed at all since you posted?
abc123
 
Posts: 63
Joined: Mon Jan 30, 2017 11:46 pm

Re: missing 10 TB from my pool

Postby cmckay » Tue Jul 18, 2017 3:52 pm

Ahh, that was the key, thank you. When I looked again today the capacity was available. That isn't how other filesystems I've worked with behave, so didn't expect it. Thank you.
cmckay
 
Posts: 7
Joined: Wed Jun 08, 2016 11:32 am

Re: missing 10 TB from my pool

Postby lundman » Tue Jul 18, 2017 5:14 pm

I believe this is related to the pool feature "async_destroy" - so you can create a pool with that disabled, and it will behave like you expect, ie, "zfs destroy" will take a long time to return.
User avatar
lundman
 
Posts: 1335
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 32 guests