NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 40G 0 disk ├─sda1 8:1 0 512M 0 part /boot └─sda2 8:2 0 39.5G 0 part ├─ubuntu--vg-root 253:0 0 37.9G 0 lvm / └─ubuntu--vg-swap_1 253:1 0 1.6G 0 lvm [SWAP] sdb 8:16 0 10G 0 disk
这里我们可以看到名为ubuntu-vg的卷组中有一个ubuntu-lv逻辑卷。
使用 lvdisplay查看逻辑卷详情。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--- Logical volume --- LV Path /dev/ubuntu-vg/root LV Name root VG Name ubuntu-vg LV UUID OOOOXXXX-XXXX-XXXX-XXXX-OOOOYYYYYYYY LV Write Access read/write LV Creation host, time ubuntu-server, 2022-02-22 00:37:34 +0800 LV Status available # open 1 LV Size 37.9 GiB Current LE 9710 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0