zpool trim -d zroot
zpool status -t
# zpool trim -d zroot
cannot trim '/dev/ada0p3': trim operations are not supported by this device
# zpool status -t
pool: zroot
state: ONLINE
scan: scrub repaired 0B in 00:04:37 with 0 errors on Tue Mar 7 14:24:47 2023
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
ada0p3 ONLINE 0 0 0 (100% trimmed, completed at Tue Mar 7 14:24:51 2023)
errors: No known data errors
zpool initialize zroot
zpool status -i zroot
zfs list -o space
# zpool initialize zroot
# zpool status -i zroot
pool: zroot
state: ONLINE
scan: scrub repaired 0B in 00:04:37 with 0 errors on Tue Mar 7 14:24:47 2023
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
ada0p3 ONLINE 0 0 0 (16% initialized, started at Mon Mar 20 07:13:08 2023)
errors: No known data errors
zfs list -o space
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
zroot 0B 80.9G 0B 96K 0B 80.9G
zroot/ROOT 0B 80.8G 0B 96K 0B 80.8G
zroot/ROOT/default 0B 80.8G 0B 80.8G 0B 0B
zroot/tmp 0B 376K 0B 376K 0B 0B
zroot/usr 0B 384K 0B 96K 0B 288K
zroot/usr/home 0B 96K 0B 96K 0B 0B
zroot/usr/ports 0B 96K 0B 96K 0B 0B
zroot/usr/src 0B 96K 0B 96K 0B 0B
zroot/var 0B 71.3M 0B 96K 0B 71.2M
zroot/var/audit 0B 96K 0B 96K 0B 0B
zroot/var/crash 0B 96K 0B 96K 0B 0B
zroot/var/log 0B 70.8M 0B 70.8M 0B 0B
zroot/var/mail 0B 172K 0B 172K 0B 0B
zroot/var/tmp 0B 112K 0B 112K 0B 0B
zfs set mountpoint=/mnt/crash zroot/var/crash
ls -lh /mnt/crash
Thanks for your inputs. It is a 13.1 Release so no BETA/RC Version in this point.It can be hardware or software failure, especially when 13.2 is in BETA/RC stage at the moment.
You need to debug kernel crash dump to figure out what really happened.
As you noticed before, the /var directory is empty.
Since zroot/var dataset is not writable because of lack of space, a new /var directory is stored in RAM.
Change mountpoint of zroot/var/crash to /mnt/crash:
zfs set mountpoint=/mnt/crash zroot/var/crash
Then check if there is something in /mnt/crash:
ls -lh /mnt/crash
Edit: if you have an extra (external) storage (even a non-redundant single disk) at hand, you could consider using zfs-send[(8) to send datasets over, one at a time, and compare the space usage between the orginal and the copy.
sudo zpool -C
for good measure. sudo zdb -C
.sorry for my late replay:I would like to see the output of following command as well:
zpool get all zroot
# zpool get all zroot
NAME PROPERTY VALUE SOURCE
zroot size 35.5G -
zroot capacity 96% -
zroot altroot - default
zroot health ONLINE -
zroot guid 16380778464114236343 -
zroot version - default
zroot bootfs zroot/ROOT/default local
zroot delegation on default
zroot autoreplace off default
zroot cachefile - default
zroot failmode wait default
zroot listsnapshots off default
zroot autoexpand off default
zroot dedupratio 1.00x -
zroot free 1.09G -
zroot allocated 34.4G -
zroot readonly off -
zroot ashift 0 default
zroot comment - default
zroot expandsize - -
zroot freeing 0 -
zroot fragmentation 89% -
zroot leaked 0 -
zroot multihost off default
zroot checkpoint - -
zroot load_guid 2895214603155864083 -
zroot autotrim off default
zroot compatibility off default
zroot feature@async_destroy enabled local
zroot feature@empty_bpobj active local
zroot feature@lz4_compress active local
zroot feature@multi_vdev_crash_dump enabled local
zroot feature@spacemap_histogram active local
zroot feature@enabled_txg active local
zroot feature@hole_birth active local
zroot feature@extensible_dataset active local
zroot feature@embedded_data active local
zroot feature@bookmarks enabled local
zroot feature@filesystem_limits enabled local
zroot feature@large_blocks enabled local
zroot feature@large_dnode enabled local
zroot feature@sha512 enabled local
zroot feature@skein enabled local
zroot feature@userobj_accounting active local
zroot feature@encryption enabled local
zroot feature@project_quota active local
zroot feature@device_removal enabled local
zroot feature@obsolete_counts enabled local
zroot feature@zpool_checkpoint enabled local
zroot feature@spacemap_v2 active local
zroot feature@allocation_classes enabled local
zroot feature@resilver_defer enabled local
zroot feature@bookmark_v2 enabled local
zroot feature@redaction_bookmarks enabled local
zroot feature@redacted_datasets enabled local
zroot feature@bookmark_written enabled local
zroot feature@log_spacemap active local
zroot feature@livelist enabled local
zroot feature@device_rebuild enabled local
zroot feature@zstd_compress enabled local
zroot feature@draid enabled local
zpool -C is not known...Andsudo zpool -C
for good measure.
Gah!zpool -C is not known...
zdb -C