On Sun, Dec 13, 2015 at 07:53:09PM +0800, Jeffrey wrote:
Hello,everyone
I ran virt-resize(v1.30.4) on my CentOS 7.1 to resize win2008r2 and got the warning
message (virt-resize: warning: unknown/unavailable method for expanding the ntfs
filesystem on /dev/sda2):
>/usr/local/libguestfs-1.30.4/run virt-resize --expand /dev/sda2
/images/win2008_src.raw /dev/vg0/win2008_resize_dst
[ 0.0] Examining /images/win2008_src.raw
virt-resize: warning: unknown/unavailable method for expanding the ntfs
filesystem on /dev/sda2
[...]
After virt-resize completed its work, obviously the ntfs
filesystem on /dev/sda2 has not been resized. I have already installed
libguestfs-winsupport-7.2 and I don't know what cause the problem.
[...]
>rpm -qa|grep libguestfs-winsupport
libguestfs-winsupport-7.2-1.el7.x86_64
[...]
I think this is the wrong version of libguestfs-winsupport. You
probably want -7.1 from here:
https://people.redhat.com/~rjones/libguestfs-winsupport/7/7.1/
In CentOS 7.2, all the required packages will be in the base distro.
>./run guestfish -a /dev/null run : filesystem_available ntfs
true
You need to use the 'supported' command:
$ guestfish -a /dev/null run : supported
acl yes
augeas yes
blkdiscard yes
blkdiscardzeroes yes
btrfs yes
extlinux yes
fstrim yes
gdisk yes
grub no
hivex yes
inotify yes
journal yes
ldm yes
linuxcaps yes
linuxfsuuid yes
linuxmodules yes
linuxxattrs yes
luks yes
lvm2 yes
mdadm yes
mknod yes
ntfs3g yes
ntfsprogs yes
realpath yes
rsync yes
scrub yes
selinux yes
syslinux yes
wipefs yes
xfs yes
xz yes
zerofree yes
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top