diff options
| author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-20 22:06:33 +0100 |
|---|---|---|
| committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-20 23:16:44 +0100 |
| commit | 2910413850c7d9e8df753afad179e415f0638d6d (patch) | |
| tree | 66e03512a84ed78dbdd9042bfbc183f5c03d0588 /align | |
| parent | 37cdd39ada139956f237b55c87c095bed622b5e3 (diff) | |
| download | libguestfs-2910413850c7d9e8df753afad179e415f0638d6d.tar.gz libguestfs-2910413850c7d9e8df753afad179e415f0638d6d.tar.xz libguestfs-2910413850c7d9e8df753afad179e415f0638d6d.zip | |
resize: Add --align-first auto|never|always option.
The first partition can now be aligned. We fix the bootloader
correctly for Windows by adjusting the "Hidden Sectors" field.
Diffstat (limited to 'align')
| -rwxr-xr-x | align/virt-alignment-scan.pod | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/align/virt-alignment-scan.pod b/align/virt-alignment-scan.pod index dcc71b4a..3b6828b7 100755 --- a/align/virt-alignment-scan.pod +++ b/align/virt-alignment-scan.pod @@ -275,24 +275,15 @@ will start at a multiple of 2048 sectors. =head2 SETTING ALIGNMENT -Currently there is no virt tool for fixing alignment problems in -guests. This is a difficult problem to fix because simply moving -partitions around breaks the bootloader, necessitating either manual -reinstallation of the bootloader using a rescue disk, or complex and -error-prone hacks. - -L<virt-resize(1)> does not change the alignment of the first -partition, but it does align the second and subsequent partitions to a -multiple of 64 or 128 sectors (depending on the version of -virt-resize, 128 in virt-resize E<ge> 1.13.19). For operating systems -that have a separate boot partition, virt-resize could be used to -align the main OS partition, so that the majority of OS accesses -except at boot will be aligned. - -The easiest way to correct partition alignment problems is to -reinstall your guest operating systems. If you install operating -systems from templates, ensure these have correct partition alignment -too. +L<virt-resize(1)> can change the alignment of the partitions of some +guests. Currently it can fully align all the partitions of all +Windows guests, and it will fix the bootloader where necessary. For +Linux guests, it can align the second and subsequent partitions, so +the majority of OS accesses except at boot will be aligned. + +Another way to correct partition alignment problems is to reinstall +your guest operating systems. If you install operating systems from +templates, ensure these have correct partition alignment too. For older versions of Windows, the following NetApp document contains useful information: L<http://media.netapp.com/documents/tr-3747.pdf> |
