我在几年前build立的系统上使用LVM。 当时我在驱动器上留下了一些未分区的空间,所以我可以创buildLVM快照。
我现在已经忘记了我留出了多less空间。
我怎样才能看到有多less免费?
运行/ usr / sbin / vgs命令。 它将列出所有LVM卷组,每个卷组的总大小和可用空间量。
除了sagi的正确答案之外,作为一种更为普遍的方式来帮助你,你可以键入sudo lvm或者以root身份运行lvm来把你带入lvm控制台。
然后你可以inputhelp来查看所有的lvm命令,这是帮助保持所有这些命令正确的好方法。
[kbrandt@machine: ~] sudo lvm lvm> help Available lvm commands: Use 'lvm help <command>' for more information dumpconfig Dump active configuration formats List available metadata formats help Display help for commands lvchange Change the attributes of logical volume(s) lvconvert Change logical volume layout lvcreate Create a logical volume lvdisplay Display information about a logical volume lvextend Add space to a logical volume lvmchange With the device mapper, this is obsolete and does nothing. lvmdiskscan List devices that may be used as physical volumes lvmsadc Collect activity data lvmsar Create activity report lvreduce Reduce the size of a logical volume lvremove Remove logical volume(s) from the system lvrename Rename a logical volume lvresize Resize a logical volume ...
例如pvs