[PVE-User] Query disk usage

John Crisp jcrisp at safeandsoundit.co.uk
Mon Mar 6 10:22:59 CET 2017


I am a bit puzzled as to how to do a simple disk usage query on Proxmox
4 with LVM thin.

The normal commands such as df -h etc do not give the correct figures.

The drive is on a hardware RAID. To the system it is a single drive.

Here are some of the figures I managed to extract, but none are simple
to interpret.

Any suggestions ?



cciss!c0d0                   104:0    0 273.4G  0 disk

df -h

Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           3.2G   50M  3.1G   2% /run
/dev/dm-0        68G  3.3G   61G   6% /
tmpfs           7.9G   43M  7.8G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/fuse        30M   16K   30M   1% /etc/pve

lsblk

NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0                           11:0    1  1024M  0 rom
cciss!c0d0                   104:0    0 273.4G  0 disk
├─cciss!c0d0p1               104:1    0  1007K  0 part
├─cciss!c0d0p2               104:2    0   127M  0 part
└─cciss!c0d0p3               104:3    0 273.3G  0 part
  ├─pve-root                 251:0    0  68.3G  0 lvm  /
  ├─pve-swap                 251:1    0     8G  0 lvm  [SWAP]
  ├─pve-data_tmeta           251:2    0    92M  0 lvm
  │ └─pve-data-tpool         251:4    0   181G  0 lvm
  │   ├─pve-data             251:5    0   181G  0 lvm
  │   ├─pve-vm--100--disk--1 251:6    0    64G  0 lvm
  │   ├─pve-vm--101--disk--1 251:7    0    16G  0 lvm
  │   ├─pve-vm--102--disk--2 251:8    0    32G  0 lvm
  │   └─pve-vm--103--disk--2 251:9    0    16G  0 lvm
  └─pve-data_tdata           251:3    0   181G  0 lvm
    └─pve-data-tpool         251:4    0   181G  0 lvm
      ├─pve-data             251:5    0   181G  0 lvm
      ├─pve-vm--100--disk--1 251:6    0    64G  0 lvm
      ├─pve-vm--101--disk--1 251:7    0    16G  0 lvm
      ├─pve-vm--102--disk--2 251:8    0    32G  0 lvm
      └─pve-vm--103--disk--2 251:9    0    16G  0 lvm

I can see the following in lvdisplay:

  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV Size                8.00 GiB

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV Size                68.25 GiB

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV Size                181.03 GiB



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20170306/9beb3bc7/attachment.sig>


More information about the pve-user mailing list