Displaying 8 results from an estimated 8 matches for "virtdf".
Did you mean:
virtd
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote:
[In guest]
> python -c 'import os; s = os.statvfs ("/"); print s'
> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149,
> f_bfree=4802342, f_bavail=4802342, f_files=23556096,
> f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255)
>
> python -c 'import os; s = os.statvfs
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
To summarise:
>[In guest]
> python -c 'import os; s = os.statvfs ("/boot"); print s'
> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147,
> f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=511626,
> f_favail=511626, f_flag=4096, f_namemax=255)
>[From the host via libguestfs]
> # sudo guestfish --ro -d rpm-build-for-7.2 -i statvfs /boot
2018 Jan 07
0
Re: virtdf outputs on host differs from df in guest
On Sun, Jan 07, 2018 at 08:11:58PM +0800, 陈帆 wrote:
> Sorry for the late reply. when I used your method to execute command:
> $guestfish -N fs:xfs -m /dev/sda1 statvfs /
> libguestfs: error: mkfs: xfs: /dev/sda1: mkfs.xfs: No such file or directory
> guestfish: error creating prepared disk image 'fs:xfs' on 'test1.img': failed to create filesystem (xfs): mkfs: xfs:
2018 Jan 07
2
Re: virtdf outputs on host differs from df in guest
hi Jones,
Sorry for the late reply. when I used your method to execute command:
$guestfish -N fs:xfs -m /dev/sda1 statvfs /
libguestfs: error: mkfs: xfs: /dev/sda1: mkfs.xfs: No such file or directory
guestfish: error creating prepared disk image 'fs:xfs' on 'test1.img': failed to create filesystem (xfs): mkfs: xfs: /dev/sda1: mkfs.xfs: No such file or directory
does I need to
2018 Jan 08
0
Re: virtdf outputs on host differs from df in guest
The answer is attached. In summary it's not a bug in virt-df,
nor df, nor the kernel.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
2018 Jan 04
2
virtdf outputs on host differs from df in guest
hi guys,
happy new year!!!
I encountered a problem when we used virt-df command to display my
guest disks useage.
the virt-df command from pkg
libguestfs-tools-c-1.36.3-6.el7_4.3.x86_64,version is virt-df --version
: virt-df 1.36.3rhel=7,release=6.el7_4.3,libvirt
the output in guest with the method referred in
http://libguestfs.org/virt-df.1.html#STATVFS NUMBERS
is:
2018 Jan 04
2
Re: virtdf outputs on host differs from df in guest
hi Jones, Thanks for your reply.
At 2018-01-04 19:41:27, "Richard W.M. Jones" <rjones@redhat.com> wrote:
>On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote:
>[In guest]
>> python -c 'import os; s = os.statvfs ("/"); print s'
>> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149,
>> f_bfree=4802342, f_bavail=4802342,
2018 Jan 07
3
Re: virtdf outputs on host differs from df in guest
after install libguestfs_xfs, all results are:
[using guestfish]
guestfish -N fs:xfs -m /dev/sda1 statvfs /
bsize: 4096
frsize: 4096
blocks: 24713
bfree: 23391
bavail: 23391
files: 51136
ffree: 51133
favail: 51133
fsid: 2049
flag: 4096
namemax: 255
[using virt-rescure]
virt-rescue -a test1.img
><rescue> mount /dev/sda1 /sysroot
><rescue> stat -f /sysroot
File: