My configuration:
I have issue with free space on /dev/ada1p2. FreeBSD was freezes, I rebooted it by power reset. After restart I noticed no free space left – df reported -1.2 GB free space. I deleted some files but got only 18 MB free space. But I know there was at least 4 GB before power reset and in total all data in files/folders on /dev/ada1p2 takes no more 10 GB. I thought issue in corrupted file system. fsck(8) in multi user mode shows errors:
But in single user mode fsck reports all clean and fixing nothing. I tried a few times with the same result. I have no idea how to return occupied space which obviously not in use but I think marked as in use.
Code:
FreeBSD dlna 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 03:51:29 UTC 2016 [email]root@releng1.nyi.freebsd.org[/email]:/usr/obj/usr/src/sys/GENERIC i386
Code:
df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada1p2 17G 16G 18M 100% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ada0p1 7.0T 2.4T 4.1T 37% /divan
mount
/dev/ada1p2 on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/ada0p1 on /divan (ufs, local, soft-updates)
Code:
fsck -y /dev/ada1p2
** /dev/ada1p2 (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=2247234 OWNER=root MODE=140777
SIZE=0 MTIME=Dec 26 10:11 2017
CLEAR? no
UNREF FILE I=2247244 OWNER=root MODE=140777
SIZE=0 MTIME=Dec 26 10:11 2017
CLEAR? no
UNREF FILE I=2247247 OWNER=root MODE=140777
SIZE=0 MTIME=Dec 26 10:11 2017
CLEAR? no
UNREF FILE I=2247248 OWNER=root MODE=140777
SIZE=0 MTIME=Dec 26 10:11 2017
CLEAR? no
UNREF FILE I=2247251 OWNER=root MODE=140777
SIZE=0 MTIME=Dec 26 10:11 2017
CLEAR? no
** Phase 5 - Check Cyl groups
323253 files, 4197427 used, 370052 free (55356 frags, 39337 blocks, 1.2% fragmentation)
But in single user mode fsck reports all clean and fixing nothing. I tried a few times with the same result. I have no idea how to return occupied space which obviously not in use but I think marked as in use.