13.3. 명령줄을 사용하여 가상 머신 스토리지 정보 보기
명령줄을 사용하면 VM(가상 머신)에서 사용할 수 있는 스토리지 리소스에 대한 자세한 정보를 볼 수 있습니다.
프로세스
호스트에서 사용 가능한 스토리지 풀을 보려면 필요한 목록 세분에 대한 옵션을 사용하여
virsh pool-list명령을 실행합니다. 예를 들어 다음 옵션은 호스트의 모든 스토리지 풀에 대한 사용 가능한 모든 정보를 표시합니다.# virsh pool-list --all --details Name State Autostart Persistent Capacity Allocation Available default running yes yes 48.97 GiB 23.93 GiB 25.03 GiB Downloads running yes yes 175.62 GiB 62.02 GiB 113.60 GiB RHEL-Storage-Pool running yes yes 214.62 GiB 93.02 GiB 168.60 GiB-
스토리지 풀 정보를 보는 데 사용할 수 있는 추가 옵션은
virsh pool-list --help명령을 사용합니다.
-
스토리지 풀 정보를 보는 데 사용할 수 있는 추가 옵션은
지정된 스토리지 풀의 스토리지 볼륨을 나열하려면
virsh vol-list명령을 사용합니다.# virsh vol-list --pool <RHEL-Storage-Pool> --details Name Path Type Capacity Allocation --------------------------------------------------------------------------------------------- RHEL_Volume.qcow2 /home/VirtualMachines/RHEL8_Volume.qcow2 file 60.00 GiB 13.93 GiB가상 머신에 연결된 모든 블록 장치를 보려면
virsh domblklist명령을 사용합니다.# *virsh domblklist --details <vm-name> Type Device Target Source ----------------------------------------------------------------------------- file disk hda /home/VirtualMachines/vm-name.qcow2 file cdrom hdb - file disk vdc /home/VirtualMachines/test-disk2.qcow2