Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

zpool out of space issue need help to expand the current pool

zfstrouble

Neophyte
Joined
Nov 22, 2019
Messages
4
hello everyone,

i current have a pool (tank) which run out of space, the pool does not let me change any property anymore, nor let me delete snapshot, data so that i can do nothing as operation on this pool. Followings i've tried

1. delete data using zfs destroy end up with this error:
Code:
zfs destroy -r tank/vm/testftp/disk0

internal error: Numerical argument out of domain
Abort (core dumped)

2. attach new data, but the pool can not be expanded, because the command return error
Code:
zpool set autoexpand=on tank
cannot set property for 'tank': property 'autoexpand'(13) not defined


but if i tried to ask the property, it return me an answer:

Code:
zpool get autoexpand tank
NAME    PROPERTY    VALUE   SOURCE
tank  autoexpand  off     default


3. trying to modify some another property end up with "Out of space"

Code:
zpool set feature@spacemap_v2=enabled tank
cannot set property for 'tank': out of space


the tank pool was created using mirror with this command (found from zpool history)

Code:
zpool create tank mirror


the only thing i would try now is to create a new pool around 10TB (newpool), export the tank and then import tank to newpool. Do you think that should work or do you have better idea to help me?

Here is information

Code:
zfs upgrade
This system is currently running ZFS filesystem version 5.
All filesystems are formatted with the current version.
OS: FreeBSD rtsrv-bhyve0 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC  amd64
Pool:
zpool list
NAME     SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
tank  10.9T  4.92T  5.96T        -         -    36%    45%  1.00x  ONLINE  -

zpool status
  pool: tank
 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(7) for details.
  scan: resilvered 2.43T in 0 days 16:57:24 with 0 errors on Fri Nov 22 03:00:06 2019
config:
        NAME                     STATE     READ WRITE CKSUM
        tank                   ONLINE       0     0     0
          da9             ONLINE       0     0     0
          da8                    ONLINE       0     0     0
        cache
          label/XXXXXX  ONLINE       0     0     0

errors: No known data errors


the command zpool upgrade does not do anything

Code:
zpool upgrade
This system supports ZFS pool feature flags.

All pools are formatted using feature flags.


Some supported features are not enabled on the following pools. Once a
feature is enabled the pool may become incompatible with software
that does not support the feature. See zpool-features(7) for details.

POOL  FEATURE
---------------
vmpool
      large_dnode
      device_removal
      obsolete_counts
      zpool_checkpoint
      spacemap_v2
 

zfstrouble

Neophyte
Joined
Nov 22, 2019
Messages
4
maybe a quick question: Is it possible to fix the out of space issue by export the current pool and import it to the new pool? Maybe can some one help me a quick response?
 

Chris Moore

Wizened Sage
Joined
May 2, 2015
Messages
10,068
maybe a quick question: Is it possible to fix the out of space issue by export the current pool and import it to the new pool? Maybe can some one help me a quick response?
If you have a new pool of disks, as long as you can read from the old pool, you should be able to do a file copy from the old pool to the new pool. I have used that method to migrate to new disks in a different layout, changing from RAIDz1 to RAIDz2, for example.
 

zfstrouble

Neophyte
Joined
Nov 22, 2019
Messages
4
If you have a new pool of disks, as long as you can read from the old pool, you should be able to do a file copy from the old pool to the new pool. I have used that method to migrate to new disks in a different layout, changing from RAIDz1 to RAIDz2, for example.
thank Chris, then it stay the only method to fix the problem: Stop eveything which is writting into the oldpool, rsync everything from /tank to /newpool then switch system to new pool, right?
 

Chris Moore

Wizened Sage
Joined
May 2, 2015
Messages
10,068
You could use the zfs commands for send and receive also. I think that would run faster than rsync.
 

blueether

Senior Member
Joined
Aug 6, 2018
Messages
259
You could use the zfs commands for send and receive also. I think that would run faster than rsync.
Would that only work if you had a current snapshot?
 

Chris Moore

Wizened Sage
Joined
May 2, 2015
Messages
10,068

blueether

Senior Member
Joined
Aug 6, 2018
Messages
259

zfstrouble

Neophyte
Joined
Nov 22, 2019
Messages
4
thank you everybody, because the out of space issue, it not possible to create any snapshot, the rsync solution is working fine.
 
Top