LVM管理体系(四)删除逻辑卷(操作步骤)
来源:互联网 发布:淘宝介入处理流程 编辑:程序博客网 时间:2024/06/05 14:28
一、离线逻辑卷
[root@instructor Desktop]# umount /dev/testvg/testlv
二、查看逻辑卷的状态并删除
[root@instructor Desktop]# lvdisplay /dev/testvg/testlv
--- Logical volume ---LV Path /dev/testvg/testlv
LV Name testlv
VG Name testvg
LV UUID YT3Ccy-eh5I-23fv-g1K6-YWXY-PJrs-rHcNXv
LV Write Access read/write
LV Creation host, time instructor.example.com, 2014-04-15 23:15:37 +0800
LV Status available
# open 0
LV Size 40.00 GiB
Current LE 5120
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
[root@instructor Desktop]# lvremove /dev/testvg/testlv
Do you really want to remove active logical volume testlv? [y/n]: y
Logical volume "testlv" successfully removed
三、查看卷组的状态并删除
[root@instructor Desktop]# vgdisplay /dev/testvg--- Volume group ---
VG Name testvg
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 18
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 59.98 GiB
PE Size 8.00 MiB
Total PE 7677
Alloc PE / Size 0 / 0
Free PE / Size 7677 / 59.98 GiB
VG UUID ARmaCh-vFbx-dqxr-asWG-p11h-1Tzc-dv1OEi
[root@instructor Desktop]# vgremove /dev/testvg
Volume group "testvg" successfully removed
四、查看物理卷的状态并一一删除
[root@instructor Desktop]# pvdisplay /dev/sdb1 /dev/sdc1 /dev/sdd1
"/dev/sdb1" is a new physical volume of "20.00 GiB"--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 20.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID OIO7pd-B6Ib-YGcr-w8sh-GYsA-zXZG-CsrD3O
"/dev/sdc1" is a new physical volume of "20.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdc1
VG Name
PV Size 20.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID WXCfeV-8KYH-ammN-Gine-yjOQ-lbXK-ulEos1
"/dev/sdd1" is a new physical volume of "20.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdd1
VG Name
PV Size 20.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID bdeEPp-L9Az-QVMg-f1O6-gaK0-vRcw-RvL1cF
[root@instructor Desktop]# pvremove /dev/sdb1 /dev/sdc1 /dev/sdd1
Labels on physical volume "/dev/sdb1" successfully wiped
Labels on physical volume "/dev/sdc1" successfully wiped
Labels on physical volume "/dev/sdd1" successfully wiped
[root@instructor Desktop]# pvdisplay
--- Physical volume ---
PV Name /dev/sda3
VG Name GLSguest
PV Size 19.53 GiB / not usable 32.00 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 624
Free PE 624
Allocated PE 0
PV UUID qK9igJ-bMKg-F2qg-qBsf-CJG9-gz9c-I8Rlcb
--- Physical volume ---
PV Name /dev/sda2
VG Name GLSvg
PV Size 31.25 GiB / not usable 32.00 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 999
Free PE 131
Allocated PE 868
PV UUID YOBheN-WgGO-wKHY-7Gdb-gdAz-aBui-R1IAHx
[root@instructor Desktop]#
0 0
- LVM管理体系(四)删除逻辑卷(操作步骤)
- LVM管理体系(四)缩小逻辑卷(操作步骤)
- LVM管理体系(一)创建含有两个物理分区的逻辑卷(操作步骤)
- LVM管理体系(二)通过扩展LV扩展逻辑卷(操作步骤)
- LVM管理体系(三)通过扩展VG扩展逻辑卷(操作步骤)
- 逻辑卷管理器(LVM)
- LVM(逻辑卷管理)
- lvm(逻辑卷管理)
- LVM (逻辑卷管理器)
- 逻辑卷管理(LVM)
- Lvm(逻辑卷管理)
- Lvm(逻辑卷管理)
- AIX逻辑卷管理(LVM) 操作笔记
- Linux逻辑卷管理(LVM)操作笔记
- LVM逻辑卷的添加、拉伸、缩小、删除、move操作
- LVM逻辑卷的添加、拉伸、缩小、删除、move操作
- LVM逻辑卷简单操作
- 逻辑卷(LVM)创建、管理
- LVM管理体系(四)缩小逻辑卷(操作步骤)
- (6)html的核心元素与特性组
- 统计数字问题(Java语言实现)
- Kali Linux
- web开发相关缓存和性能
- LVM管理体系(四)删除逻辑卷(操作步骤)
- windows多线程编程
- 复撸C系列(5)-指针(1)
- [Android] waiting for the debugger to attach
- 实时开发框架Meteor API解读系列<七> Collection --01
- Dom笔记
- javascrip当中删除节点的方法
- Not so Mobile uva
- nginx相关内容