LVM常用操作

2018-2-10 笑看风云 linux知识

增加lv


sudo pvcreate /dev/sdc1
sudo vgextend ssd /dev/sdc1
sudo lvcreate -L 120G -n vbox ssd
sudo mkfs.ext4  /dev/ssd/vbox

缩小lv分区
sudo resize2fs /dev/hdd/file 400G
sudo lvresize -L 410G /dev/hdd/file
sudo pvmove /dev/sda3 /dev/sda1
sudo pvmove /dev/sda4 /dev/sda1
sudo vgreduce --all hdd

扩大lv分区
sudo pvcreate /dev/sdc1
sudo vgextend ssd /dev/sdc1
sudo lvresize -L +500M -r /dev/ssd/vbox


...
...
...
...
...
...

标签: Linux lvm

et_highlighter51

发表评论:

Powered by emlog sitemap