作者:吴业亮
博客:wuyeliang.blog.csdn.net
```bash
# pvs
Error reading device /dev/data/etc at 0 length 512.
Error reading device /dev/data/etc at 0 length 4.
Error reading device /dev/data/etc at 4096 length 4.
Error reading device /dev/data/log at 0 length 512.
Error reading device /dev/data/log at 0 length 4.
Error reading device /dev/data/log at 4096 length 4.
Error reading device /dev/data/lib at 0 length 512.
Error reading device /dev/data/lib at 0 length 4.
Error reading device /dev/data/lib at 4096 length 4.
PV VG Fmt Attr PSize PFree
/dev/sda4 data lvm2 a-- 193.46g 0
/dev/sdg ff lvm2 a-- <200.00g <200.00g
查看设备
# dmsetup ls
data-log (253:4)
data-arstore (253:2)
data-etc (253:5)
data-log (253:6)
data-lib (253:7)
data-backup (253:3)
data-datastore2 (253:0)
data-datastore1 (253:1)
清除设备
# dmsetup remove /dev/mapper/
control data-etc data-lib data-log data-arstore data-backup data-datastore1 data-datastore2 data-log
# dmsetup remove /dev/mapper/data-etc
# dmsetup remove /dev/mapper/data-lib
# dmsetup remove /dev/mapper/data-log
删除vg,并重新创建
# vgs
VG #PV #LV #SN Attr VSize VFree
data 1 5 0 wz--n- 193.46g 0
ff 1 0 0 wz--n- <200.00g <200.00g
# vgremove data
Volume group "data" successfully removed
# vgcreate data /dev/sdg
Volume group "data" successfully created