Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

20.35. Retrieving Storage Volume Information


The virsh vol-pool vol command returns the pool name or UUID for a given storage volume. By default, the storage pool name is returned. If the --uuid option is used, the pool UUID is returned instead. The command requires the key or path of the storage volume for which to return the requested information.

Example 20.96. How to display the storage volume's name or UUID

The following examples retrieves the name for the storage volume that is found in the path /var/lib/libvirt/images/vol-new:
# virsh vol-pool /var/lib/libvirt/images/vol-newvirsh vol-pool /var/lib/libvirt/images/vol-new

vol-new
Copy to Clipboard Toggle word wrap
The vol-path --pool pool-or-uuid vol-name-or-key command returns the path for a given volume. The command requires --pool pool-or-uuid, which is the name or UUID of the storage pool the volume is in. It also requires vol-name-or-key which is the name or key of the volume for which the path has been requested.
The vol-name vol-key-or-path command returns the name for a given volume, where vol-key-or-path is the key or path of the volume to return the name for.
The vol-key --pool pool-or-uuid vol-name-or-path command returns the volume key for a given volume where --pool pool-or-uuid is the name or UUID of the storage pool the volume is in and vol-name-or-path is the name or path of the volume to return the volume key for.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat