summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-22 17:33:35 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-23 10:22:08 +0000
commitfbc2555903be8c88ad9430d871cf0d27c8fded1e (patch)
treee4a779915c7e469fc3c78d05ebfb481fbf6093e4 /tools
parentf6d3d5677194ae7aaea70d43845341d91907b5ee (diff)
downloadlibguestfs-fbc2555903be8c88ad9430d871cf0d27c8fded1e.tar.gz
libguestfs-fbc2555903be8c88ad9430d871cf0d27c8fded1e.tar.xz
libguestfs-fbc2555903be8c88ad9430d871cf0d27c8fded1e.zip
New tool: virt-filesystems
This tool replaces virt-list-filesystems and virt-list-partitions with a new tool written in C with a more uniform command line structure and output. This existing Perl tools are deprecated but remain indefinitely.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/virt-list-filesystems4
-rwxr-xr-xtools/virt-list-partitions4
-rwxr-xr-xtools/virt-resize24
3 files changed, 19 insertions, 13 deletions
diff --git a/tools/virt-list-filesystems b/tools/virt-list-filesystems
index 945a8619..6b818b0e 100755
--- a/tools/virt-list-filesystems
+++ b/tools/virt-list-filesystems
@@ -39,6 +39,9 @@ virt-list-filesystems - List filesystems in a virtual machine or disk image
=head1 DESCRIPTION
+This tool is obsolete. Use L<virt-filesystems(1)> as a more
+flexible replacement.
+
C<virt-list-filesystems> is a command line tool to list
the filesystems that are contained in a virtual machine or
disk image.
@@ -189,6 +192,7 @@ L<guestfs(3)>,
L<guestfish(1)>,
L<virt-cat(1)>,
L<virt-tar(1)>,
+L<virt-filesystems(1)>,
L<virt-list-partitions(1)>,
L<Sys::Guestfs(3)>,
L<Sys::Guestfs::Lib(3)>,
diff --git a/tools/virt-list-partitions b/tools/virt-list-partitions
index 53059b48..0baa2921 100755
--- a/tools/virt-list-partitions
+++ b/tools/virt-list-partitions
@@ -39,6 +39,9 @@ virt-list-partitions - List partitions in a virtual machine or disk image
=head1 DESCRIPTION
+This tool is obsolete. Use L<virt-filesystems(1)> as a more
+flexible replacement.
+
C<virt-list-partitions> is a command line tool to list
the partitions that are contained in a virtual machine or
disk image. It is mainly useful as a first step to using
@@ -255,6 +258,7 @@ manual page L<sh(1)> for details.
L<guestfs(3)>,
L<guestfish(1)>,
+L<virt-filesystems(1)>,
L<virt-list-filesystems(1)>,
L<virt-resize(1)>,
L<Sys::Guestfs(3)>,
diff --git a/tools/virt-resize b/tools/virt-resize
index 2d8e0f14..1e8a6c7b 100755
--- a/tools/virt-resize
+++ b/tools/virt-resize
@@ -58,10 +58,8 @@ B<should not> be used on live virtual machines - for consistent
results, shut the virtual machine down before resizing it.
If you are not familiar with the associated tools:
-L<virt-list-partitions(1)>,
-L<virt-list-filesystems(1)> and
-L<virt-df(1)>,
-we recommend you go and read those manual pages first.
+L<virt-filesystems(1)> and L<virt-df(1)>, we recommend you go and read
+those manual pages first.
=head1 EXAMPLES
@@ -69,7 +67,7 @@ Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions
to fill the extra 5GB of space.
truncate -r olddisk newdisk; truncate -s +5G newdisk
- virt-list-partitions -lht olddisk
+ virt-filesystems --long --h --all -a olddisk
# Note "/dev/sda2" is a partition inside the "olddisk" file.
virt-resize --expand /dev/sda2 olddisk newdisk
@@ -104,13 +102,14 @@ can use C<virsh dumpxml> like this to find the disk image name:
=item 3. Look at current sizing
-Use L<virt-list-partitions(1)> to display the current partitions and
+Use L<virt-filesystems(1)> to display the current partitions and
sizes:
- # virt-list-partitions -lht /dev/vg/lv_guest
- /dev/sda1 ext3 101.9M
- /dev/sda2 pv 7.9G
- /dev/sda device 8.0G
+ # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest
+ Name Type Size Parent
+ /dev/sda1 partition 101M /dev/sda
+ /dev/sda2 partition 7.9G /dev/sda
+ /dev/sda device 8.0G -
(This example is a virtual machine with an 8 GB disk which we would
like to expand up to 10 GB).
@@ -443,7 +442,7 @@ The contents of the LV are also resized if virt-resize knows how to do
that. You can stop virt-resize from trying to expand the content by
using the option C<--no-expand-content>.
-Use L<virt-list-filesystems(1)> to list the filesystems in
+Use L<virt-filesystems(1)> to list the filesystems in
the guest.
You can give this option multiple times, I<but> it doesn't
@@ -1485,8 +1484,7 @@ manual page L<sh(1)> for details.
=head1 SEE ALSO
-L<virt-list-partitions(1)>,
-L<virt-list-filesystems(1)>,
+L<virt-filesystems(1)>,
L<virt-df(1)>,
L<guestfs(3)>,
L<guestfish(1)>,