Bug 685009
Summary: | Got error when expanding ntfs filesystem | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Yufang Zhang <yuzhang> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | jzheng, leiwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.7.17-23.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 10:31:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yufang Zhang
2011-03-15 03:30:46 UTC
Another issue to take notice. When shrinking the ntfs filesystem, filesystem size specified in ntfsresize-size is 52396032 bytes, which is 12792 blocks. But statvfs reports block counts is 12791, which is one block less than requested. Is is a problem? (I didn't file another bug for this issue for it is a minor one.) I'll have a closer look later, but I think this is by design -- the ntfsresize utility cannot resize the same filesystem twice in a row without the VM being rebooted and checked (ie. chkdsk/scandisk). It will probably work if you boot the VM and let it do the check between resizes. I'm going to investigate this for 6.2. I think comment 2 is the correct analysis, but this limitation in ntfsresize should be documented. The basic (documentation only) fix is: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=2ba2ddf2113db7bb2afe3f739dc3cbaa5416a4ba The following two commits could also be considered: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=edd747a09060dd191277f1bcae827a94939cfb9d http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=d31de200b82ef66d7e87b32dd5345c053997cc35 I've included the documentation fix in libguestfs-1.7.17-23.el6. The other two commits can't be easily applied to RHEL 6.2 because virt-resize was rewritten from Perl -> OCaml between 1.8 and 1.12. In RHEL 6.3 we may rebase libguestfs, so we will get those two commits as well. Checked in libguestfs-1.7.17-26, the following info is documented in ntfsresize's help. *Note:* After the resize operation, the filesystem is marked as requiring a consistency check (for safety). You have to boot into Windows to perform this check and clear this condition. Furthermore, ntfsresize refuses to resize filesystems which have been marked in this way. So in effect it is not possible to call ntfsresize multiple times on a single filesystem without booting into Windows between each resize. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1512.html |