Jeffrey
2015-Dec-13 11:53 UTC
[Libguestfs] unknown/unavailable method for expanding the ntfs filesystem
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 ********** Summary of changes: /dev/sda1: This partition will be left alone. /dev/sda2: This partition will be resized from 19.9G to 49.9G. ********** [ 6.0] Setting up initial partition table on /dev/vg0/win2008_resize_dst [ 6.2] Copying /dev/sda1 [ 6.5] Copying /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. Can someone help me in this issue? Thanks!>rpm -qa|grep libguestfs-winsupportlibguestfs-winsupport-7.2-1.el7.x86_64>./run virt-resize --machine-readablevirt-resize ntfsresize-force 32bitok 128-sector-alignment alignment align-first infile-uri btrfs xfs>./run guestfish -a /dev/null run : availableerror: incorrect number of arguments usage: available groups type 'help available' for more help on available>./run guestfish -a /dev/null run : filesystem_available ntfstrue
Richard W.M. Jones
2015-Dec-13 13:28 UTC
Re: [Libguestfs] unknown/unavailable method for expanding the ntfs filesystem
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 > trueYou 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
Richard W.M. Jones
2015-Dec-14 08:46 UTC
Re: [Libguestfs] unknown/unavailable method for expanding the ntfs filesystem
[Please keep replies on the list!] On Mon, Dec 14, 2015 at 10:46:00AM +0800, Jeffrey wrote:> > > libguestfs-winsupport-7.1-4.el7.x86_64 doesn't work for me either. :( > > > >./run 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 no > linuxcaps yes > linuxfsuuid yes > linuxmodules yes > linuxxattrs yes > luks yes > lvm2 yes > mdadm yes > mknod yes > ntfs3g no > ntfsprogs no[...]> It seems guestfish can not find ntfs3g and ntfsprogs. I have tried > installing "ntfs-3g" and "ntfsprogs" packages from epel, but > guestfish still can't find any ntfs support.This won't work. In RHEL you need to have libguestfs-winsupport. I didn't realize before you were compiling your own copy of libguestfs. In that case what you have to do to make it work is: $ cp /usr/lib64/guestfs/supermin.d/zz-winsupport appliance.d/supermin.d/ since local builds of libguestfs use their own supermin appliance. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Jeffrey
2015-Dec-14 12:02 UTC
Re: [Libguestfs] unknown/unavailable method for expanding the ntfs filesystem
It works now. Thanks a lot! At 2015-12-14 16:46:55, "Richard W.M. Jones" <rjones@redhat.com> wrote:>[Please keep replies on the list!] > >On Mon, Dec 14, 2015 at 10:46:00AM +0800, Jeffrey wrote: >> >> >> libguestfs-winsupport-7.1-4.el7.x86_64 doesn't work for me either. :( >> >> >> >./run 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 no >> linuxcaps yes >> linuxfsuuid yes >> linuxmodules yes >> linuxxattrs yes >> luks yes >> lvm2 yes >> mdadm yes >> mknod yes >> ntfs3g no >> ntfsprogs no > >[...] > >> It seems guestfish can not find ntfs3g and ntfsprogs. I have tried >> installing "ntfs-3g" and "ntfsprogs" packages from epel, but >> guestfish still can't find any ntfs support. > >This won't work. In RHEL you need to have libguestfs-winsupport. > >I didn't realize before you were compiling your own copy of >libguestfs. In that case what you have to do to make it work is: > > $ cp /usr/lib64/guestfs/supermin.d/zz-winsupport appliance.d/supermin.d/ > >since local builds of libguestfs use their own supermin appliance. > >Rich. > >-- >Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones >Read my programming and virtualization blog: http://rwmj.wordpress.com >virt-builder quickly builds VMs from scratch >http://libguestfs.org/virt-builder.1.html