DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th October 2024
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 88
Default Cannot compact dynamic VDI with FreeBSD on ZFS

I have a VBox VDI with FreeBSD on ZFS. The VDI is 22.8 GB, while everything in FreeBSD reports, that only around 9 GB is used. Maxnix helped me to set the initialization value to zero for 'zpool initialize', but even after that, 'VBoxManage modifymedium --compact' does not compact the image.

Output of 'df -h /':
Code:
Filesystem            Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default     36G    8.6G     28G    24%    /
Output of 'zfs list':
Code:
NAME                 USED  AVAIL     REFER  MOUNTPOINT
zroot               9.24G  27.6G       88K  /zroot
zroot/ROOT          8.56G  27.6G       88K  none
zroot/ROOT/default  8.56G  27.6G     8.56G  /
zroot/tmp            452K  27.6G      452K  /tmp
zroot/usr            686M  27.6G       88K  /usr
zroot/usr/home        88K  27.6G       88K  /usr/home
zroot/usr/ports      686M  27.6G      686M  /usr/ports
zroot/usr/src         88K  27.6G       88K  /usr/src
zroot/var            716K  27.6G       88K  /var
zroot/var/audit       88K  27.6G       88K  /var/audit
zroot/var/crash       88K  27.6G       88K  /var/crash
zroot/var/log        252K  27.6G      252K  /var/log
zroot/var/mail       112K  27.6G      112K  /var/mail
zroot/var/tmp         88K  27.6G       88K  /var/tmp
Output of 'zpool status -x -v':
Code:
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an error resulting in data
	corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
	entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
config:

	NAME        STATE     READ WRITE CKSUM
	zroot       ONLINE       0     0     0
	  ada0p3    ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

        zroot/ROOT/default:<0x6814b>
(The corrupted file in question was '/lib/libzpool.so.2', but i've downloaded the FreeBSD 13.4 DVD image and restored the file from there. It no longer reports the file being corrupted, but the ZFS error remained. I do not know, if this is related to the compacting problem, or not.)

There are no snapshots in the system, they were destroyed via:
Code:
zfs list -H -o name -t snapshot | xargs -n1 zfs destroy -R
Can anyone give me some hints about what can be the problem?
Reply With Quote
Reply

Tags
compact, freebsd, vdi, virtualbox, zfs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD compact wireless router jjstorm OpenBSD General 11 2nd April 2016 03:48 PM
httpd(8) and php-fpm no dynamic content adam OpenBSD General 3 27th September 2015 10:41 PM
What tool for dynamic I.P filtering unixjingleman OpenBSD Security 1 2nd March 2011 11:31 AM
[FreeBSD + PF cbq + borrow] Dynamic shaping Enemy FreeBSD General 4 19th May 2009 08:56 AM
Dynamic Traffic Shaping LordZ OpenBSD Security 6 19th January 2009 04:30 PM


All times are GMT. The time now is 03:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick