Jestin Blog

LVM 下的文章

Jestin in LVM
Aug 01 , 2018

LVM 命令总结

命令总结 功能 PV 阶段 VG 阶段 LV 阶段 搜寻 (scan) pvscan vgscan lvscan 创建 (create) pvcreate vgcreate lvcreate 列出 (display) pvdisplay vgdisplay lvdisplay 扩展 (extend) vgextend lvextend (lvresize) 减少 (reduce) vgreduc...
Jestin in LVM
Aug 01 , 2018

LVM 删除

删除LVM 1、清除LV [root@localhost ~]# umount /media/ [root@localhost ~]# lvremove /dev/vgdata/lvdata_1 Do you really want to remove active logical volume lvdata_1? [y/n]: y Logical volume "lvdata...
Jestin in LVM
Aug 01 , 2018

LVM 迁移

某一块磁盘或者分区故障了 将数据快速转移到相同的卷组其他的空间去 [root@localhost ~]# pvs PV VG Fmt Attr PSize PFree /dev/sdb1 vgdata lvm2 a--u 5.36g 4.87g /dev/sdb2 vgdata lvm2 a--u 5.36g 5.36g /dev/sdb3 vgd...
Jestin in LVM
Aug 01 , 2018

LVM 扩容缩减逻卷组VG

扩展卷组 创建一个新的分区 [root@localhost ~]# fdisk /dev/sdb WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to ...
Jestin in LVM
Aug 01 , 2018

LVM 扩容缩减逻辑卷LV

扩展逻辑卷 查看当前逻辑卷大小 [root@localhost ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lvdata_1 vgdata -wi-ao---- 500.00m [root@localhost ...
Jestin in LVM
Aug 01 , 2018

LVM 逻辑卷配置

这篇是很久以前做的笔记了,只是把流程记录了一下。 首先在/dev/sdb磁盘创建两个分区 [root@localhost ~]# fdisk /dev/sdb WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') an...